public interface DicomPixelBuffer
Modifier and Type | Interface and Description |
---|---|
static class |
DicomPixelBuffer.PixelType
Type of storage
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getBuffer() |
double |
getMaxIntensity() |
double |
getMinIntensity() |
int |
getNumChannels()
Number of "color" channels in the buffer
|
int |
getNumPixels() |
int |
getPixels(int x,
int dx,
int nx,
DicomPixelBuffer.PixelType type,
DicomPixelInterpolator interp,
java.nio.ByteBuffer pixels)
Populates a buffer of pixel values from those stored in this buffer,
using a supplied interpolator.
|
int |
getPixels(int x,
int dx,
int nx,
DicomPixelBuffer.PixelType type,
DicomPixelInterpolator interp,
int[] pixels,
int offset)
Populates a buffer of pixel values from those stored in this buffer,
using a supplied interpolator.
|
DicomPixelBuffer.PixelType |
getPixelType() |
double |
getRescaledValue(int x)
Returns the raw rescaled value within the buffer at location x
|
double |
getRescaleIntercept() |
double |
getRescaleSlope() |
int |
getValue(int x)
Return the internal pixel value at x.
|
boolean |
isSigned() |
DicomPixelBuffer.PixelType getPixelType()
int getNumPixels()
boolean isSigned()
int getPixels(int x, int dx, int nx, DicomPixelBuffer.PixelType type, DicomPixelInterpolator interp, java.nio.ByteBuffer pixels)
x
- starting pixel index in this bufferdx
- pixel step in this buffernx
- number of pixels to interpolate fromtype
- type of pixels to outputinterp
- interpolator for converting pixels for output displaypixels
- output bufferint getPixels(int x, int dx, int nx, DicomPixelBuffer.PixelType type, DicomPixelInterpolator interp, int[] pixels, int offset)
x
- starting pixel index in this bufferdx
- pixel step in this buffernx
- number of pixels to interpolate fromtype
- type of pixels to outputinterp
- interpolator for converting pixels for output displaypixels
- output arrayoffset
- offset in output arraydouble getMaxIntensity()
double getMinIntensity()
double getRescaleSlope()
double getRescaleIntercept()
int getValue(int x)
x
- value indexdouble getRescaledValue(int x)
x
- index within the bufferint getNumChannels()
java.lang.Object getBuffer()