Package loci.formats.in
Class ND2Reader
java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.SubResolutionFormatReader
loci.formats.in.ND2Reader
- All Implemented Interfaces:
Closeable,AutoCloseable,ICompressedTileReader,IFormatHandler,IFormatReader,IMetadataConfigurable,IPyramidHandler
ND2Reader is the file format reader for Nikon ND2 files.
The JAI ImageIO library is required to use this reader; it is available from
http://jai-imageio.dev.java.net. Note that JAI ImageIO is bundled with a
version of the JJ2000 library, so it is important that either:
(1) the JJ2000 jar file is *not* in the classpath; or
(2) the JAI jar file precedes JJ2000 in the classpath.
Thanks to Tom Caswell for additions to the ND2 metadata parsing logic.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final booleanstatic final Stringstatic final StringDeprecated.Fields 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) short[][]byte[][]long[][]protected voidbooleanisThisType(RandomAccessInputStream stream) byte[]openBytes(int no, byte[] buf, int x, int y, int w, int h) static StringRemove control and invalid characters from the given string.voidsetOffsets(String file, long[][] newOffsets) Change the underlying file path and pixel data offsets, keeping all other metadata the same.booleanMethods 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, fileGroupOption, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, 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, getOptimalTileHeight, getOptimalTileWidth, getPixelType, getPixelType, getPossibleDomains, getPulse, getRequiredDirectories, getRGBChannelCount, getRotationTransform, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getThumbSizeX, getThumbSizeY, getTileColumns, getTileRows, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, 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.ICompressedTileReader
getTileCodec, getTileCodecOptions, openCompressedBytes, openCompressedBytesMethods inherited from interface loci.formats.IFormatHandler
getFormat, getNativeDataType, getSuffixesMethods inherited from interface loci.formats.IMetadataConfigurable
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
-
Field Details
-
ND2_MAGIC_BYTES_1
public static final long ND2_MAGIC_BYTES_1- See Also:
-
ND2_MAGIC_BYTES_2
public static final long ND2_MAGIC_BYTES_2- See Also:
-
USE_CHUNKMAP_LEGACY_KEY
Deprecated.Legacy chunkmap option key will be removed in Bio-Formats 8.0.0.- See Also:
-
USE_CHUNKMAP_KEY
- See Also:
-
USE_CHUNKMAP_DEFAULT
public static final boolean USE_CHUNKMAP_DEFAULT- See Also:
-
-
Constructor Details
-
ND2Reader
public ND2Reader()Constructs a new ND2 reader.
-
-
Method Details
-
useChunkMap
public boolean useChunkMap() -
isThisType
- Specified by:
isThisTypein interfaceIFormatReader- Overrides:
isThisTypein classFormatReader- Throws:
IOException
-
get8BitLookupTable
public byte[][] get8BitLookupTable()- Specified by:
get8BitLookupTablein interfaceIFormatReader- Overrides:
get8BitLookupTablein classFormatReader
-
get16BitLookupTable
public short[][] get16BitLookupTable()- Specified by:
get16BitLookupTablein interfaceIFormatReader- Overrides:
get16BitLookupTablein classFormatReader
-
openBytes
public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException - Specified by:
openBytesin interfaceIFormatReader- Specified by:
openBytesin classFormatReader- Throws:
FormatExceptionIOException- See Also:
-
close
- Specified by:
closein interfaceIFormatReader- Overrides:
closein classSubResolutionFormatReader- Throws:
IOException
-
getAvailableOptions
- Overrides:
getAvailableOptionsin classFormatReader
-
initFile
- Overrides:
initFilein classSubResolutionFormatReader- Throws:
FormatExceptionIOException
-
sanitizeControl
Remove control and invalid characters from the given string. -
getOffsets
public long[][] getOffsets()- Returns:
- offsets to pixel data
-
setOffsets
Change the underlying file path and pixel data offsets, keeping all other metadata the same.- Throws:
IOException
-