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() |
int |
getMaxIntensity() |
int |
getMinIntensity() |
DicomPixelBuffer |
getPixelBuffer() |
int |
getPixels(int x,
int y,
int dx,
int dy,
int nx,
int ny,
DicomPixelBuffer pixels,
int offset,
DicomPixelConverter interp)
Populates a pixel buffer from the slice, interpolated using an interpolator
|
int |
getPixelsByte(int x,
int y,
int dx,
int dy,
int nx,
int ny,
byte[] pixels,
int offset,
DicomPixelConverter interp)
Populates an array of grayscale(byte) pixels from the slice,
interpolated using an interpolator
|
int |
getPixelsRGB(int x,
int y,
int dx,
int dy,
int nx,
int ny,
byte[] pixels,
int offset,
DicomPixelConverter interp)
Populates an array of RGB(byte) pixels from the slice,
interpolated using an interpolator
|
int |
getPixelsShort(int x,
int y,
int dx,
int dy,
int nx,
int ny,
short[] pixels,
int offset,
DicomPixelConverter interp)
Populates an array of grayscale(short) pixels from the slice,
interpolated using an interpolator
|
DicomPixelBuffer.PixelType |
getPixelType() |
public DicomSlice(java.lang.String title, DicomHeader header, DicomPixelBuffer pixels)
title
- header
- pixels
- public DicomPixelBuffer.PixelType getPixelType()
public DicomPixelBuffer getPixelBuffer()
public int getPixelsRGB(int x, int y, int dx, int dy, int nx, int ny, byte[] pixels, int offset, DicomPixelConverter interp)
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 directionpixels
- output array to filloffset
- offset in output pixel arrayinterp
- interpolator for converting pixels to appropriate formpublic int getPixelsByte(int x, int y, int dx, int dy, int nx, int ny, byte[] pixels, int offset, DicomPixelConverter interp)
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 directionpixels
- output array to filloffset
- offset in output pixel arrayinterp
- interpolator for converting pixels to appropriate formpublic int getPixelsShort(int x, int y, int dx, int dy, int nx, int ny, short[] pixels, int offset, DicomPixelConverter interp)
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 directionpixels
- output array to filloffset
- offset in output pixel arrayinterp
- interpolator for converting pixels to appropriate formpublic int getPixels(int x, int y, int dx, int dy, int nx, int ny, DicomPixelBuffer pixels, int offset, DicomPixelConverter interp)
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 directionpixels
- output buffer to filloffset
- offset in output pixel bufferinterp
- interpolator for converting pixels to appropriate formpublic int getMaxIntensity()
public int getMinIntensity()
public DicomHeader getHeader()