Class SingleBitPixelData
Single bit pixel IPixelData implementation(for binary pixels) usually used for overlay pixel data
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FellowOakDicom.Imaging.Render
Assembly: fo-dicom.core.dll
Syntax
public class SingleBitPixelData : GrayscalePixelDataU8, IPixelData
Constructors
SingleBitPixelData(Int32, Int32, IByteBuffer)
Initializes an instance of the SingleBitPixelData class.
Declaration
public SingleBitPixelData(int width, int height, IByteBuffer data)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | Pixel data width. |
System.Int32 | height | Pixel data height. |
IByteBuffer | data | Byte data buffer. |
Methods
GetHistogram(Int32)
Gets a histogram of the pixel data for a given channel
.
Declaration
public override Histogram GetHistogram(int channel)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channel | The channel for which the histogram is requested. |
Returns
Type | Description |
---|---|
Histogram | Histogram of the pixel data for the given |
Overrides
Rescale(Double)
Gets a rescaled copy of the pixel data.
Declaration
public override IPixelData Rescale(double scale)
Parameters
Type | Name | Description |
---|---|---|
System.Double | scale | Copy scale. |
Returns
Type | Description |
---|---|
IPixelData | Rescaled copy of the pixel data. |