useful for when the ImageData is not available but the information spacing, origin, direction are
| 1608 | // useful for when the ImageData is not available but the information |
| 1609 | // spacing, origin, direction are |
| 1610 | void 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 | //------------------------------------------------------------------------------ |
| 1621 | void vtkImageData::TransformContinuousIndexToPhysicalPoint( |
no outgoing calls