|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.display.SourceImage
public class SourceImage
A class that encapsulates the pixel data and features and values from an image source (such as a DICOM image), usually for the purpose of displaying it.
SingleImagePanel| Field Summary | |
|---|---|
protected com.pixelmed.display.SourceImage.BufferedImageSource |
bufferedImageSource
|
protected MappedByteBuffer |
memoryMappedByteBuffer
|
protected FileChannel |
memoryMappedFileChannel
|
protected FileInputStream |
memoryMappedFileInputStream
|
| Constructor Summary | |
|---|---|
SourceImage(AttributeList list)
Construct an image from a single or multi-frame DICOM image from a list of DICOM attributes. |
|
SourceImage(DicomInputStream i)
Construct an image from a single or multi-frame DICOM image from an input stream (such as from a file or the network). |
|
SourceImage(InputStream i,
int w,
int h,
int depth)
Construct a single-frame image from an unsigned raw image (no header) on an input stream with the specified width, height and bit depth. |
|
SourceImage(InputStream i,
int w,
int h,
int depth,
int frames)
Construct a multi-frame image from an unsigned raw image (no header) on an input stream with the specified width, height and bit depth. |
|
SourceImage(String filename)
Construct an image from a single or multi-frame DICOM image from a file. |
|
| Method Summary | |
|---|---|
protected static void |
clean(Object object)
|
void |
close()
|
protected void |
finalize()
|
int |
getBackgroundValue()
|
BufferedImage |
getBufferedImage()
|
BufferedImage |
getBufferedImage(int i)
|
Dimension |
getDimension()
|
DisplayShutter |
getDisplayShutter()
|
int |
getHeight()
|
int |
getMaximum()
|
int |
getMinimum()
|
ModalityTransform |
getModalityTransform()
|
int |
getNumberOfBufferedImages()
|
int |
getNumberOfFrames()
|
Overlay |
getOverlay()
|
int |
getPadRangeLimit()
|
int |
getPadValue()
|
int |
getPaletteColorBitsPerEntry()
|
short[] |
getPaletteColorBlueTable()
|
int |
getPaletteColorFirstValueMapped()
|
short[] |
getPaletteColorGreenTable()
|
int |
getPaletteColorLargestGray()
|
int |
getPaletteColorNumberOfEntries()
|
short[] |
getPaletteColorRedTable()
|
RealWorldValueTransform |
getRealWorldValueTransform()
|
String |
getTitle()
|
VOITransform |
getVOITransform()
|
int |
getWidth()
|
boolean |
isGrayscale()
|
boolean |
isInverted()
|
boolean |
isPadded()
|
boolean |
isSigned()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.pixelmed.display.SourceImage.BufferedImageSource bufferedImageSource
protected FileInputStream memoryMappedFileInputStream
protected FileChannel memoryMappedFileChannel
protected MappedByteBuffer memoryMappedByteBuffer
| Constructor Detail |
|---|
public SourceImage(InputStream i,
int w,
int h,
int depth)
throws IOException
Construct a single-frame image from an unsigned raw image (no header) on an input stream with the specified width, height and bit depth.
i - the input streamw - image widthh - image heightdepth - bit depth
IOException
public SourceImage(InputStream i,
int w,
int h,
int depth,
int frames)
throws IOException
Construct a multi-frame image from an unsigned raw image (no header) on an input stream with the specified width, height and bit depth.
i - the input streamw - image widthh - image heightdepth - bit depthframes - number of frames
IOException
public SourceImage(String filename)
throws IOException,
DicomException
Construct an image from a single or multi-frame DICOM image from a file.
filename -
IOException
DicomException
public SourceImage(DicomInputStream i)
throws IOException,
DicomException
Construct an image from a single or multi-frame DICOM image from an input stream (such as from a file or the network).
i - the input stream
IOException
DicomException
public SourceImage(AttributeList list)
throws DicomException
Construct an image from a single or multi-frame DICOM image from a list of DICOM attributes.
list - the list of attributes that include the description and values of the pixel data
DicomException| Method Detail |
|---|
protected static void clean(Object object)
throws Exception
Exception
public void close()
throws Throwable
Throwable
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic BufferedImage getBufferedImage()
public BufferedImage getBufferedImage(int i)
public int getNumberOfBufferedImages()
public int getWidth()
public int getHeight()
public Dimension getDimension()
public int getMinimum()
public int getMaximum()
public boolean isSigned()
public boolean isInverted()
public boolean isPadded()
public int getPadValue()
public int getPadRangeLimit()
public int getBackgroundValue()
public boolean isGrayscale()
public String getTitle()
public int getNumberOfFrames()
public int getPaletteColorLargestGray()
public int getPaletteColorFirstValueMapped()
public int getPaletteColorNumberOfEntries()
public int getPaletteColorBitsPerEntry()
public short[] getPaletteColorRedTable()
public short[] getPaletteColorGreenTable()
public short[] getPaletteColorBlueTable()
public RealWorldValueTransform getRealWorldValueTransform()
public ModalityTransform getModalityTransform()
public VOITransform getVOITransform()
public DisplayShutter getDisplayShutter()
public Overlay getOverlay()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||