Class PixelTransformCached_F32

java.lang.Object
boofcv.alg.distort.PixelTransformCached_F32
All Implemented Interfaces:
PixelTransform<Point2D_F32>

public class PixelTransformCached_F32
extends Object
implements PixelTransform<Point2D_F32>
Precomputes transformations for each pixel in the image. Doesn't check bounds and will give an incorrect result or crash if outside pixels are requested.
  • Constructor Details

    • PixelTransformCached_F32

      public PixelTransformCached_F32​(int width, int height, Point2Transform2_F32 transform)
    • PixelTransformCached_F32

      public PixelTransformCached_F32​(int width, int height, PixelTransform<Point2D_F32> transform)
  • Method Details

    • getPixel

      public Point2D_F32 getPixel​(int x, int y)
    • isIgnoreNaN

      public boolean isIgnoreNaN()
    • setIgnoreNaN

      public void setIgnoreNaN​(boolean ignoreNaN)
    • compute

      public void compute​(int x, int y, Point2D_F32 output)
      Description copied from interface: PixelTransform
      applies a transform to a pixel coordinate
      Specified by:
      compute in interface PixelTransform<Point2D_F32>
      Parameters:
      x - Pixel x-coordinate
      y - Pixel y-coordinate
      output - The transformed pixel
    • copyConcurrent

      public PixelTransform<Point2D_F32> copyConcurrent()
      Description copied from interface: PixelTransform
      Creates a copy of this transform for use in concurrent application. What that means is that any variable which might be modified by a concurrent call to PixelTransform.compute(int, int, T) is not passed to the 'copied' output. Expensive to compute models might be passed in as a reference.
      Specified by:
      copyConcurrent in interface PixelTransform<Point2D_F32>