Class AlgorithmMatchForReference

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class AlgorithmMatchForReference
    extends AlgorithmBase
    Will take Two 2D images (one Reference, one Adjusted) and use the Reference image's Resolutions to transform the adjusted Image into a new size and resolution that the Reference Image can then be matched to, while preserving all Field of Views (there is no loss of FOV).
    Version:
    1.0
    Author:
    Ben Link
    • Field Detail

      • adjImage

        private ModelImage adjImage
        adjusted image.
      • correctDims

        private boolean correctDims
        check for 2-dimensionality.
      • hasNewAdj

        private boolean hasNewAdj
        was a new adjusted image created.
      • hasNewRef

        private boolean hasNewRef
        was a new reference image created.
      • newAdjImage

        private ModelImage newAdjImage
        new adjusted image.
      • newRefImage

        private ModelImage newRefImage
        new reference image.
      • refImage

        private ModelImage refImage
        reference image.
    • Constructor Detail

      • AlgorithmMatchForReference

        public AlgorithmMatchForReference​(ModelImage rImage,
                                          ModelImage aImage)
        Constructor.. takes in a reference and adjusted modelImage
        Parameters:
        rImage - reference image
        aImage - adjusted image
    • Method Detail

      • disposeLocal

        public void disposeLocal()
        Dispose of local variables that may be taking up lots of room.
      • finalize

        public void finalize()
        Prepares this class for destruction.
        Overrides:
        finalize in class AlgorithmBase
      • getNewAdjustedImage

        public ModelImage getNewAdjustedImage()
        Gets the new adjusted image created.
        Returns:
        new adj image
      • getNewReferenceImage

        public ModelImage getNewReferenceImage()
        Gets the new reference image created.
        Returns:
        new ref image
      • newAdjustedCreated

        public boolean newAdjustedCreated()
        tells if new adjusted image was created during run().
        Returns:
        if new was created
      • newReferenceCreated

        public boolean newReferenceCreated()
        tells if new reference image was created during run().
        Returns:
        if new was created