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
- widthint
- Pixel data width. 
- heightint
- Pixel data height. 
- dataIByteBuffer
- Byte data buffer. 
Methods
GetHistogram(int)
Gets a histogram of the pixel data for a given channel.
public override Histogram GetHistogram(int channel)Parameters
- channelint
- The 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
- scaledouble
- Copy scale. 
Returns
- IPixelData
- Rescaled copy of the pixel data.