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


Java RotatedRect类代码示例

本文整理汇总了Java中org.opencv.core.RotatedRect的典型用法代码示例。如果您正苦于以下问题:Java RotatedRect类的具体用法?Java RotatedRect怎么用?Java RotatedRect使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: minAreaRect

import org.opencv.core.RotatedRect; //导入依赖的package包/类
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
开发者ID:vulovicv23,项目名称:opencv-documentscanner-android,代码行数:8,代码来源:Imgproc.java

示例2: CamShift

import org.opencv.core.RotatedRect; //导入依赖的package包/类
public static RotatedRect CamShift(Mat probImage, Rect window, TermCriteria criteria)
{
    double[] window_out = new double[4];
    RotatedRect retVal = new RotatedRect(CamShift_0(probImage.nativeObj, window.x, window.y, window.width, window.height, window_out, criteria.type, criteria.maxCount, criteria.epsilon));
    if(window!=null){ window.x = (int)window_out[0]; window.y = (int)window_out[1]; window.width = (int)window_out[2]; window.height = (int)window_out[3]; } 
    return retVal;
}
 
开发者ID:vulovicv23,项目名称:opencv-documentscanner-android,代码行数:8,代码来源:Video.java

示例3: fitEllipse

import org.opencv.core.RotatedRect; //导入依赖的package包/类
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
开发者ID:yippeesoft,项目名称:NotifyTools,代码行数:8,代码来源:Imgproc.java

示例4: transpose

import org.opencv.core.RotatedRect; //导入依赖的package包/类
/**
 * Transpose this rectangle so that x becomes y and vice versa
 *
 * @return Transposed rectangle instance
 */
@SuppressWarnings("SuspiciousNameCombination")
public Ellipse transpose() {
    return new Ellipse(new RotatedRect(
            new Point(rect.center.y, rect.center.x),
            new Size(rect.size.height, rect.size.width), rect.angle));
}
 
开发者ID:ykarim,项目名称:FTC2016,代码行数:12,代码来源:Ellipse.java

示例5: Ellipse

import org.opencv.core.RotatedRect; //导入依赖的package包/类
/**
 * Instantiate a null ellipse
 */
public Ellipse() {
    this.rect = new RotatedRect();
}
 
开发者ID:ykarim,项目名称:FTC2016,代码行数:7,代码来源:Ellipse.java

示例6: Rectangle

import org.opencv.core.RotatedRect; //导入依赖的package包/类
/**
 * Create a null rectangle
 */
public Rectangle() {
    this.rect = new RotatedRect();
}
 
开发者ID:TheBigBombman,项目名称:RobotIGS,代码行数:7,代码来源:Rectangle.java


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