Package org.opencv.objdetect
Class CChecker
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.objdetect.CChecker
-
public class CChecker extends Algorithm
CChecker checker object This class contains the information about the detected checkers,i.e, their type, the corners of the chart, the color profile, the cost, centers chart, etc.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCChecker(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CChecker__fromPtr__(long addr)static CCheckercreate()Create a new CChecker object.protected voidfinalize()MatOfPoint2fgetBox()PointgetCenter()MatgetChartsRGB()MatgetChartsRGB(boolean getStats)MatgetChartsYCbCr()MatOfPoint2fgetColorCharts()Computes and returns the coordinates of the central parts of the charts modules.floatgetCost()voidsetBox(MatOfPoint2f _box)voidsetCenter(Point _center)voidsetChartsRGB(Mat _chartsRGB)voidsetChartsYCbCr(Mat _chartsYCbCr)voidsetCost(float _cost)-
Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
Method Detail
-
__fromPtr__
public static CChecker __fromPtr__(long addr)
-
create
public static CChecker create()
Create a new CChecker object.- Returns:
- A pointer to the implementation of the CChecker
-
setBox
public void setBox(MatOfPoint2f _box)
-
setChartsRGB
public void setChartsRGB(Mat _chartsRGB)
-
setChartsYCbCr
public void setChartsYCbCr(Mat _chartsYCbCr)
-
setCost
public void setCost(float _cost)
-
setCenter
public void setCenter(Point _center)
-
getBox
public MatOfPoint2f getBox()
-
getColorCharts
public MatOfPoint2f getColorCharts()
Computes and returns the coordinates of the central parts of the charts modules. This method computes transformation matrix from the checkers's coordinates (CChecker::getBox()) and find by this the coordinates of the central parts of the charts modules. It is used inCCheckerDetector::draw()and inChartsRGBcalculation.- Returns:
- automatically generated
-
getChartsRGB
public Mat getChartsRGB(boolean getStats)
-
getChartsRGB
public Mat getChartsRGB()
-
getChartsYCbCr
public Mat getChartsYCbCr()
-
getCost
public float getCost()
-
getCenter
public Point getCenter()
-
-