@@ -561,17 +561,17 @@ pixels in the original source DICOM image.
561561`Highdicom ` supports such cases in two ways. The first, possible when the
562562segmentation array is defined on a regularly-sampled 3D grid, is to pass the
563563segmentation array as an instance of the :class: `highdicom.Volume ` class
564- instead of a plain NumPy array. (see :doc: `volume ` for an overview of volumes).
565- Since the :class: `highdicom.Volume ` class specifies its position within the
566- frame of reference coordinate system, the position of each plane can be
567- inferred automatically. The volume can have an arbitrary size, spacing, and
568- orientation and these properties do not need to match those of the source
569- images. Just like a standard NumPy array, the volume can be either in the
570- "label map" form, where each pixel values specifies segment membership, or
571- "stacked segment" form, with a further array dimension along which binary
572- segments are stacked. In the "label map" case the volume must have no channel
573- dimensions. In the "stacked segments" case, the volume must have exactly one
574- channel dimension with the descriptor being the "SegmentNumber" tag.
564+ instead of a plain NumPy array (see :doc: `volume ` for an overview). Since the
565+ :class: `highdicom.Volume ` class specifies its position within the frame of
566+ reference coordinate system, the position of each plane can be inferred
567+ automatically. The volume can have an arbitrary size, spacing, and orientation
568+ and these properties do not need to match those of the source images. Just like
569+ a standard NumPy array, the volume can be either in the "label map" form, where
570+ each pixel values specifies segment membership, or "stacked segment" form, with
571+ a further array dimension along which binary segments are stacked. In the
572+ "label map" case the volume must have no channel dimensions. In the "stacked
573+ segments" case, the volume must have exactly one channel dimension with the
574+ descriptor being the "SegmentNumber" tag.
575575
576576.. code-block :: python
577577
@@ -1506,7 +1506,7 @@ If the segmentation is defined on a regularly-sampled 3D grid (possibly with
15061506omittted frames, tiled frames, and/or multiple segments), the
15071507:meth: `highdicom.seg.Segmentation.get_volume() ` method may be used to create a
15081508:class: `highdicom.Volume ` from its frames. The options we have already seen
1509- (``segment_numbers ``, combine_segments``, ``relabel ``, ``rescale_fractional ``)
1509+ (``segment_numbers ``, `` combine_segments ``, ``relabel ``, ``rescale_fractional ``)
15101510are also available here.
15111511
15121512.. code-block :: python
0 commit comments