|
|
static global::System.Runtime.InteropServices.HandleRef | getCPtr (ImageView obj) |
| |
|
static global::System.Runtime.InteropServices.HandleRef | getCPtr (View obj) |
| |
|
| override void | Dispose (bool disposing) |
| |
|
|
ImageCapabilitySet | Capabilities [get] |
| | The Capabilities on the ImageView
|
| |
|
uint | DimensionCount [get] |
| | The number of dimensions in this ImageView's shape.
|
| |
|
VectorXu64 | Shape [get] |
| | The ImageView shape, the size of each of its dimensions.
|
| |
|
DataType | Type [get] |
| | The type of the image's elements.
|
| |
|
ReadonlyImageProperties | Properties [get, set] |
| | The ImageProperties associated with this ImageView instance.
|
| |
|
ReadonlyMetadataNode | Metadata [get, set] |
| | The MetadataNode associated with this ImageView instance.
|
| |
|
ImageInterpretation | ImageInterpretation [get, set] |
| | The ImageInterpretation associated with this ImageView instance.
|
| |
|
ImageType | AxesInterpretation [get, set] |
| | The AxesInterpretation associated with this ImageView instance.
|
| |
|
uint | BitDepth [get, set] |
| | The BitDepth associated with this ImageView instance.
|
| |
|
bool | HasAlpha [get, set] |
| | The HasAlpha associated with this ImageView instance.
|
| |
|
SpatialDirections | SpatialDirections [get, set] |
| | The SpatialDirections associated with this ImageView instance.
|
| |
|
Vector3d | SpatialOrigin [get, set] |
| | The SpatialOrigin associated with this ImageView instance.
|
| |
|
Vector3d | SpatialSpacing [get, set] |
| | The SpatialSpacing associated with this ImageView instance.
|
| |
|
string | SpatialUnit [get, set] |
| | ImageView instance
|
| |
|
Vector2d | ValueRange [get, set] |
| | ImageView instance
|
| |
Interface representing an N dimensional image This class can handle multidimensional image, for example:
- A 2D image has 2 dimensions.
- A 3D Volume has 3 dimensions.
- A 2D time series has 3 dimensions, where 3rd one represent time. This interface capabilities are indicated by the ImageCapabilitySet returned by the method ImageView::capabilities. Each capability enable the use of a specific set of methods. When one of those methods is called, if its corresponding capability is not supported, a NotImplemented exception will be thrown. An ImageView is composed of the following parts:
- A shape, that describes the size of the dataset along each of its axes.
- A data type, giving info on what is stored on each element of the dataset.
- Properties, giving generic info on the image, such as its spatial calibration, the semantic of its dimensions, and detailed information on its elements.
- Metadata, hierarchical tree of key/value pair, describing arbitrary information.
- Image's data itself.
- See also
- ImageCapability
- Examples
- CheckerBoard.cs, CheckerBoardFast.cs, ColorWheel.cs, CopyImageView.cs, DiskImageView.cs, GradientFloatImage.cs, GradientFloatToInt.cs, GrayscaleSphere.cs, MetadataTree.cs, and VolumeFromStack.cs.
◆ Dispose()
| override void IOLink.ImageView.Dispose |
( |
bool |
disposing | ) |
|
|
inlineprotectedvirtual |
◆ GetAxesInterpretation()
| ImageType IOLink.ImageView.GetAxesInterpretation |
( |
| ) |
|
|
inline |
Shortcut to access axes interpretation from image properties
- Returns
- axes interpretation of the image
◆ GetBitDepth()
| uint IOLink.ImageView.GetBitDepth |
( |
| ) |
|
|
inline |
Shortcut to access the sample bitdepth from image properties
- Returns
- bitdepth of the image
◆ GetHasAlpha()
| bool IOLink.ImageView.GetHasAlpha |
( |
| ) |
|
|
inline |
Shortcut to access hasAlpha status from image properties
- Returns
- TRUE if image has an alpha channel, FALSE otherwise
◆ GetImageInterpretation()
Shortcut to access Image interpretation from image properties
- Returns
- interpretation of the image
◆ GetMetadata()
Return the root node of the metadata attached to this image. Available when the ImageView has the READ capability.
- Exceptions
-
| NotImplemented | If the implementation does not support reading. |
◆ GetShape()
Return the shape of the image, each component containing the size in this dimension. Example:
- A 2D image will return a vector with two dimension, the first being the number of columns, and the second being the number of rows.
- A 3D image will return a vector with two dimension, the first being the number of columns, the second being the number of rows, and the third being the number of slices.
◆ GetSpatialDirections()
Shortcut to access spatial directions from image properties
- Returns
- spatial directions of the image
◆ GetSpatialOrigin()
| Vector3d IOLink.ImageView.GetSpatialOrigin |
( |
| ) |
|
|
inline |
Shortcut to access spatial origin from image properties
- Returns
- spatial origin of the image
◆ GetSpatialSpacing()
| Vector3d IOLink.ImageView.GetSpatialSpacing |
( |
| ) |
|
|
inline |
Shortcut to access spatial spacing from image properties
- Returns
- spatial spacing of the image
◆ GetSpatialUnit()
| string IOLink.ImageView.GetSpatialUnit |
( |
| ) |
|
|
inline |
Shortcut to access the spatial unit from image properties
- Returns
- spatial unit of the image
◆ GetValueRange()
| Vector2d IOLink.ImageView.GetValueRange |
( |
| ) |
|
|
inline |
Shortcut to access the sample value range from image properties
- Returns
- value range for the image samples
◆ Read()
| unsafe void IOLink.ImageView.Read |
( |
VectorXu64 |
index, |
|
|
byte[] |
dst |
|
) |
| |
|
inline |
Read the data at the given index into a buffer. Available when the ImageView has the READ capability. Default implementation will call the readRegion method with a region of one pixel.
- Parameters
-
| index | the index of the sample to read. |
| dst | The buffer where read data will be copied. |
◆ ReadRegion()
| unsafe void IOLink.ImageView.ReadRegion |
( |
RegionXu64 |
region, |
|
|
byte[] |
dst |
|
) |
| |
|
inline |
Read a region of the image into a buffer. Available when the ImageView has the READ capability.
- Parameters
-
| region | The region of the image to read from. |
| dst | The buffer where read data will be copied. |
- Exceptions
-
| NotImplemented | If the implementation does not support reading. |
- Examples
- CopyImageView.cs, GradientFloatImage.cs, and GradientFloatToInt.cs.
◆ Reshape()
Change the shape and sample data type of the image. Available when the ImageView has the RESHAPE capability. All the image's data is invalidated after this operation.
- Parameters
-
| shape | The new shape. |
| dataType | The new sample data type. |
- Exceptions
-
| NotImplemented | If the implementation does not support reshaping. |
- Examples
- CopyImageView.cs.
◆ SetAlpha()
| void IOLink.ImageView.SetAlpha |
( |
bool |
value | ) |
|
|
inline |
Shortcut to indicate the presence of an alpha channel into image properties
- Parameters
-
| value | TRUE if image has an alpha channel, FALSE otherwise |
◆ SetAxesInterpretation()
| void IOLink.ImageView.SetAxesInterpretation |
( |
ImageType |
type | ) |
|
|
inline |
Shortcut to set axes interpretation into image properties
- Parameters
-
| type | Axes interpretation to set |
◆ SetBitDepth()
| void IOLink.ImageView.SetBitDepth |
( |
uint |
bitDepth | ) |
|
|
inline |
Shortcut to set sample bitdepth into image properties
- Parameters
-
◆ SetImageInterpretation()
Shortcut to set Image interpretation into image properties
- Parameters
-
| interpretation | Image interpretation to set |
◆ SetMetadata()
| virtual void IOLink.ImageView.SetMetadata |
( |
MetadataNode |
metadata | ) |
|
|
inlinevirtual |
Attach a new metadata node to the image. Available when the ImageView has the WRITE capability.
- Exceptions
-
| NotImplemented | If the implementation does not support writing. |
◆ SetProperties()
Update the image's properties. Available when the ImageView has the WRITE capability.
- Exceptions
-
| NotImplemented | If the implementation does not support writing. |
◆ SetSpatialDirections()
Shortcut to set spatial direcitons into image properties
- Parameters
-
| directions | spatial directions to set |
◆ SetSpatialOrigin()
| void IOLink.ImageView.SetSpatialOrigin |
( |
Vector3d |
origin | ) |
|
|
inline |
Shortcut to set spatial origin into image properties
- Parameters
-
| origin | spatial origin to set |
◆ SetSpatialSpacing()
| void IOLink.ImageView.SetSpatialSpacing |
( |
Vector3d |
spacing | ) |
|
|
inline |
Shortcut to set spatial spacing into image properties
- Parameters
-
| spacing | spatial spacing to set |
◆ SetSpatialUnit()
| void IOLink.ImageView.SetSpatialUnit |
( |
string |
unit | ) |
|
|
inline |
Shortcut to set spatial unit into image properties
- Parameters
-
◆ SetValueRange()
| void IOLink.ImageView.SetValueRange |
( |
Vector2d |
range | ) |
|
|
inline |
Shortcut to set sample value range into image properties
- Parameters
-
◆ Write()
| unsafe void IOLink.ImageView.Write |
( |
VectorXu64 |
index, |
|
|
byte[] |
src |
|
) |
| |
|
inline |
Write value from a buffer at the given index. Available when the ImageView has the WRITE capability. Default implementation will call the writeRegion method with a region of one pixel.
- Parameters
-
| index | The index of the image's sample to write. |
| src | The buffer containing the data that will be written. |
- Examples
- CheckerBoard.cs, ColorWheel.cs, and GrayscaleSphere.cs.
◆ WriteRegion()
| unsafe void IOLink.ImageView.WriteRegion |
( |
RegionXu64 |
region, |
|
|
byte[] |
src |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file:
- Release/net/generated/ImageView.cs