public class ScaledBorder extends RectRecurse
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.
Constructors Constructor Description
Modifier and Type Method Description
criterion(int i, int nx, int ny, double x, double y)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.RectRecurse
cornerMatch, edgeOff, findImages, getCandidate, getImage, getInputLimits, minDist, printOut, radiusSquared, setStrict
protected double criterion(int i, int nx, int ny, double x, double y)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.
- Specified by:
i- The index of the image being considered
nx- The width of the candidate image
ny- The height of the caandiate image
x- The x-value of the requested point.
y- The y-value of the requested point.
- A measure of the desirability of using this image to same this point. Larger is better.