public static RotatedRect minAreaRect(MatOfPoint2f points) { Mat points_mat = points; RotatedRect retVal = new RotatedRect(minAreaRect_0(points_mat.nativeObj)); return retVal; }
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; }
public static RotatedRect fitEllipse(MatOfPoint2f points) { Mat points_mat = points; RotatedRect retVal = new RotatedRect(fitEllipse_0(points_mat.nativeObj)); return retVal; }
/** * 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)); }
/** * Instantiate a null ellipse */ public Ellipse() { this.rect = new RotatedRect(); }
/** * Create a null rectangle */ public Rectangle() { this.rect = new RotatedRect(); }