skyview.process.imagefinder
Class ScaledBorder

java.lang.Object
  extended by skyview.process.ImageFinder
      extended by skyview.process.imagefinder.Border
          extended by skyview.process.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.process.imagefinder.Border
checkNaNs, CONSUMED, cornersOnly, fromOut, imageUsed, img, input, NO_COVERAGE, NON_PHYSICAL, output, pixelCount, rectCount, SPLIT_X, SPLIT_XY, SPLIT_Y, t2, t3, UNCHECKED
 
Constructor Summary
ScaledBorder()
           
 
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.process.imagefinder.Border
bestFit, cornerMatch, criterion, edgeOff, findImages, getCelest, getImage, setStrict
 
Methods inherited from class skyview.process.ImageFinder
factory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScaledBorder

public ScaledBorder()
Method Detail

minDist

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.

Overrides:
minDist in class Border