Class ScaledBorder

  extended by skyview.geometry.ImageFinder
      extended by skyview.geometry.imagefinder.Border
          extended by skyview.geometry.imagefinder.ScaledBorder

public class ScaledBorder
extends Border

This class works almost exactly like the BorderImageFinder, however when calculating the distance from the edge of the image, the distance is scaled to diagonal dimension of the image.

Field Summary
Fields inherited from class skyview.geometry.imagefinder.Border
checkNaNs, CONSUMED, cornersOnly, fromOut, imageUsed, img, input, NO_COVERAGE, NON_PHYSICAL, output, SPLIT_X, SPLIT_XY, SPLIT_Y, t2, t3, UNCHECKED
Constructor Summary
Method Summary
protected  double minDist(double x, double y, double a, double b)
          Given a point at x,y in an image of size a,b in the rectangle 0,a 0,b find the minimum distance to the edge.
Methods inherited from class skyview.geometry.imagefinder.Border
bestFit, cornerMatch, criterion, edgeOff, findImages, getCelest, getImage, setStrict
Methods inherited from class skyview.geometry.ImageFinder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ScaledBorder()
Method Detail


protected double minDist(double x,
                         double y,
                         double a,
                         double b)
Given a point at x,y in an image of size a,b in the rectangle 0,a 0,b find the minimum distance to the edge. We assume that x,y is contained in the rectangle. If x,y is outside the rectangle, then this should return a negative number. In this version the distance is scaled according to the size of the image. Unfortunately we cannot assume that this is constant. This ImageFinder is called when we have images with substantially different sizes in the survey.

minDist in class Border