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
widthintPixel data width.
heightintPixel data height.
dataIByteBufferByte data buffer.
Methods
GetHistogram(int)
Gets a histogram of the pixel data for a given channel.
public override Histogram GetHistogram(int channel)
Parameters
channelintThe 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
scaledoubleCopy scale.
Returns
- IPixelData
Rescaled copy of the pixel data.