本文整理了Java中org.opencv.core.Core.ellipse_5()
方法的一些代码示例,展示了Core.ellipse_5()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Core.ellipse_5()
方法的具体详情如下:
包路径:org.opencv.core.Core
类名称:Core
方法名:ellipse_5
暂无
代码示例来源:origin: jtsky/EasyPR_Android
/**
* <p>Draws a simple or thick elliptic arc or fills an ellipse sector.</p>
*
* <p>The functions <code>ellipse</code> with less parameters draw an ellipse
* outline, a filled ellipse, an elliptic arc, or a filled ellipse sector.
* A piecewise-linear curve is used to approximate the elliptic arc boundary. If
* you need more control of the ellipse rendering, you can retrieve the curve
* using "ellipse2Poly" and then render it with "polylines" or fill it with
* "fillPoly". If you use the first variant of the function and want to draw the
* whole ellipse, not an arc, pass <code>startAngle=0</code> and
* <code>endAngle=360</code>. The figure below explains the meaning of the
* parameters.
* Figure 1. Parameters of Elliptic Arc</p>
*
* @param img Image.
* @param box Alternative ellipse representation via "RotatedRect" or
* <code>CvBox2D</code>. This means that the function draws an ellipse inscribed
* in the rotated rectangle.
* @param color Ellipse color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#ellipse">org.opencv.core.Core.ellipse</a>
*/
public static void ellipse(Mat img, RotatedRect box, Scalar color)
{
ellipse_5(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3]);
return;
}
代码示例来源:origin: ytai/IOIOPlotter
/**
* <p>Draws a simple or thick elliptic arc or fills an ellipse sector.</p>
*
* <p>The functions <code>ellipse</code> with less parameters draw an ellipse
* outline, a filled ellipse, an elliptic arc, or a filled ellipse sector.
* A piecewise-linear curve is used to approximate the elliptic arc boundary. If
* you need more control of the ellipse rendering, you can retrieve the curve
* using "ellipse2Poly" and then render it with "polylines" or fill it with
* "fillPoly". If you use the first variant of the function and want to draw the
* whole ellipse, not an arc, pass <code>startAngle=0</code> and
* <code>endAngle=360</code>. The figure below explains the meaning of the
* parameters.
* Figure 1. Parameters of Elliptic Arc</p>
*
* @param img Image.
* @param box Alternative ellipse representation via "RotatedRect" or
* <code>CvBox2D</code>. This means that the function draws an ellipse inscribed
* in the rotated rectangle.
* @param color Ellipse color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#ellipse">org.opencv.core.Core.ellipse</a>
*/
public static void ellipse(Mat img, RotatedRect box, Scalar color)
{
ellipse_5(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3]);
return;
}
代码示例来源:origin: abhn/marvel
/**
* <p>Draws a simple or thick elliptic arc or fills an ellipse sector.</p>
*
* <p>The functions <code>ellipse</code> with less parameters draw an ellipse
* outline, a filled ellipse, an elliptic arc, or a filled ellipse sector.
* A piecewise-linear curve is used to approximate the elliptic arc boundary. If
* you need more control of the ellipse rendering, you can retrieve the curve
* using "ellipse2Poly" and then render it with "polylines" or fill it with
* "fillPoly". If you use the first variant of the function and want to draw the
* whole ellipse, not an arc, pass <code>startAngle=0</code> and
* <code>endAngle=360</code>. The figure below explains the meaning of the
* parameters.
* Figure 1. Parameters of Elliptic Arc</p>
*
* @param img Image.
* @param box Alternative ellipse representation via "RotatedRect" or
* <code>CvBox2D</code>. This means that the function draws an ellipse inscribed
* in the rotated rectangle.
* @param color Ellipse color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#ellipse">org.opencv.core.Core.ellipse</a>
*/
public static void ellipse(Mat img, RotatedRect box, Scalar color)
{
ellipse_5(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3]);
return;
}
代码示例来源:origin: com.sikulix/sikulixapi
/**
* <p>Draws a simple or thick elliptic arc or fills an ellipse sector.</p>
*
* <p>The functions <code>ellipse</code> with less parameters draw an ellipse
* outline, a filled ellipse, an elliptic arc, or a filled ellipse sector.
* A piecewise-linear curve is used to approximate the elliptic arc boundary. If
* you need more control of the ellipse rendering, you can retrieve the curve
* using "ellipse2Poly" and then render it with "polylines" or fill it with
* "fillPoly". If you use the first variant of the function and want to draw the
* whole ellipse, not an arc, pass <code>startAngle=0</code> and
* <code>endAngle=360</code>. The figure below explains the meaning of the
* parameters.
* Figure 1. Parameters of Elliptic Arc</p>
*
* @param img Image.
* @param box Alternative ellipse representation via "RotatedRect" or
* <code>CvBox2D</code>. This means that the function draws an ellipse inscribed
* in the rotated rectangle.
* @param color Ellipse color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#ellipse">org.opencv.core.Core.ellipse</a>
*/
public static void ellipse(Mat img, RotatedRect box, Scalar color)
{
ellipse_5(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3]);
return;
}
代码示例来源:origin: nu.pattern/opencv
/**
* <p>Draws a simple or thick elliptic arc or fills an ellipse sector.</p>
*
* <p>The functions <code>ellipse</code> with less parameters draw an ellipse
* outline, a filled ellipse, an elliptic arc, or a filled ellipse sector.
* A piecewise-linear curve is used to approximate the elliptic arc boundary. If
* you need more control of the ellipse rendering, you can retrieve the curve
* using "ellipse2Poly" and then render it with "polylines" or fill it with
* "fillPoly". If you use the first variant of the function and want to draw the
* whole ellipse, not an arc, pass <code>startAngle=0</code> and
* <code>endAngle=360</code>. The figure below explains the meaning of the
* parameters.
* Figure 1. Parameters of Elliptic Arc</p>
*
* @param img Image.
* @param box Alternative ellipse representation via "RotatedRect" or
* <code>CvBox2D</code>. This means that the function draws an ellipse inscribed
* in the rotated rectangle.
* @param color Ellipse color.
*
* @see <a href="http://docs.opencv.org/modules/core/doc/drawing_functions.html#ellipse">org.opencv.core.Core.ellipse</a>
*/
public static void ellipse(Mat img, RotatedRect box, Scalar color)
{
ellipse_5(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3]);
return;
}
内容来源于网络,如有侵权,请联系作者删除!