java.lang.Object
imagingbook.common.mser.LocalAffineFrameExtractor
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 Summary
ConstructorsConstructorDescriptionLocalAffineFrameExtractor
(ImageProcessor sourceIp, int m) Short constructor.LocalAffineFrameExtractor
(ImageProcessor sourceIp, int m, double s, boolean useAntiAliasingFilter) Full constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetLocalAffineFrame
(Component<MserData> mser) Extracts a single local-affine frame for the specified MSER component.
-
Constructor Details
-
LocalAffineFrameExtractor
public LocalAffineFrameExtractor(ImageProcessor sourceIp, int m, double s, boolean useAntiAliasingFilter) Full constructor.- Parameters:
sourceIp
- the image to extract frames fromm
- size of the (square) frames to extract (W = H = 2 m + 1)s
- size ratio between outer and inner ellipseuseAntiAliasingFilter
- turn anti-aliasing filter on or off
-
LocalAffineFrameExtractor
Short constructor.- Parameters:
sourceIp
- the image to extract frames fromm
- 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
)
-