SbImageDataAccessorRegionGetSize Method |
Returns dimensions of the region.
Namespace: OIV.ImageViz
If the region represents a slice or a plane, getDimension will return (width, height, 1, 1), with width * height = OIV.ImageViz.SbImageDataAccessor.Region.GetNumVoxel(). The difference with OIV.ImageViz.SbImageDataAccessor.Region.GetExtent() is that, for an oblique plane for example, OIV.ImageViz.SbImageDataAccessor.Region.GetExtent() will return the bounding box of the plane, whereas OIV.ImageViz.SbImageDataAccessor.Region.GetSize() will return a 2D space.