MCPcopy Create free account
hub / github.com/Kitware/VTK / TransformContinuousIndexToPhysicalPoint

Method TransformContinuousIndexToPhysicalPoint

Common/DataModel/vtkImageData.cxx:1610–1618  ·  view source on GitHub ↗

useful for when the ImageData is not available but the information spacing, origin, direction are

Source from the content-addressed store, hash-verified

1608// useful for when the ImageData is not available but the information
1609// spacing, origin, direction are
1610void vtkImageData::TransformContinuousIndexToPhysicalPoint(double i, double j, double k,
1611 double const origin[3], double const spacing[3], double const direction[9], double xyz[3])
1612{
1613 for (int c = 0; c < 3; ++c)
1614 {
1615 xyz[c] = i * spacing[0] * direction[c * 3] + j * spacing[1] * direction[c * 3 + 1] +
1616 k * spacing[2] * direction[c * 3 + 2] + origin[c];
1617 }
1618}
1619
1620//------------------------------------------------------------------------------
1621void vtkImageData::TransformContinuousIndexToPhysicalPoint(

Callers 6

DoTestFunction · 0.80
clampPlaneCenterInImageFunction · 0.80
RequestDataImplMethod · 0.80
operator()Method · 0.80

Calls

no outgoing calls

Tested by 2

DoTestFunction · 0.64