1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

removed some unnecessary CvMat methods

Removed methods are:
  CvMat#rb_morphology_*
  CvMat#rb_copy_make_border_*
  CvMat#rb_hough_lines_*
  CvMat#rb_hough_circles_*
  CvMat#rb_inpaint_*
  CvMat#rb_match_shapes_*
  CvMat#rb_threshold_*
  CvMat#rb_find_fundamental_mat_*
  CvMat#rb_smooth_*
  CvMat#rb_slice_width
  CvMat#rb_slice_height
  CvMat#rb_mix_channels
This commit is contained in:
ser1zw 2011-07-08 20:48:24 +09:00
parent 46227b7fa1
commit 7add8ec805
7 changed files with 39 additions and 1472 deletions

View file

@ -12,7 +12,7 @@ gray = image.BGR2GRAY
result = image.clone
original_window.show image
detect = gray.hough_circles_gradient(2.0, 10, 200, 50)
detect = gray.hough_circles(CV_HOUGH_GRADIENT, 2.0, 10, 200, 50)
puts detect.size
detect.each{|circle|
puts "#{circle.center.x},#{circle.center.y} - #{circle.radius}"

View file

@ -11,7 +11,7 @@ iwindow = GUI::Window.new "inpaint"
image = IplImage::load "inpaint.png"
b, g, r = image.split
original_mask = r.threshold_binary_inverse(0x00, 0xFF) & b.threshold_binary_inverse(0x00, 0xFF)
original_mask = r.threshold(0x00, 0xFF, CV_THRESH_BINARY_INV) & b.threshold(0x00, 0xFF, CV_THRESH_BINARY_INV)
mask = original_mask.copy
num_dilate = 3

View file

@ -33,7 +33,7 @@ window.on_mouse{|mouse|
end
points = image.snake_image(points, 1.0, 0.5, 1.5, CvSize.new(3, 3), 100)
display = image.GRAY2BGR
display.poly_line! points, :color => CvColor::Red, :is_closed => true
display.poly_line!(points, :color => CvColor::Red, :is_closed => true)
window.show display
end
}