Class RejectIfConditionXYResolution
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.image.io.bean.stack.reader.StackReader>
org.anchoranalysis.image.io.bean.stack.reader.StackReader
org.anchoranalysis.plugin.io.bean.stack.reader.RejectIfConditionXYResolution
public class RejectIfConditionXYResolution
extends org.anchoranalysis.image.io.bean.stack.reader.StackReader
If the XY resolution of an opened-image meets a certain condition then the resolution is scaled
by a factor.
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.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description RejectIfConditionXYResolution() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.bean.shared.relation.threshold.RelationToThresholdgetRelation()A predicate defined by the relationship of the XY-resolution to a constant threshold.org.anchoranalysis.image.io.bean.stack.reader.StackReadergetStackReader()Reads an image before a resolution is imposed.org.anchoranalysis.image.io.stack.input.OpenedImageFileopenFile(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)voidsetRelation(org.anchoranalysis.bean.shared.relation.threshold.RelationToThreshold relation)A predicate defined by the relationship of the XY-resolution to a constant threshold.voidsetStackReader(org.anchoranalysis.image.io.bean.stack.reader.StackReader stackReader)Reads an image before a resolution is imposed.
-
Constructor Details
-
RejectIfConditionXYResolution
public RejectIfConditionXYResolution()
-
-
Method Details
-
openFile
public org.anchoranalysis.image.io.stack.input.OpenedImageFile openFile(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder) throws org.anchoranalysis.image.io.ImageIOException- Specified by:
openFilein classorg.anchoranalysis.image.io.bean.stack.reader.StackReader- Throws:
org.anchoranalysis.image.io.ImageIOException
-
getStackReader
public org.anchoranalysis.image.io.bean.stack.reader.StackReader getStackReader()Reads an image before a resolution is imposed. -
setStackReader
public void setStackReader(org.anchoranalysis.image.io.bean.stack.reader.StackReader stackReader)Reads an image before a resolution is imposed. -
getRelation
public org.anchoranalysis.bean.shared.relation.threshold.RelationToThreshold getRelation()A predicate defined by the relationship of the XY-resolution to a constant threshold. -
setRelation
public void setRelation(org.anchoranalysis.bean.shared.relation.threshold.RelationToThreshold relation)A predicate defined by the relationship of the XY-resolution to a constant threshold.
-