Class FromStackReader
Uses a
StackReader to read the image-metadata.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe series to open to the read the metadata (zero-indexed).TheStackReaderto use to read the image metadata.openFile(Path path, StackReader defaultStackReader, OperationContext context) Opens a file containing one or more images but does not read an image.voidsetSeriesIndex(int seriesIndex) The series to open to the read the metadata (zero-indexed).voidsetStackReader(StackReader stackReader) TheStackReaderto use to read the image metadata.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FromStackReader
Create from aStackReader.- Parameters:
stackReader- the reader.
-
FromStackReader
public FromStackReader()
-
-
Method Details
-
openFile
public ImageMetadata openFile(Path path, StackReader defaultStackReader, OperationContext context) throws ImageIOException Description copied from class:ImageMetadataReaderOpens a file containing one or more images but does not read an image.- Specified by:
openFilein classImageMetadataReader- 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.
-
getStackReader
TheStackReaderto use to read the image metadata.If not specified, the default
StackReaderis used. Note that this bean does not allow the default -instance to be passed byDefaultInstance, as the bean often needs to be specified in thedefaultBeans.xmlconfiguration file, where it is not already known. -
setStackReader
TheStackReaderto use to read the image metadata.If not specified, the default
StackReaderis used. Note that this bean does not allow the default -instance to be passed byDefaultInstance, as the bean often needs to be specified in thedefaultBeans.xmlconfiguration file, where it is not already known. -
getSeriesIndex
public int getSeriesIndex()The series to open to the read the metadata (zero-indexed). -
setSeriesIndex
public void setSeriesIndex(int seriesIndex) The series to open to the read the metadata (zero-indexed).
-