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 |
---|---|
double |
getColSpacing() |
DicomHeader |
getHeader() |
RigidTransform3d |
getImagePose() |
DicomSlice.SliceInfo |
getInfo() |
double |
getMaxIntensity() |
double |
getMinIntensity() |
int |
getNumChannels()
Number of channels in the slice
|
int |
getNumCols() |
int |
getNumRows() |
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() |
double |
getPixelValue(int channel,
int x,
int y)
Gets raw pixel value from the slice
|
double |
getRowSpacing() |
double |
getThickness() |
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 getPixelValue(int channel, int x, int y)
channel
- image channelx
- starting x pixely
- starting y pixelpublic int getNumChannels()
public double getMaxIntensity()
public double getMinIntensity()
public DicomHeader getHeader()
public RigidTransform3d getImagePose()
public DicomSlice.SliceInfo getInfo()
public double getThickness()
public double getRowSpacing()
public double getColSpacing()
public int getNumRows()
public int getNumCols()