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 |
getRescaleIntercept() |
double |
getRescaleSlope() |
boolean |
isSigned() |
void |
setRescale(double slope,
double intercept) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBuffer, 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 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