当前位置: 首页>>代码示例>>Java>>正文


Java Imgproc.RETR_LIST属性代码示例

本文整理汇总了Java中org.opencv.imgproc.Imgproc.RETR_LIST属性的典型用法代码示例。如果您正苦于以下问题:Java Imgproc.RETR_LIST属性的具体用法?Java Imgproc.RETR_LIST怎么用?Java Imgproc.RETR_LIST使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.opencv.imgproc.Imgproc的用法示例。


在下文中一共展示了Imgproc.RETR_LIST属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: findContours

/**
 * Sets the values of pixels in a binary image to their distance to the nearest
 * black pixel.
 * 
 * @param input
 *            The image on which to perform the Distance Transform.
 * @param type
 *            The Transform.
 * @param maskSize
 *            the size of the mask.
 * @param output
 *            The image in which to store the output.
 */
private void findContours (Mat input, boolean externalOnly,
        List<MatOfPoint> contours)
{
    Mat hierarchy = new Mat();
    contours.clear();
    int mode;
    if (externalOnly)
        {
        mode = Imgproc.RETR_EXTERNAL;
        }
    else
        {
        mode = Imgproc.RETR_LIST;
        }
    int method = Imgproc.CHAIN_APPROX_SIMPLE;
    Imgproc.findContours(input, contours, hierarchy, mode, method);
}
 
开发者ID:FIRST-Team-339,项目名称:2017,代码行数:30,代码来源:GripPipeline.java

示例2: findContours

/**
 * Sets the values of pixels in a binary image to their distance to the nearest black pixel.
 * 
 * @param input
 *            The image on which to perform the Distance Transform.
 * @param type
 *            The Transform.
 * @param maskSize
 *            the size of the mask.
 * @param output
 *            The image in which to store the output.
 */
private void findContours(Mat input, boolean externalOnly, List<MatOfPoint> contours) {
	Mat hierarchy = new Mat();
	contours.clear();
	int mode;
	if (externalOnly) {
		mode = Imgproc.RETR_EXTERNAL;
	} else {
		mode = Imgproc.RETR_LIST;
	}
	int method = Imgproc.CHAIN_APPROX_SIMPLE;
	Imgproc.findContours(input, contours, hierarchy, mode, method);
}
 
开发者ID:chopshop-166,项目名称:frc-2017,代码行数:24,代码来源:Vision.java

示例3: findContours

/**
 * Sets the values of pixels in a binary image to their distance to the nearest black pixel.
 * @param input The image on which to perform the Distance Transform.
 * @param type The Transform.
 * @param maskSize the size of the mask.
 * @param output The image in which to store the output.
 */
private void findContours(Mat input, boolean externalOnly,
	List<MatOfPoint> contours) {
	Mat hierarchy = new Mat();
	contours.clear();
	int mode;
	if (externalOnly) {
		mode = Imgproc.RETR_EXTERNAL;
	}
	else {
		mode = Imgproc.RETR_LIST;
	}
	int method = Imgproc.CHAIN_APPROX_SIMPLE;
	Imgproc.findContours(input, contours, hierarchy, mode, method);
}
 
开发者ID:mustafamertunali,项目名称:FRC-6416-frc2017,代码行数:21,代码来源:GripPipeline.java

示例4: findContours

/**
 * Sets the values of pixels in a binary image to their distance to the
 * nearest black pixel.
 *
 * @param input
 *          The image on which to perform the Distance Transform.
 * @param type
 *          The Transform.
 * @param maskSize
 *          the size of the mask.
 * @param output
 *          The image in which to store the output.
 */
private void findContours(Mat input, boolean externalOnly, List<MatOfPoint> contours) {
  Mat hierarchy = new Mat();
  contours.clear();
  int mode;
  if (externalOnly) {
    mode = Imgproc.RETR_EXTERNAL;
  } else {
    mode = Imgproc.RETR_LIST;
  }
  int method = Imgproc.CHAIN_APPROX_SIMPLE;
  Imgproc.findContours(input, contours, hierarchy, mode, method);
}
 
开发者ID:cyborgs3335,项目名称:STEAMworks,代码行数:25,代码来源:GripPipelineWithBlur.java


注:本文中的org.opencv.imgproc.Imgproc.RETR_LIST属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。