Package loci.formats.in
Class DicomReader
java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.SubResolutionFormatReader
loci.formats.in.DicomReader
- All Implemented Interfaces:
Closeable,AutoCloseable,loci.formats.IAxisOrientationReader,loci.formats.ICompressedTileReader,loci.formats.IFormatHandler,loci.formats.IFormatReader,loci.formats.IMetadataConfigurable,loci.formats.IPyramidHandler
public class DicomReader
extends loci.formats.SubResolutionFormatReader
implements loci.formats.IAxisOrientationReader
DicomReader is the file format reader for DICOM files.
-
Field Summary
FieldsFields inherited from class loci.formats.SubResolutionFormatReader
coreFields inherited from class loci.formats.FormatReader
coreIndex, datasetDescription, domains, fillColor, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSIONFields inherited from class loci.formats.FormatHandler
COMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixesFields inherited from interface loci.formats.IFormatReader
CAN_GROUP, CANNOT_GROUP, MUST_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(boolean fileOnly) intshort[][]byte[][]loci.formats.Orientation[]intintintome.units.quantity.Lengthome.units.quantity.Lengthome.units.quantity.LengthintgetRequiredDirectories(String[] files) String[]getSeriesUsedFiles(boolean noPixels) getTags()Provide the complete hierarchy of DICOM tags.loci.common.RegiongetTileBoundingBox(int no, int x, int y) loci.formats.codec.CodecgetTileCodec(int no) loci.formats.codec.CodecOptionsgetTileCodecOptions(int no, int x, int y) intgetTileColumns(int no) getTileList(int no, loci.common.Region boundingBox, boolean firstTileOnly) Get a list of tiles corresponding to the given plane.intgetTileRows(int no) getTiles()getTiles(int coreIndex) ome.xml.model.primitives.TimestampgetZOffsets(int coreIndex) protected voidbooleanbooleanisThisType(String name, boolean open) booleanisThisType(loci.common.RandomAccessInputStream stream) byte[]openBytes(int no, byte[] buf, int x, int y, int w, int h) byte[]openCompressedBytes(int no, byte[] buf, int x, int y) byte[]openCompressedBytes(int no, int x, int y) protected org.perf4j.slf4j.Slf4JStopWatchMethods inherited from class loci.formats.SubResolutionFormatReader
coreIndexToSeries, flattenHashtables, getCoreIndex, getCoreMetadataList, getCurrentCore, getResolution, getResolutionCount, getSeries, getSeriesCount, seriesToCoreIndex, setCoreIndex, setResolution, setSeriesMethods inherited from class loci.formats.FormatReader
addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMetaList, addMeta, addMetaList, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMetaList, close, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getAvailableOptions, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCorrection, getCurrentFile, getDatasetStructureDescription, getDetectorType, getDimensionOrder, getDimensionOrder, getDomains, getEffectiveSizeC, getExperimentType, getFilamentType, getFillColor, getFillRule, getFilterType, getFontFamily, getFontStyle, getGlobalMeta, getGlobalMetadata, getIlluminationType, getImageCount, getImmersion, getIndex, getIndex, getLaserMedium, getLaserType, getMarker, getMedium, getMetadataStore, getMetadataStoreRoot, getMetadataValue, getMicrobeamManipulationType, getMicroscopeType, getModuloC, getModuloT, getModuloZ, getNamingConvention, getPixelType, getPixelType, getPossibleDomains, getPulse, getRGBChannelCount, getRotationTransform, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getThumbSizeX, getThumbSizeY, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThumbnailSeries, isUsedFile, makeFilterMetadata, openBytes, openBytes, openBytes, openPlane, openThumbBytes, readPlane, readPlane, readPlane, reopenFile, setFillColor, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataStore, setNormalized, setOriginalMetadataPopulated, updateMetadataListsMethods inherited from class loci.formats.FormatHandler
checkSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, setMetadataOptionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface loci.formats.IFormatHandler
getFormat, getNativeDataType, getSuffixesMethods inherited from interface loci.formats.IMetadataConfigurable
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
-
Field Details
-
DICOM_MAGIC_STRING
- See Also:
-
HEADER_LENGTH
public static final int HEADER_LENGTH- See Also:
-
-
Constructor Details
-
DicomReader
public DicomReader()Constructs a new DICOM reader.
-
-
Method Details
-
getAxisOrientations
public loci.formats.Orientation[] getAxisOrientations()- Specified by:
getAxisOrientationsin interfaceloci.formats.IAxisOrientationReader
-
getTileRows
public int getTileRows(int no) - Specified by:
getTileRowsin interfaceloci.formats.ICompressedTileReader- Overrides:
getTileRowsin classloci.formats.FormatReader
-
getTileColumns
public int getTileColumns(int no) - Specified by:
getTileColumnsin interfaceloci.formats.ICompressedTileReader- Overrides:
getTileColumnsin classloci.formats.FormatReader
-
getTileBoundingBox
public loci.common.Region getTileBoundingBox(int no, int x, int y) - Specified by:
getTileBoundingBoxin interfaceloci.formats.ICompressedTileReader
-
openCompressedBytes
public byte[] openCompressedBytes(int no, int x, int y) throws loci.formats.FormatException, IOException - Specified by:
openCompressedBytesin interfaceloci.formats.ICompressedTileReader- Throws:
loci.formats.FormatExceptionIOException
-
openCompressedBytes
public byte[] openCompressedBytes(int no, byte[] buf, int x, int y) throws loci.formats.FormatException, IOException - Specified by:
openCompressedBytesin interfaceloci.formats.ICompressedTileReader- Throws:
loci.formats.FormatExceptionIOException
-
getTileCodec
public loci.formats.codec.Codec getTileCodec(int no) throws loci.formats.FormatException, IOException - Specified by:
getTileCodecin interfaceloci.formats.ICompressedTileReader- Throws:
loci.formats.FormatExceptionIOException
-
getTileCodecOptions
public loci.formats.codec.CodecOptions getTileCodecOptions(int no, int x, int y) throws loci.formats.FormatException, IOException - Specified by:
getTileCodecOptionsin interfaceloci.formats.ICompressedTileReader- Throws:
loci.formats.FormatExceptionIOException
-
isThisType
- Specified by:
isThisTypein interfaceloci.formats.IFormatReader- Overrides:
isThisTypein classloci.formats.FormatReader
-
isThisType
- Specified by:
isThisTypein interfaceloci.formats.IFormatReader- Overrides:
isThisTypein classloci.formats.FormatReader- Throws:
IOException
-
getRequiredDirectories
- Specified by:
getRequiredDirectoriesin interfaceloci.formats.IFormatReader- Overrides:
getRequiredDirectoriesin classloci.formats.FormatReader- Throws:
loci.formats.FormatExceptionIOException
-
get8BitLookupTable
public byte[][] get8BitLookupTable()- Specified by:
get8BitLookupTablein interfaceloci.formats.IFormatReader- Overrides:
get8BitLookupTablein classloci.formats.FormatReader
-
get16BitLookupTable
public short[][] get16BitLookupTable()- Specified by:
get16BitLookupTablein interfaceloci.formats.IFormatReader- Overrides:
get16BitLookupTablein classloci.formats.FormatReader
-
getSeriesUsedFiles
- Specified by:
getSeriesUsedFilesin interfaceloci.formats.IFormatReader- Overrides:
getSeriesUsedFilesin classloci.formats.FormatReader
-
fileGroupOption
- Specified by:
fileGroupOptionin interfaceloci.formats.IFormatReader- Overrides:
fileGroupOptionin classloci.formats.FormatReader- Throws:
loci.formats.FormatExceptionIOException
-
getOptimalTileWidth
public int getOptimalTileWidth()- Specified by:
getOptimalTileWidthin interfaceloci.formats.IFormatReader- Overrides:
getOptimalTileWidthin classloci.formats.FormatReader
-
getOptimalTileHeight
public int getOptimalTileHeight()- Specified by:
getOptimalTileHeightin interfaceloci.formats.IFormatReader- Overrides:
getOptimalTileHeightin classloci.formats.FormatReader
-
openBytes
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws loci.formats.FormatException, IOException - Specified by:
openBytesin interfaceloci.formats.IFormatReader- Specified by:
openBytesin classloci.formats.FormatReader- Throws:
loci.formats.FormatExceptionIOException- See Also:
-
IFormatReader.openBytes(int, byte[], int, int, int, int)
-
close
- Specified by:
closein interfaceloci.formats.IFormatReader- Overrides:
closein classloci.formats.SubResolutionFormatReader- Throws:
IOException
-
initFile
- Overrides:
initFilein classloci.formats.SubResolutionFormatReader- Throws:
loci.formats.FormatExceptionIOException
-
getTileList
Get a list of tiles corresponding to the given plane. If the bounding box is not null, then only tiles intersecting with the bounding box will be returned. If the "firstTileOnly" flag is set, then this will return as soon as one matching tile is found. -
getImageType
-
getTiles
-
getTiles
-
getZOffsets
-
getZOffsets
-
getConcatenationIndex
public int getConcatenationIndex() -
getPixelSizeX
public ome.units.quantity.Length getPixelSizeX() -
getPixelSizeY
public ome.units.quantity.Length getPixelSizeY() -
getPixelSizeZ
public ome.units.quantity.Length getPixelSizeZ() -
getPositionX
-
getPositionY
-
getPositionZ
-
getChannelNames
-
isExtendedDepthOfField
public boolean isExtendedDepthOfField() -
getTimestamp
public ome.xml.model.primitives.Timestamp getTimestamp() -
getTags
Provide the complete hierarchy of DICOM tags. Applications that need to query or display the complete tag structure should use this method to retrieve tags instead of relying upon original metadata. -
stopWatch
protected org.perf4j.slf4j.Slf4JStopWatch stopWatch()
-