diff --git a/src/rtkOraGeometryReader.cxx b/src/rtkOraGeometryReader.cxx index ea1e75910..256eb48e1 100644 --- a/src/rtkOraGeometryReader.cxx +++ b/src/rtkOraGeometryReader.cxx @@ -119,7 +119,7 @@ OraGeometryReader::GenerateData() MetaDataDoubleType * zvecMeta = dynamic_cast(dic["zdistancebaseunitcs2imagingcs_cm"].GetPointer()); double zvec = zvecMeta->GetMetaDataObjectValue(); - tiltTransform->SetCenter(itk::MakeVector(0., -10. * yvec, -10. * zvec)); + tiltTransform->SetCenter(itk::MakePoint(0., -10. * yvec, -10. * zvec)); sp = tiltTransform->TransformPoint(sp); dp = tiltTransform->TransformPoint(dp); diff --git a/test/rtkoratest.cxx b/test/rtkoratest.cxx index 589a403b9..bff79dd9b 100644 --- a/test/rtkoratest.cxx +++ b/test/rtkoratest.cxx @@ -82,8 +82,7 @@ main(int argc, char * argv[]) spacing[1] = 2.; spacing[2] = 1.; reader->SetSpacing(spacing); - ReaderType::OutputImagePointType origin(0.); - reader->SetOrigin(0.); + reader->SetOrigin(itk::MakePoint(0., 0., 0.)); ReaderType::OutputImageDirectionType direction; direction.SetIdentity(); reader->SetDirection(direction);