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, waitgetBuffer, getNumChannels, getNumPixelspublic void setRescale(double slope,
double intercept)
public double getRescaleSlope()
getRescaleSlope in interface DicomPixelBufferpublic double getRescaleIntercept()
getRescaleIntercept in interface DicomPixelBufferpublic DicomPixelBuffer.PixelType getPixelType()
getPixelType in interface DicomPixelBufferpublic boolean isSigned()
isSigned in interface DicomPixelBufferpublic abstract int getValue(int idx)
getValue in interface DicomPixelBufferidx - value indexpublic double getRescaledValue(int idx)
DicomPixelBuffergetRescaledValue in interface DicomPixelBufferidx - index within the bufferpublic int getPixels(int x,
int dx,
int nx,
DicomPixelBuffer.PixelType type,
DicomPixelInterpolator interp,
java.nio.ByteBuffer pixels)
DicomPixelBuffergetPixels in interface DicomPixelBufferx - 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)
DicomPixelBuffergetPixels in interface DicomPixelBufferx - 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 DicomPixelBufferpublic double getMinIntensity()
getMinIntensity in interface DicomPixelBuffer