Class: OpenCV::CvConvexityDefect

Inherits:
Object
  • Object
show all
Defined in:
ext/opencv/cvconvexitydefect.cpp,
ext/opencv/cvconvexitydefect.cpp

Overview

Convexity defect

Instance Method Summary collapse

Instance Method Details

#depthNumber

Returns distance between the farthest point and the convex hull

Returns:

  • (Number)

    Distance between the farthest point and the convex hull



65
66
67
68
69
# File 'ext/opencv/cvconvexitydefect.cpp', line 65

VALUE
rb_depth(VALUE self)
{
  return rb_float_new(CVCONVEXITYDEFECT(self)->depth);
}

#depth_pointCvPoint

Returns the farthest from the convex hull point within the defect

Returns:

  • (CvPoint)

    The farthest from the convex hull point within the defect



54
55
56
57
58
# File 'ext/opencv/cvconvexitydefect.cpp', line 54

VALUE
rb_depth_point(VALUE self)
{
  return cCvPoint::new_object(*CVCONVEXITYDEFECT(self)->depth_point);
}

#endCvPoint

Returns the point of the contour where the defect ends

Returns:

  • (CvPoint)

    End point of the contour



43
44
45
46
47
# File 'ext/opencv/cvconvexitydefect.cpp', line 43

VALUE
rb_end(VALUE self)
{
  return cCvPoint::new_object(*CVCONVEXITYDEFECT(self)->end);
}

#startCvPoint

Returns the point of the contour where the defect begins

Returns:

  • (CvPoint)

    Start point of the contour



32
33
34
35
36
# File 'ext/opencv/cvconvexitydefect.cpp', line 32

VALUE
rb_start(VALUE self)
{
  return cCvPoint::new_object(*CVCONVEXITYDEFECT(self)->start);
}