public class BytePixelBuffer extends DicomPixelBufferBase
DicomPixelBuffer.PixelType
Constructor and Description |
---|
BytePixelBuffer(byte[] pixels) |
BytePixelBuffer(byte[] pixels,
int offset,
int length) |
BytePixelBuffer(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 BytePixelBuffer(int size)
public BytePixelBuffer(byte[] pixels)
public BytePixelBuffer(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