org.opencv.imgproc.Imgproc.minEnclosingCircle_0()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(12.0k)|赞(0)|评价(0)|浏览(162)

本文整理了Java中org.opencv.imgproc.Imgproc.minEnclosingCircle_0()方法的一些代码示例,展示了Imgproc.minEnclosingCircle_0()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Imgproc.minEnclosingCircle_0()方法的具体详情如下:
包路径:org.opencv.imgproc.Imgproc
类名称:Imgproc
方法名:minEnclosingCircle_0

Imgproc.minEnclosingCircle_0介绍

暂无

代码示例

代码示例来源:origin: kongqw/OpenCVForAndroid

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: raulh82vlc/Image-Detection-Samples

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: tz28/Chinese-number-gestures-recognition

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: imistyrain/EasyPR4Android

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: ctodobom/OpenCV-3.1.0-Android

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: KePeng1019/SmartPaperScan

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: InnoFang/Android-Code-Demos

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: SOFTPOWER1991/OpenCVCheck

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: akshika47/OpencvAndroid

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: farkam135/GoIV

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: leadrien/opencv_native_androidstudio

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: DuckDeck/AndroidDemo

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: nroduit/Weasis

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: SouvDc/face-detection

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: hschott/Camdroid

public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
{
  Mat points_mat = points;
  double[] center_out = new double[2];
  double[] radius_out = new double[1];
  minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
  if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; } 
  if(radius!=null) radius[0] = (float)radius_out[0];
  return;
}

代码示例来源:origin: abhn/marvel

/**
 * <p>Finds a circle of the minimum area enclosing a 2D point set.</p>
 *
 * <p>The function finds the minimal enclosing circle of a 2D point set using an
 * iterative algorithm. See the OpenCV sample <code>minarea.cpp</code>.</p>
 *
 * @param points Input vector of 2D points, stored in:
 * <ul>
 *   <li> <code>std.vector<></code> or <code>Mat</code> (C++ interface)
 *   <li> <code>CvSeq*</code> or <code>CvMat*</code> (C interface)
 *   <li> Nx2 numpy array (Python interface)
 * </ul>
 * @param center Output center of the circle.
 * @param radius Output radius of the circle.
 *
 * @see <a href="http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#minenclosingcircle">org.opencv.imgproc.Imgproc.minEnclosingCircle</a>
 */
  public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
  {
    Mat points_mat = points;
    double[] center_out = new double[2];
    double[] radius_out = new double[1];
    minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
    if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; }
    if(radius!=null) radius[0] = (float)radius_out[0];
    return;
  }

代码示例来源:origin: ytai/IOIOPlotter

/**
 * <p>Finds a circle of the minimum area enclosing a 2D point set.</p>
 *
 * <p>The function finds the minimal enclosing circle of a 2D point set using an
 * iterative algorithm. See the OpenCV sample <code>minarea.cpp</code>.</p>
 *
 * @param points Input vector of 2D points, stored in:
 * <ul>
 *   <li> <code>std.vector<></code> or <code>Mat</code> (C++ interface)
 *   <li> <code>CvSeq*</code> or <code>CvMat*</code> (C interface)
 *   <li> Nx2 numpy array (Python interface)
 * </ul>
 * @param center Output center of the circle.
 * @param radius Output radius of the circle.
 *
 * @see <a href="http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#minenclosingcircle">org.opencv.imgproc.Imgproc.minEnclosingCircle</a>
 */
  public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
  {
    Mat points_mat = points;
    double[] center_out = new double[2];
    double[] radius_out = new double[1];
    minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
    if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; }
    if(radius!=null) radius[0] = (float)radius_out[0];
    return;
  }

代码示例来源:origin: jtsky/EasyPR_Android

/**
 * <p>Finds a circle of the minimum area enclosing a 2D point set.</p>
 *
 * <p>The function finds the minimal enclosing circle of a 2D point set using an
 * iterative algorithm. See the OpenCV sample <code>minarea.cpp</code>.</p>
 *
 * @param points Input vector of 2D points, stored in:
 * <ul>
 *   <li> <code>std.vector<></code> or <code>Mat</code> (C++ interface)
 *   <li> <code>CvSeq*</code> or <code>CvMat*</code> (C interface)
 *   <li> Nx2 numpy array (Python interface)
 * </ul>
 * @param center Output center of the circle.
 * @param radius Output radius of the circle.
 *
 * @see <a href="http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#minenclosingcircle">org.opencv.imgproc.Imgproc.minEnclosingCircle</a>
 */
  public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
  {
    Mat points_mat = points;
    double[] center_out = new double[2];
    double[] radius_out = new double[1];
    minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
    if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; }
    if(radius!=null) radius[0] = (float)radius_out[0];
    return;
  }

代码示例来源:origin: com.sikulix/sikulixapi

/**
 * <p>Finds a circle of the minimum area enclosing a 2D point set.</p>
 *
 * <p>The function finds the minimal enclosing circle of a 2D point set using an
 * iterative algorithm. See the OpenCV sample <code>minarea.cpp</code>.</p>
 *
 * @param points Input vector of 2D points, stored in:
 * <ul>
 *   <li> <code>std.vector<></code> or <code>Mat</code> (C++ interface)
 *   <li> <code>CvSeq*</code> or <code>CvMat*</code> (C interface)
 *   <li> Nx2 numpy array (Python interface)
 * </ul>
 * @param center Output center of the circle.
 * @param radius Output radius of the circle.
 *
 * @see <a href="http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#minenclosingcircle">org.opencv.imgproc.Imgproc.minEnclosingCircle</a>
 */
  public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
  {
    Mat points_mat = points;
    double[] center_out = new double[2];
    double[] radius_out = new double[1];
    minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
    if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; }
    if(radius!=null) radius[0] = (float)radius_out[0];
    return;
  }

代码示例来源:origin: nu.pattern/opencv

/**
 * <p>Finds a circle of the minimum area enclosing a 2D point set.</p>
 *
 * <p>The function finds the minimal enclosing circle of a 2D point set using an
 * iterative algorithm. See the OpenCV sample <code>minarea.cpp</code>.</p>
 *
 * @param points Input vector of 2D points, stored in:
 * <ul>
 *   <li> <code>std.vector<></code> or <code>Mat</code> (C++ interface)
 *   <li> <code>CvSeq*</code> or <code>CvMat*</code> (C interface)
 *   <li> Nx2 numpy array (Python interface)
 * </ul>
 * @param center Output center of the circle.
 * @param radius Output radius of the circle.
 *
 * @see <a href="http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#minenclosingcircle">org.opencv.imgproc.Imgproc.minEnclosingCircle</a>
 */
  public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius)
  {
    Mat points_mat = points;
    double[] center_out = new double[2];
    double[] radius_out = new double[1];
    minEnclosingCircle_0(points_mat.nativeObj, center_out, radius_out);
    if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; }
    if(radius!=null) radius[0] = (float)radius_out[0];
    return;
  }

相关文章

Imgproc类方法