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,
ExecutionTimeRecorder executionTimeRecorder)
Opens a file containing one or more images.
|
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, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
StackReader
This method should run as computationally quicky as possible. Image voxels should not yet be read.
openFile
in class StackReader
path
- where the file is located.executionTimeRecorder
- records the execution-times of certain operations.ImageIOException
- if the file cannot be read.public StackReader getStackReader()
public void setStackReader(StackReader stackReader)
public RelationToThreshold getRelation()
public void setRelation(RelationToThreshold relation)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.