public class UBytePixelBuffer extends DicomPixelBufferBase
DicomPixelBuffer.PixelType
Constructor and Description |
---|
UBytePixelBuffer(byte[] pixels) |
UBytePixelBuffer(byte[] pixels,
int offset,
int length) |
UBytePixelBuffer(int size) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer() |
int |
getNumChannels()
Number of "color" channels in the buffer
|
int |
getNumPixels() |
int |
getValue(int idx)
Return the internal pixel value at idx.
|
getMaxIntensity, getMinIntensity, getPixels, getPixels, getPixelType, getRescaledValue, getRescaleIntercept, getRescaleSlope, isSigned, setRescale
public UBytePixelBuffer(int size)
public UBytePixelBuffer(byte[] pixels)
public UBytePixelBuffer(byte[] pixels, int offset, int length)
public int getValue(int idx)
DicomPixelBufferBase
getValue
in interface DicomPixelBuffer
getValue
in class DicomPixelBufferBase
idx
- value indexpublic int getNumPixels()
public byte[] getBuffer()
public int getNumChannels()
DicomPixelBuffer