Class LocalAffineFrameExtractor

java.lang.Object
imagingbook.common.mser.LocalAffineFrameExtractor

public class LocalAffineFrameExtractor extends Object

Provides functionality to extract local affine frames from a given image. Assumes that the specified image has a white background (255) and black (0) objects. See Section 26.5 of [1] for a detailed description.

[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).

Version:
2022/11/19
See Also:
  • Constructor Details

    • LocalAffineFrameExtractor

      public LocalAffineFrameExtractor(ImageProcessor sourceIp, int m, double s, boolean useAntiAliasingFilter)
      Full constructor.
      Parameters:
      sourceIp - the image to extract frames from
      m - size of the (square) frames to extract (W = H = 2 m + 1)
      s - size ratio between outer and inner ellipse
      useAntiAliasingFilter - turn anti-aliasing filter on or off
    • LocalAffineFrameExtractor

      public LocalAffineFrameExtractor(ImageProcessor sourceIp, int m)
      Short constructor.
      Parameters:
      sourceIp - the image to extract frames from
      m - size of the (square) frames to extract (W = H = 2 m + 1)
  • Method Details

    • getLocalAffineFrame

      Extracts a single local-affine frame for the specified MSER component. The extracted image has the same type as the original source image (passed to the constructor).
      Parameters:
      mser - a MSER component
      Returns:
      the local-affine frame (instance of ImageProcessor)