boofcv.alg.shapes.polygon
Interface RefineBinaryPolygon<T extends ImageGray>
-
- All Known Implementing Classes:
- RefinePolygonCornersToImage, RefinePolygonLineToImage
public interface RefineBinaryPolygon<T extends ImageGray>Abstract interface for refining a polygon detected inside ofBinaryPolygonDetector.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanrefine(Polygon2D_F64 input, java.util.List<Point2D_I32> contour, GrowQueue_I32 splits, Polygon2D_F64 output)Refines the initial polygonvoidsetImage(T image)Sets the input imagevoidsetLensDistortion(int width, int height, PixelTransform_F32 distToUndist, PixelTransform_F32 undistToDist)Specifies lens distortion
-
-
-
Method Detail
-
setImage
void setImage(T image)
Sets the input image
-
setLensDistortion
void setLensDistortion(int width, int height, PixelTransform_F32 distToUndist, PixelTransform_F32 undistToDist)Specifies lens distortion
-
refine
boolean refine(Polygon2D_F64 input, java.util.List<Point2D_I32> contour, GrowQueue_I32 splits, Polygon2D_F64 output)
Refines the initial polygon- Parameters:
input- 2D polygon version of contour polygoncontour- List of pixels in the contoursplits- Indexes in the contour where the initial polygon was foundoutput- Storage for the refined polygon- Returns:
- true if successful or false if it failed
-
-
DataMelt 3.0 © DataMelt by jWork.ORG