Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/plugin/DICOM.html
Дата изменения: Thu Dec 2 23:03:11 2010
Дата индексирования: Mon Oct 1 21:43:25 2012
Кодировка:

Поисковые слова: mare
DICOM (ImageJ API)

ij.plugin
Class DICOM

java.lang.Object
  extended by ij.ImagePlus
      extended by ij.plugin.DICOM
All Implemented Interfaces:
Measurements, PlugIn, java.awt.image.ImageObserver

public class DICOM
extends ImagePlus
implements PlugIn

This plugin decodes DICOM files. If 'arg' is empty, it displays a file open dialog and opens and displays the image selected by the user. If 'arg' is a path, it opens the specified image and the calling routine can display it using "((ImagePlus)IJ.runPlugIn("ij.plugin.DICOM", path)).show()".


Field Summary
 
Fields inherited from class ij.ImagePlus
changes, CLOSED, COLOR_256, COLOR_RGB, compositeImage, currentSlice, GRAY16, GRAY32, GRAY8, height, img, ip, locked, OPENED, roi, UPDATED, width, win
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Fields inherited from interface ij.measure.Measurements
AREA, AREA_FRACTION, CENTER_OF_MASS, CENTROID, CIRCULARITY, ELLIPSE, FERET, INTEGRATED_DENSITY, INVERT_Y, KURTOSIS, LABELS, LIMIT, MAX_STANDARDS, MEAN, MEDIAN, MIN_MAX, MODE, PERIMETER, RECT, SCIENTIFIC_NOTATION, SHAPE_DESCRIPTORS, SKEWNESS, SLICE, STACK_POSITION, STD_DEV
 
Constructor Summary
DICOM()
          Default constructor.
DICOM(java.io.BufferedInputStream bis)
          Constructs a DICOM reader that using an BufferredInputStream.
DICOM(java.io.InputStream is)
          Constructs a DICOM reader that using an InputStream.
 
Method Summary
 void open(java.lang.String path)
          Opens the specified file as a DICOM.
 void run(java.lang.String arg)
          This method is called when the plugin is loaded.
 
Methods inherited from class ij.ImagePlus
addImageListener, clone, close, copy, copyScale, createEmptyStack, createHyperStack, createImagePlus, createLut, createNewRoi, draw, draw, flatten, flush, getBitDepth, getBufferedImage, getBytesPerPixel, getCalibration, getCanvas, getChannel, getChannelProcessor, getClipboard, getCurrentSlice, getDimensions, getDisplayRangeMax, getDisplayRangeMin, getFileInfo, getFrame, getGlobalCalibration, getHeight, getID, getImage, getImageStack, getImageStackSize, getLocalCalibration, getLocationAsString, getLuts, getMask, getNChannels, getNDimensions, getNFrames, getNSlices, getOpenAsHyperStack, getOriginalFileInfo, getOverlay, getPixel, getProcessor, getProperties, getProperty, getRoi, getShortTitle, getSlice, getStack, getStackIndex, getStackSize, getStartTime, getStatistics, getStatistics, getStatistics, getStatistics, getTitle, getType, getWidth, getWindow, hide, imageUpdate, isComposite, isDisplayedHyperStack, isHyperStack, isInvertedLut, isLocked, isProcessor, isVisible, killRoi, killStack, lock, lockSilently, mouseMoved, notifyListeners, paste, removeImageListener, repaintWindow, resetClipboard, resetDisplayRange, resetStack, restoreRoi, revert, saveRoi, setActivated, setCalibration, setColor, setDimensions, setDisplayRange, setDisplayRange, setFileInfo, setGlobalCalibration, setIgnoreFlush, setImage, setOpenAsHyperStack, setOverlay, setOverlay, setOverlay, setPosition, setPosition, setPositionWithoutUpdate, setProcessor, setProcessor, setProperty, setRoi, setRoi, setRoi, setRoi, setSlice, setSliceWithoutUpdate, setStack, setStack, setStack, setTitle, setType, setWindow, show, show, startTiming, toString, trimProcessor, unlock, updateAndDraw, updateAndRepaintWindow, updateChannelAndDraw, updateImage, updatePosition, updateStatusbarValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DICOM

public DICOM()
Default constructor.


DICOM

public DICOM(java.io.InputStream is)
Constructs a DICOM reader that using an InputStream. Here is an example that shows how to open and display a DICOM:
                DICOM dcm = new DICOM(is);
                dcm.run("Name");
                dcm.show();
                


DICOM

public DICOM(java.io.BufferedInputStream bis)
Constructs a DICOM reader that using an BufferredInputStream.

Method Detail

run

public void run(java.lang.String arg)
Description copied from interface: PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.

Specified by:
run in interface PlugIn

open

public void open(java.lang.String path)
Opens the specified file as a DICOM. Does not display a message if there is an error. Here is an example:
                DICOM dcm = new DICOM();
                dcm.open(path);
                if (dcm.getWidth()==0)
                        IJ.log("Error opening '"+path+"'");
                else
                        dcm.show();