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.RelationToThreshold getRelation()
    A predicate defined by the relationship of the XY-resolution to a constant threshold.
    org.anchoranalysis.image.io.bean.stack.reader.StackReader getStackReader()
    Reads an image before a resolution is imposed.
    org.anchoranalysis.image.io.stack.input.OpenedImageFile openFile​(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)  
    void setRelation​(org.anchoranalysis.bean.shared.relation.threshold.RelationToThreshold relation)
    A predicate defined by the relationship of the XY-resolution to a constant threshold.
    void setStackReader​(org.anchoranalysis.image.io.bean.stack.reader.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

  • 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:
      openFile in class org.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.