Skip to content

Commit b566868

Browse files
committed
COMP: Update coordinate orientation mechanism in itkIO.h
SetDesiredDirectionCosines(orient.GetAsDirection()) with UseImageDirectionOff() to bypass the legacy enum entirely.
1 parent e1edf4a commit b566868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BRAINSCommonLib/itkIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ OrientImage(typename ImageType::ConstPointer & inputImage, typename itk::Anatomi
142142
typename itk::OrientImageFilter<ImageType, ImageType>::Pointer orienter =
143143
itk::OrientImageFilter<ImageType, ImageType>::New();
144144

145-
orienter->SetDesiredCoordinateOrientation(orient);
145+
orienter->SetDesiredCoordinateDirection(orient.GetAsDirection());
146146
orienter->UseImageDirectionOn();
147147
orienter->SetInput(inputImage);
148148
orienter->Update();

0 commit comments

Comments
 (0)