Java Code Examples for org.opencv.core.RotatedRect

The following are top voted examples for showing how to use org.opencv.core.RotatedRect. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: opencv-documentscanner-android   File: Imgproc.java   View source code 6 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 2
Project: opencv-documentscanner-android   File: Video.java   View source code 5 votes vote down vote up
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;
}
 
Example 3
Project: NotifyTools   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 4
Project: NotifyTools   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 5
Project: MOAAP   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 6
Project: FaceDetectDemo   File: Video.java   View source code 5 votes vote down vote up
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;
}
 
Example 7
Project: NotifyTools   File: Video.java   View source code 5 votes vote down vote up
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;
}
 
Example 8
Project: MOAAP   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 9
Project: renderscript_examples   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 10
Project: fingerblox   File: Video.java   View source code 5 votes vote down vote up
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;
}
 
Example 11
Project: Android-Code-Demos   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 12
Project: DNNLibrary   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 13
Project: MOAAP   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 14
Project: react-native-scan-doc   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 15
Project: OpenCV   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 16
Project: Team9261-2017-2018   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 17
Project: Microsphere   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 18
Project: Microsphere   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 19
Project: EyeShopping   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 20
Project: mao-android   File: Video.java   View source code 5 votes vote down vote up
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;
}
 
Example 21
Project: MOAAP   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 22
Project: MOAAP   File: Video.java   View source code 5 votes vote down vote up
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;
}
 
Example 23
Project: MOAAP   File: Video.java   View source code 5 votes vote down vote up
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;
}
 
Example 24
Project: Ftc2018RelicRecovery   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 25
Project: android-imaging-utils   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 26
Project: MOAAP   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 27
Project: react-native-scan-doc   File: Video.java   View source code 5 votes vote down vote up
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;
}
 
Example 28
Project: real_time_circle_detection_android   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 29
Project: FTC2016   File: Ellipse.java   View source code 5 votes vote down vote up
/**
 * 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));
}
 
Example 30
Project: MOAAP   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 31
Project: react-native-scan-doc   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 32
Project: android-age-estimator   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 33
Project: MOAAP   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 34
Project: Checkerboard-IMU-Comparator   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 35
Project: Ftc2018RelicRecovery   File: Video.java   View source code 5 votes vote down vote up
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;
}
 
Example 36
Project: Checkerboard-IMU-Comparator   File: Video.java   View source code 5 votes vote down vote up
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;
}
 
Example 37
Project: FaceDetectDemo   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect minAreaRect(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 38
Project: Ftc2018RelicRecovery   File: Imgproc.java   View source code 5 votes vote down vote up
public static RotatedRect fitEllipse(MatOfPoint2f points)
{
    Mat points_mat = points;
    RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj));
    
    return retVal;
}
 
Example 39
Project: FTC2016   File: Ellipse.java   View source code 4 votes vote down vote up
/**
 * Instantiate a null ellipse
 */
public Ellipse() {
    this.rect = new RotatedRect();
}
 
Example 40
Project: RobotIGS   File: Rectangle.java   View source code 4 votes vote down vote up
/**
 * Create a null rectangle
 */
public Rectangle() {
    this.rect = new RotatedRect();
}