Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Ben Boeckel
SMTK
Commits
6eb057e0
Commit
6eb057e0
authored
Feb 15, 2021
by
Ben Boeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtkImageSpacingFlip: use std::fabs
parent
37549711
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
smtk/extension/vtk/filter/vtkImageSpacingFlip.cxx
smtk/extension/vtk/filter/vtkImageSpacingFlip.cxx
+1
-1
No files found.
smtk/extension/vtk/filter/vtkImageSpacingFlip.cxx
View file @
6eb057e0
...
...
@@ -70,7 +70,7 @@ int vtkImageSpacingFlip::RequestData(vtkInformation* /*request*/,
flipper
->
SetInputData
(
input
);
flipper
->
Update
();
output
->
DeepCopy
(
flipper
->
GetOutput
());
output
->
SetSpacing
(
fabs
(
spacing
[
0
]),
fabs
(
spacing
[
1
]),
fabs
(
spacing
[
2
]));
output
->
SetSpacing
(
std
::
fabs
(
spacing
[
0
]),
std
::
fabs
(
spacing
[
1
]),
std
::
fabs
(
spacing
[
2
]));
output
->
SetOrigin
(
origin
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment