Module imageio.region

Neutral decoded-region and component-plane contracts.

These types report technical storage, sampling and source metadata. They do not perform colour conversion, resampling, NoData interpretation or raster ownership integration.

Functions

NameDescription
copyPlaneBlock(destination, source, destinationX, destinationY, width, height) Copy a visible block into a plane with explicit geometry.
sampleCenter(origin, planeIndex, spacing, offset) Return the exact reference-grid position of a stored plane sample.
unknownPhaseSampling(horizontalFactor, verticalFactor) Construct a descriptor whose spacing is known but whose phase is not.
zeroPhaseSampling(horizontalFactor, verticalFactor) Construct a known integer-grid descriptor with a zero phase offset.

Structs

NameDescription
ImagePlane A caller-owned decoded component plane. Plane dimensions may differ from the region dimensions, for example for subsampled JPEG chroma components.
ImagePlaneInfo Technical JPEG/component description; no colour meaning is implied.
ImageRegion A two-dimensional decoded image region.
ImageRegionInfo Technical description of decoded image samples.
PlaneAccumulator Caller-owned collection used while assembling native component blocks.
PlaneSamplingGeometry Position of samples in a plane relative to the region reference grid.
Rational An exact rational value used for format-defined sample positions.
SourceColorMetadata Neutral colour-source facts. Unknown means the encoded source did not declare the value; it never authorizes a decoder-side guess.

Enums

NameDescription
ComponentRole Neutral component role reported by a decoder, never a colour conversion.
PlaneGeometryStatus Machine-readable state of source plane-grid geometry.
SourceModel Neutral source signalling discovered in encoded metadata.