Class DicomImage
- Namespace
- FellowOakDicom.Imaging
- Assembly
- fo-dicom.core.dll
DICOM Image class for image rendering.
public class DicomImage
- Inheritance
-
DicomImage
- Inherited Members
- Extension Methods
Constructors
DicomImage(DicomDataset, int)
Creates DICOM image object from dataset
public DicomImage(DicomDataset dataset, int frame = 0)
Parameters
dataset
DicomDatasetSource dataset
frame
intZero-based frame index.
DicomImage(string, int)
Creates DICOM image object from file
public DicomImage(string fileName, int frame = 0)
Parameters
Properties
AutoApplyLUTToAllFrames
Gets or sets wether the rendering options of all frames shall be updated when a property is changed, or only the rendering options of the current frame.
public bool AutoApplyLUTToAllFrames { get; set; }
Property Value
CacheMode
public CacheType CacheMode { get; set; }
Property Value
CurrentFrame
Gets the index of the current frame.
public int CurrentFrame { get; }
Property Value
GrayscaleColorMap
Gets or sets the color map to be applied when rendering grayscale images.
public virtual Color32[] GrayscaleColorMap { get; set; }
Property Value
- Color32[]
Height
Height of image in pixels
public int Height { get; }
Property Value
Invert
Gets or sets whether to render in inverted grey.
public virtual bool Invert { get; set; }
Property Value
IsGrayscale
Gets or sets whether the image is gray scale.
public virtual bool IsGrayscale { get; }
Property Value
NumberOfFrames
Number of frames contained in image data.
public int NumberOfFrames { get; }
Property Value
OverlayColor
Gets or sets the color used for displaying DICOM overlays. Default is magenta.
public int OverlayColor { get; set; }
Property Value
Scale
Scaling factor of the rendered image
public double Scale { get; set; }
Property Value
ShowOverlays
Show or hide DICOM overlays
public bool ShowOverlays { get; set; }
Property Value
UseVOILUT
Gets or sets whether to use VOI LUT.
public virtual bool UseVOILUT { get; set; }
Property Value
Width
Width of image in pixels
public int Width { get; }
Property Value
WindowCenter
Gets or sets window center of rendered gray scale image.
public virtual double WindowCenter { get; set; }
Property Value
WindowWidth
Gets or sets window width of rendered gray scale image.
public virtual double WindowWidth { get; set; }
Property Value
Methods
RenderImage(int)
Renders DICOM image to IImage.
public virtual IImage RenderImage(int frame = 0)
Parameters
frame
intZero-based frame index.
Returns
- IImage
Rendered image