Class RejectIfConditionXYResolution

Object
AnchorBean<StackReader>
StackReader
RejectIfConditionXYResolution

public class RejectIfConditionXYResolution extends 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    RelationToThreshold
    A predicate defined by the relationship of the XY-resolution to a constant threshold.
    StackReader
    Reads an image before a resolution is imposed.
    OpenedImageFile
    openFile(Path path, ExecutionTimeRecorder executionTimeRecorder)
     
    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.

    Methods inherited from class org.anchoranalysis.image.io.bean.stack.reader.StackReader

    readStack

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RejectIfConditionXYResolution

      public RejectIfConditionXYResolution()
  • Method Details

    • openFile

      public OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
      Specified by:
      openFile in class StackReader
      Throws:
      ImageIOException
    • getStackReader

      public StackReader getStackReader()
      Reads an image before a resolution is imposed.
    • setStackReader

      public void setStackReader(StackReader stackReader)
      Reads an image before a resolution is imposed.
    • getRelation

      public RelationToThreshold getRelation()
      A predicate defined by the relationship of the XY-resolution to a constant threshold.
    • setRelation

      public void setRelation(RelationToThreshold relation)
      A predicate defined by the relationship of the XY-resolution to a constant threshold.