public class RejectIfConditionXYResolution extends StackReader
This is useful for correcting situations where there has been a unit mixup by the StackReader
.
It assumes the X and Y resolution are equal. Throws an error otherwise.
If no image-resolution is known, an error will be thrown.
Constructor and Description |
---|
RejectIfConditionXYResolution() |
Modifier and Type | Method and Description |
---|---|
RelationToThreshold |
getRelation()
A predicate defined by the relationship of the XY-resolution to a constant threshold.
|
StackReader |
getStackReader()
Reads an image before a resolution is imposed.
|
OpenedImageFile |
openFile(Path path)
Opens a file containing one or more images but does not read an image.
|
void |
setRelation(RelationToThreshold relation)
A predicate defined by the relationship of the XY-resolution to a constant threshold.
|
void |
setStackReader(StackReader stackReader)
Reads an image before a resolution is imposed.
|
readStack
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public OpenedImageFile openFile(Path path) throws ImageIOException
StackReader
openFile
in class StackReader
path
- where the file is locatedImageIOException
- if the file cannot be read.public StackReader getStackReader()
public void setStackReader(StackReader stackReader)
public RelationToThreshold getRelation()
public void setRelation(RelationToThreshold relation)
Copyright © 2010–2021 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.