public class DicomSlice
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DicomSlice.SliceInfo
Size, location and series information of he DICOM slice
|
Constructor and Description |
---|
DicomSlice(java.lang.String title,
DicomHeader header,
DicomPixelBuffer pixels)
Construct a DICOM slice with a given title, DICOM header information, and
image pixels
|
Modifier and Type | Method and Description |
---|---|
DicomHeader |
getHeader() |
double |
getMaxIntensity() |
double |
getMinIntensity() |
DicomPixelBuffer |
getPixelBuffer() |
void |
getPixels(int x,
int y,
int dx,
int dy,
int nx,
int ny,
DicomPixelBuffer.PixelType type,
int scanline,
DicomPixelInterpolator interp,
java.nio.ByteBuffer pixels)
Populates a buffer of pixels from the slice,
interpolated using an interpolator
|
void |
getPixels(int x,
int y,
int dx,
int dy,
int nx,
int ny,
DicomPixelBuffer.PixelType type,
int scanline,
DicomPixelInterpolator interp,
int[] pixels,
int offset)
Populates a buffer of pixels from the slice,
interpolated using an interpolator
|
DicomPixelBuffer.PixelType |
getPixelType() |
public DicomSlice(java.lang.String title, DicomHeader header, DicomPixelBuffer pixels)
public DicomPixelBuffer.PixelType getPixelType()
public DicomPixelBuffer getPixelBuffer()
public void getPixels(int x, int y, int dx, int dy, int nx, int ny, DicomPixelBuffer.PixelType type, int scanline, DicomPixelInterpolator interp, java.nio.ByteBuffer pixels)
x
- starting x voxely
- starting y voxeldx
- voxel step in x directiondy
- voxel step in y directionnx
- number of voxels in x directionny
- number of voxels in y directiontype
- pixel type to convert toscanline
- width of line (stride between lines)interp
- interpolator for converting pixels to appropriate formpixels
- buffer array to fillpublic void getPixels(int x, int y, int dx, int dy, int nx, int ny, DicomPixelBuffer.PixelType type, int scanline, DicomPixelInterpolator interp, int[] pixels, int offset)
x
- starting x voxely
- starting y voxeldx
- voxel step in x directiondy
- voxel step in y directionnx
- number of voxels in x directionny
- number of voxels in y directiontype
- pixel type to convert toscanline
- width of line (stride between lines)interp
- interpolator for converting pixels to appropriate formpixels
- buffer array to filloffset
- offset in output buffer to start filling valuespublic double getMaxIntensity()
public double getMinIntensity()
public DicomHeader getHeader()