Example usage for org.opencv.core RotatedRect RotatedRect

List of usage examples for org.opencv.core RotatedRect RotatedRect

Introduction

In this page you can find the example usage for org.opencv.core RotatedRect RotatedRect.

Prototype

public RotatedRect() 

Source Link

Usage

From source file:OctoEye.java

License:Open Source License

private void reset() {
    // something went wrong, return null
    pupil = new RotatedRect();
    axisA = null;/*from  w  ww .ja v a  2 s.co  m*/
    axisB = null;
    pupilMajorAxis = 0;
    pupilMinorAxis = 0;
}

From source file:classes.ObjectFinder.java

private void computeTrackBox() {

    trackBox = new RotatedRect();

    if (computedSearchWindow.size().width > 0 && computedSearchWindow.size().height > 0
            && computedSearchWindow.area() > 1) {
        trackBox = Video.CamShift(thresholdedBackprojection, computedSearchWindow,
                new TermCriteria(2 | 1, 10, 1));
    }/* w  w  w  .  java  2  s.  c o  m*/

    if (trackBox.size.width > 0 && trackBox.size.height > 0 && trackBox.size.area() > 1) {
        Core.ellipse(inputFrame, trackBox, new Scalar(0, 0, 255), 2);
    }

}

From source file:org.lasarobotics.vision.detection.objects.Ellipse.java

License:Open Source License

/**
 * Instantiate a null ellipse
 */
public Ellipse() {
    this.rect = new RotatedRect();
}

From source file:org.lasarobotics.vision.detection.objects.Rectangle.java

License:Open Source License

/**
 * Create a null rectangle
 */
public Rectangle() {
    this.rect = new RotatedRect();
}