public abstract class DicomPixelBufferBase extends java.lang.Object implements DicomPixelBuffer
DicomPixelBuffer.PixelType
Modifier and Type | Method and Description |
---|---|
double |
getMaxIntensity() |
double |
getMinIntensity() |
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 idx)
Returns the raw rescaled value within the buffer at location x
|
double |
getRescaleIntercept() |
double |
getRescaleSlope() |
abstract int |
getValue(int idx)
Return the internal pixel value at idx.
|
boolean |
isSigned() |
void |
setRescale(double slope,
double intercept) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBuffer, getNumChannels, getNumPixels
public void setRescale(double slope, double intercept)
public double getRescaleSlope()
getRescaleSlope
in interface DicomPixelBuffer
public double getRescaleIntercept()
getRescaleIntercept
in interface DicomPixelBuffer
public DicomPixelBuffer.PixelType getPixelType()
getPixelType
in interface DicomPixelBuffer
public boolean isSigned()
isSigned
in interface DicomPixelBuffer
public abstract int getValue(int idx)
getValue
in interface DicomPixelBuffer
idx
- value indexpublic double getRescaledValue(int idx)
DicomPixelBuffer
getRescaledValue
in interface DicomPixelBuffer
idx
- index within the bufferpublic int getPixels(int x, int dx, int nx, DicomPixelBuffer.PixelType type, DicomPixelInterpolator interp, java.nio.ByteBuffer pixels)
DicomPixelBuffer
getPixels
in interface DicomPixelBuffer
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 bufferpublic int getPixels(int x, int dx, int nx, DicomPixelBuffer.PixelType type, DicomPixelInterpolator interp, int[] pixels, int offset)
DicomPixelBuffer
getPixels
in interface DicomPixelBuffer
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 arraypublic double getMaxIntensity()
getMaxIntensity
in interface DicomPixelBuffer
public double getMinIntensity()
getMinIntensity
in interface DicomPixelBuffer