Class SingleBitPixelData
- Namespace
- FellowOakDicom.Imaging.Render
- Assembly
- fo-dicom.core.dll
Single bit pixel IPixelData implementation(for binary pixels) usually used for overlay pixel data
public class SingleBitPixelData : GrayscalePixelDataU8, IPixelData
- Inheritance
-
SingleBitPixelData
- Implements
- Inherited Members
- Extension Methods
Constructors
SingleBitPixelData(int, int, IByteBuffer)
Initializes an instance of the SingleBitPixelData class.
public SingleBitPixelData(int width, int height, IByteBuffer data)
Parameters
width
intPixel data width.
height
intPixel data height.
data
IByteBufferByte data buffer.
Methods
GetHistogram(int)
Gets a histogram of the pixel data for a given channel
.
public override Histogram GetHistogram(int channel)
Parameters
channel
intThe channel for which the histogram is requested.
Returns
- Histogram
Histogram of the pixel data for the given
channel
.
Rescale(double)
Gets a rescaled copy of the pixel data.
public override IPixelData Rescale(double scale)
Parameters
scale
doubleCopy scale.
Returns
- IPixelData
Rescaled copy of the pixel data.