Package skyview.process.imagefinder
Class Radius
java.lang.Object
skyview.process.ImageFinder
skyview.process.imagefinder.RectRecurse
skyview.process.imagefinder.Border
skyview.process.imagefinder.Radius
This class finds the best images to be used for sampling using
a recursive rectangle algorithm. It looks for rectangles the
boundaries of which can all be sampled from the same input image.
-
Field Summary
FieldsFields inherited from class skyview.process.imagefinder.RectRecurse
CONSUMED, fromOut, NO_COVERAGE, NON_PHYSICAL, SPLIT_X, SPLIT_XY, SPLIT_Y, UNCHECKED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
criterion
(int i, int nx, int ny, double x, double y) Being close to the center is the goal.Methods inherited from class skyview.process.imagefinder.RectRecurse
cornerMatch, edgeOff, findImages, getCandidate, getImage, getInputLimits, minDist, printOut, radiusSquared, setStrict
Methods inherited from class skyview.process.ImageFinder
factory
-
Field Details
-
firstCall
protected boolean firstCall -
centers
protected double[][] centers
-
-
Constructor Details
-
Radius
public Radius()
-
-
Method Details
-
criterion
protected double criterion(int i, int nx, int ny, double x, double y) Being close to the center is the goal.- Overrides:
criterion
in classBorder
- Parameters:
i
- The index of the image being considerednx
- The width of the candidate imageny
- The height of the caandiate imagex
- The x-value of the requested point.y
- The y-value of the requested point.- Returns:
- The inverse of 4 r^2. This is a little faster to computer so we use this rather than inverse of the radius.
-