本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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));
}
示例5: Ellipse
import org.opencv.core.RotatedRect; //导入依赖的package包/类
/**
* Instantiate a null ellipse
*/
public Ellipse() {
this.rect = new RotatedRect();
}
示例6: Rectangle
import org.opencv.core.RotatedRect; //导入依赖的package包/类
/**
* Create a null rectangle
*/
public Rectangle() {
this.rect = new RotatedRect();
}