mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
modified for OpenCV 2.3
This commit is contained in:
parent
0d56ef2762
commit
7915f7f559
4 changed files with 2 additions and 17 deletions
|
@ -19,7 +19,7 @@ OpenCV Ruby Wrapper
|
|||
== FEATURES/PROBLEMS:
|
||||
|
||||
* First release rubygems, Some OpenCV functions wrapped.
|
||||
* Ruby 1.8.7, 1.9.2 and OpenCV 2.2 are supported.
|
||||
* Ruby 1.8.7, 1.9.2 and OpenCV 2.3 are supported.
|
||||
|
||||
== DEPENDENCIES:
|
||||
|
||||
|
@ -97,7 +97,7 @@ subfolder called data.
|
|||
|
||||
== REQUIREMENTS:
|
||||
|
||||
* OpenCV 2.2 or later
|
||||
* OpenCV 2.3 or later
|
||||
http://opencv.willowgarage.com/wiki/
|
||||
* ffcall (optional)
|
||||
http://www.haible.de/bruno/packages-ffcall.html
|
||||
|
|
|
@ -91,7 +91,6 @@ define_ruby_class()
|
|||
rb_define_method(rb_klass, "gain", RUBY_METHOD_FUNC(rb_get_gain), 0);
|
||||
rb_define_method(rb_klass, "exposure", RUBY_METHOD_FUNC(rb_get_exposure), 0);
|
||||
rb_define_method(rb_klass, "convert_rgb", RUBY_METHOD_FUNC(rb_get_convert_rgb), 0);
|
||||
rb_define_method(rb_klass, "white_balance", RUBY_METHOD_FUNC(rb_get_white_balance), 0);
|
||||
rb_define_method(rb_klass, "rectification", RUBY_METHOD_FUNC(rb_get_rectification), 0);
|
||||
}
|
||||
|
||||
|
@ -444,15 +443,6 @@ rb_get_convert_rgb(VALUE self)
|
|||
return (flag == 1) ? Qtrue : Qfalse;
|
||||
}
|
||||
|
||||
/*
|
||||
* Currently unsupported
|
||||
*/
|
||||
VALUE
|
||||
rb_get_white_balance(VALUE self)
|
||||
{
|
||||
return rb_float_new(cvGetCaptureProperty(CVCAPTURE(self), CV_CAP_PROP_WHITE_BALANCE));
|
||||
}
|
||||
|
||||
/*
|
||||
* Get TOWRITE (note: only supported by DC1394 v 2.x backend currently)
|
||||
*/
|
||||
|
|
|
@ -55,7 +55,6 @@ VALUE rb_get_hue(VALUE self);
|
|||
VALUE rb_get_gain(VALUE self);
|
||||
VALUE rb_get_exposure(VALUE self);
|
||||
VALUE rb_get_convert_rgb(VALUE self);
|
||||
VALUE rb_get_white_balance(VALUE self);
|
||||
VALUE rb_get_rectification(VALUE self);
|
||||
|
||||
__NAMESPACE_END_CVCAPTURE
|
||||
|
|
|
@ -176,10 +176,6 @@ class TestCvCapture < OpenCVTestCase
|
|||
(@cap.convert_rgb == false))
|
||||
end
|
||||
|
||||
def test_white_balance
|
||||
assert(@cap.white_balance.is_a? Numeric)
|
||||
end
|
||||
|
||||
def test_rectification
|
||||
assert(@cap.rectification.is_a? Numeric)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue