Class ImageMetadataReader
- Direct Known Subclasses:
AlwaysReject,FromStackReader,InferFromHeader
Reads an
ImageMetadata from the file-system.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ImageMetadataopenFile(Path path, StackReader defaultStackReader, OperationContext context) Opens a file containing one or more images but does not read an image.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ImageMetadataReader
public ImageMetadataReader()
-
-
Method Details
-
openFile
public abstract ImageMetadata openFile(Path path, StackReader defaultStackReader, OperationContext context) throws ImageIOException Opens a file containing one or more images but does not read an image.- Parameters:
path- where the file is located.defaultStackReader- the defaultStackReaderto use, if needed, and if not otherwise specified, for reading metadata.context- context for reading a stack from the file-system.- Returns:
- an interface to the opened file that should be closed when no longer in use.
- Throws:
ImageIOException- if the file cannot be read.
-