Class Border

java.lang.Object
Direct Known Subclasses:
LocalBorder, Radius, RotatedRectangle

public class Border
extends RectRecurse
This class finds the best images to be used for sampling using using the criterion that the best candidate image is the one where the pixel is furthest from the edge.
  • Constructor Details

  • Method Details

    • criterion

      protected double criterion​(int i, int nx, int ny, double tx, double ty)
      The criterion is the minimum distance to the edge of the image.
      Specified by:
      criterion in class RectRecurse
      Parameters:
      i - The index of the image being considered
      nx - The width of the candidate image
      ny - The height of the caandiate image
      tx - The x-value of the requested point.
      ty - The y-value of the requested point.
      Returns:
      A measure of the desirability of using this image to same this point. Larger is better.