skyview.process.imagefinder
Class Radius

java.lang.Object
  extended by skyview.process.ImageFinder
      extended by skyview.process.imagefinder.Border
          extended by 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.


Field Summary
protected  double[][] centers
           
protected  boolean firstCall
           
 
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
 
Constructor Summary
Radius()
           
 
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 skyview.process.imagefinder.Border
cornerMatch, criterion, edgeOff, findImages, getCelest, getImage, minDist, 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
 

Field Detail

firstCall

protected boolean firstCall

centers

protected double[][] centers
Constructor Detail

Radius

public Radius()
Method Detail

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.