An image stack is an ordered collection of related two-dimensional images treated as one dataset. Its index may denote cutting depth, time or another acquisition coordinate: stacking images does not by itself establish a spatial volume. The ImageJ guide distinguishes ordinary stacks from datasets with several independent axes and requires equal image dimensions and bit depth within an ordinary stack.[ref]
For an original spatial example, store 100 grayscale images as an array with shape , where indexes sections and index pixels. If each value occupies two bytes, the raw data require
This excludes metadata and compression. Define the image stack axis calibration explicitly: at lateral pixel pitch and section spacing , a zero-origin convention is
The first and last section centers are apart. Array shape alone does not contain that information.
An index permutation can preserve every stored intensity yet exchange depth and lateral coordinates, giving the wrong geometry if the spacing metadata are not permuted too. Image registration estimates alignment between slices; image segmentation assigns structural labels. Neither operation supplies a missing section's observations. For datasets exceeding memory, an image stack can also be read a slice at a time; the guide's virtual-stack representation keeps the image sequence on disk.[ref]
Image stack axis calibration assigns physical coordinates to the indices of an image stack. It states what each axis means, its spacing, origin and orientation. Pixel indices, section indices and frame indices are distinct from positions and times. In ImageJ, image properties include pixel width, pixel height, voxel depth and frame interval; its Origin fields are expressed in pixels.[ref]
For an original general spatial model, let the index vector be and define
where is a physical origin and is a rotation matrix. This is an affine map; the rotation represents a chosen acquisition-to-world orientation rather than a claim that ImageJ's Properties dialog implements an arbitrary rotation. Convert any pixel-unit origin into the chosen physical convention before using this equation.
Take spacings , origin and a 90° rotation about the positive third axis:
Index first maps to local displacement and then to world position . Its distance from the physical origin is , unchanged by the rotation.
Cropping and axis permutation require corresponding metadata changes. If a crop begins at old index , its new physical origin is . For irregular section positions, store those positions explicitly instead of inventing one uniform depth increment. Image resampling may alter the grid, but it does not create independently acquired depth information.

Articles by others on the same topic (0)

There are currently no matching articles.