Method | Description | |
---|---|---|
Contains ( |
Tests to see if the given point is contained within the region of interest. Regions of interest have no notion of coordinate system. All coordinates are inherently given relative to the image pixel space (i.e. CoordinateSystem.Source.) |
|
Contains ( float x, float y ) : bool |
Tests to see if the given point is contained within the region of interest. Regions of interest have no notion of coordinate system. All coordinates are inherently given relative to the image pixel space (i.e. CoordinateSystem.Source.) |
|
Contains ( int x, int y ) : bool |
Tests to see if the given point is contained within the region of interest. Regions of interest have no notion of coordinate system. All coordinates are inherently given relative to the image pixel space (i.e. CoordinateSystem.Source.) |
|
CopyTo ( IPresentationImage presentationImage ) : |
Creates a copy of this Roi using the same region of interest shape but using a different image as the source pixel data.
|
|
GetBoundingBoxRounded ( bool constrainToImage ) : |
Returns a bounding box that has been rounded to the nearest whole pixel(s). Uses RectangleUtilities.RoundInflate to ensure the bounding box returned will encompass every pixel that is inside the ROI. |
|
GetPixelCoordinates ( ) : IEnumerable |
Gets an enumeration of the coordinates of points contained within the region of interest. Regions of interest have no notion of coordinate system. All coordinates are inherently given relative to the image pixel space (i.e. CoordinateSystem.Source.) |
|
GetPixelValues ( ) : IEnumerable |
Gets an enumeration of the modality LUT transformed pixel values contained within the region of interest rounded to the nearest integer. If the ModalityLut is null, then this method enumerates the same values as GetRawPixelValues. |
|
GetRawPixelValues ( ) : IEnumerable |
Gets an enumeration of the raw pixel values contained within the region of interest.
|
Method | Description | |
---|---|---|
ComputeBounds ( ) : |
Called by BoundingBox to compute the tightest bounding box of the region of interest. This method is only called once and the result is cached for future accesses. Regions of interest have no notion of coordinate system. All coordinates are inherently given relative to the image pixel space (i.e. CoordinateSystem.Source.) |
|
ConvertFromSquarePixels ( double area, ClearCanvas.Dicom.Iod.Units units, PixelSpacing pixelSpacing ) : double |
Converts an area in pixels into the given units given some particular pixel spacing.
|
|
Roi ( IPresentationImage presentationImage ) : System |
Constructs a new region of interest, specifying an IPresentationImage as the source of the pixel data.
|
|
ValidateUnits ( ClearCanvas.Dicom.Iod.Units units, PixelSpacing pixelSpacing ) : bool |
Checks if operations in the given units are possible with the pixelSpacing information available.
|
Method | Description | |
---|---|---|
IsBoundingBoxInImage ( ) : bool |
Checks whether or not the region of interest's bounding box intersects the image.
|
protected abstract ComputeBounds ( ) : |
||
return |
public abstract Contains ( |
||
point | The point to test. | |
return | bool |
public Contains ( float x, float y ) : bool | ||
x | float | The X-coordinate of the point to test. |
y | float | The Y-coordinate of the point to test. |
return | bool |
public Contains ( int x, int y ) : bool | ||
x | int | The X-coordinate of the point to test. |
y | int | The Y-coordinate of the point to test. |
return | bool |
protected static ConvertFromSquarePixels ( double area, ClearCanvas.Dicom.Iod.Units units, PixelSpacing pixelSpacing ) : double | ||
area | double | The area of pixels to be converted. |
units | ClearCanvas.Dicom.Iod.Units | The units into which the area should be converted. |
pixelSpacing | PixelSpacing | The pixel spacing information available. |
return | double |
public abstract CopyTo ( IPresentationImage presentationImage ) : |
||
presentationImage | IPresentationImage | The image upon which to copy this region of interest. |
return |
public GetBoundingBoxRounded ( bool constrainToImage ) : |
||
constrainToImage | bool | Whether or not the returned rectangle should also be constrained to the image bounds. |
return |
protected Roi ( IPresentationImage presentationImage ) : System | ||
presentationImage | IPresentationImage | The image containing the source pixel data. |
return | System |
protected static ValidateUnits ( ClearCanvas.Dicom.Iod.Units units, PixelSpacing pixelSpacing ) : bool | ||
units | ClearCanvas.Dicom.Iod.Units | |
pixelSpacing | PixelSpacing | |
return | bool |