Class SingleBitPixelData
Single bit pixel IPixelData implementation(for binary pixels) usually used for overlay pixel data
Implements
Inherited Members
Namespace: Dicom.Imaging.Render
Assembly: cs.temp.dll.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 |
---|---|---|
Int32 | width | Pixel data width. |
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 |
---|---|---|
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 |
---|---|---|
Double | scale | Copy scale. |
Returns
Type | Description |
---|---|
IPixelData | Rescaled copy of the pixel data. |