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 protected
CChecker(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CChecker
__fromPtr__(long addr)
static CChecker
create()
Create a new CChecker object.protected void
finalize()
MatOfPoint2f
getBox()
Point
getCenter()
Mat
getChartsRGB()
Mat
getChartsRGB(boolean getStats)
Mat
getChartsYCbCr()
MatOfPoint2f
getColorCharts()
Computes and returns the coordinates of the central parts of the charts modules.float
getCost()
void
setBox(MatOfPoint2f _box)
void
setCenter(Point _center)
void
setChartsRGB(Mat _chartsRGB)
void
setChartsYCbCr(Mat _chartsYCbCr)
void
setCost(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 inChartsRGB
calculation.- 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()
-
-