Skip to content
Snippets Groups Projects
Commit f1abb41f authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: avoid hazardous physical point conversion

parent 45ad4897
No related branches found
No related tags found
No related merge requests found
...@@ -115,9 +115,12 @@ private: ...@@ -115,9 +115,12 @@ private:
} }
// Convert the desired point // Convert the desired point
itk::ContinuousIndex<double,2> inIndex;
PointType point; PointType point;
point[0] = GetParameterFloat("input.idx") + inImage->GetOrigin()[0];
point[1] = GetParameterFloat("input.idy") + inImage->GetOrigin()[1]; inIndex[0] = GetParameterFloat("input.idx");
inIndex[1] = GetParameterFloat("input.idy");
inImage->TransformContinuousIndexToPhysicalPoint(inIndex,point);
ModelType::OutputPointType outputPoint; ModelType::OutputPointType outputPoint;
outputPoint = model->TransformPoint(point); outputPoint = model->TransformPoint(point);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment