skyview.process.imagefinder
Class Radius
java.lang.Object
skyview.process.ImageFinder
skyview.process.imagefinder.Border
skyview.process.imagefinder.Radius
public class Radius
- extends Border
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.
Fields inherited from class skyview.process.imagefinder.Border |
checkNaNs, CONSUMED, cornersOnly, fromOut, imageUsed, img, input, NO_COVERAGE, NON_PHYSICAL, output, pixelCount, rectCount, retry, SPLIT_X, SPLIT_XY, SPLIT_Y, t2, t3, UNCHECKED |
Method Summary |
protected int |
bestFit(int pix,
boolean[] valid,
boolean secondTry)
Find the best image to use for a given unit vector. |
protected void |
getCenters()
Find the centers of the input images. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
firstCall
protected boolean firstCall
centers
protected double[][] centers
Radius
public Radius()
bestFit
protected int bestFit(int pix,
boolean[] valid,
boolean secondTry)
- Find the best image to use for a given unit vector.
- Overrides:
bestFit
in class Border
- Parameters:
pix
- The output pixel we are testing (pix = x + width*y)valid
- Should we test this image
- Returns:
- The best image, or special values.
getCenters
protected void getCenters()
- Find the centers of the input images.