Skip to content

Commit

Permalink
Merge pull request #479 from SimonRit/PointExplicit
Browse files Browse the repository at this point in the history
COMP: fix incorrect casts from scalar or vector to points
  • Loading branch information
SimonRit authored Mar 1, 2022
2 parents a4897ea + abce7ee commit c0e7810
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rtkOraGeometryReader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ OraGeometryReader::GenerateData()
MetaDataDoubleType * zvecMeta =
dynamic_cast<MetaDataDoubleType *>(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);
Expand Down
3 changes: 1 addition & 2 deletions test/rtkoratest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c0e7810

Please sign in to comment.