當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。