Function sampleCenter

Return the exact reference-grid position of a stored plane sample.

Rational sampleCenter(
  ulong origin,
  ulong planeIndex,
  uint spacing,
  Rational offset
) pure nothrow @nogc @safe;

planeIndex is an index in the returned plane storage. origin is the plane's integer storage origin and offset is the crop phase recorded in ImagePlane.referenceOffsetX/Y. The result is expressed in reference-grid units. This is deliberately a technical coordinate helper; it performs no rounding, resampling or colour interpretation.