Package ij.plugin
Class DICOM
java.lang.Object
ij.ImagePlus
ij.plugin.DICOM
- All Implemented Interfaces:
Measurements
,PlugIn
,ImageObserver
,Cloneable
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, dimensionsSet, flattenTitle, GRAY16, GRAY32, GRAY8, height, img, ip, locked, nChannels, nFrames, nSlices, OPENED, roi, setIJMenuBar, 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
ADD_TO_OVERLAY, ALL_STATS, AREA, AREA_FRACTION, CENTER_OF_MASS, CENTROID, CIRCULARITY, ELLIPSE, FERET, INTEGRATED_DENSITY, INVERT_Y, KURTOSIS, LABELS, LIMIT, MAX_STANDARDS, MEAN, MEDIAN, MIN_MAX, MODE, NaN_EMPTY_CELLS, PERIMETER, RECT, SCIENTIFIC_NOTATION, SHAPE_DESCRIPTORS, SKEWNESS, SLICE, STACK_POSITION, STD_DEV
-
Constructor Summary
Constructors Constructor Description DICOM()
Default constructor.DICOM(BufferedInputStream bis)
Constructs a DICOM reader that using an BufferredInputStream.DICOM(InputStream is)
Constructs a DICOM reader that using an InputStream. -
Method Summary
Modifier and Type Method Description String
getInfo(String path)
Returns the DICOM tags of the specified file as a string.static String
getTagName(String id)
Returns the name of the specified DICOM tag id.void
open(String path)
Opens the specified file as a DICOM.void
run(String arg)
This method is called when the plugin is loaded.Methods inherited from class ij.ImagePlus
addImageListener, clone, close, convertIndexToPosition, copy, copy, copyAttributes, copyScale, createEmptyStack, createHyperStack, createImagePlus, createLut, createNewRoi, createRoiMask, createThresholdMask, crop, crop, deleteRoi, draw, draw, duplicate, flatten, flattenStack, flush, getAllStatistics, getBitDepth, getBufferedImage, getBytesPerPixel, getC, getCalibration, getCanvas, getChannel, getChannelProcessor, getClipboard, getCompositeMode, getCurrentSlice, getDefault16bitRange, getDimensions, getDimensions, getDisplayMode, getDisplayRangeMax, getDisplayRangeMin, getFileInfo, getFrame, getGlobalCalibration, getHeight, getHideOverlay, getID, getImage, getImageStack, getImageStackSize, getInfoProperty, getLocalCalibration, getLocationAsString, getLuts, getMask, getNChannels, getNDimensions, getNFrames, getNSlices, getNumericProperty, getOpenAsHyperStack, getOriginalFileInfo, getOverlay, getPixel, getPlot, getProcessor, getProp, getProperties, getProperty, getRawStatistics, getRoi, getShortTitle, getSizeInBytes, getSlice, getStack, getStackIndex, getStackSize, getStartTime, getStaticGlobalCalibration, getStatistics, getStatistics, getStatistics, getStatistics, getStringProperty, getT, getTitle, getType, getWidth, getWindow, getZ, hide, imageUpdate, isComposite, isDisplayedHyperStack, isHyperStack, isInvertedLut, isLocked, isLockedByAnotherThread, isProcessor, isStack, isThreshold, isVisible, killRoi, killStack, lock, lockSilently, mouseMoved, notifyListeners, okToDeleteRoi, paste, plotHistogram, plotHistogram, removeImageListener, repaintWindow, resetClipboard, resetDisplayRange, resetStack, restoreRoi, revert, saveRoi, setActivated, setActiveChannels, setAntialiasRendering, setC, setCalibration, setColor, setDefault16bitRange, setDimensions, setDisplayMode, setDisplayRange, setDisplayRange, setFileInfo, setGlobalCalibration, setHideOverlay, setIgnoreFlush, setIgnoreGlobalCalibration, setIJMenuBar, setIJMenuBar, setImage, setImage, setLut, setOpenAsHyperStack, setOverlay, setOverlay, setOverlay, setPlot, setPosition, setPosition, setPositionWithoutUpdate, setProcessor, setProcessor, setProperty, setRoi, setRoi, setRoi, setRoi, setSlice, setSliceWithoutUpdate, setStack, setStack, setStack, setT, setTitle, setType, setWindow, setZ, show, show, startTiming, toString, trimProcessor, unlock, updateAndDraw, updateAndRepaintWindow, updateChannelAndDraw, updateImage, updatePosition, updateStatusbarValue, updateVirtualSlice
-
Constructor Details
-
Method Details
-
run
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. -
open
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();
-
getInfo
Returns the DICOM tags of the specified file as a string. -
getTagName
Returns the name of the specified DICOM tag id.
-