Class: OpenCV::Cv::StereoBM
- Inherits:
-
Object
- Object
- OpenCV::Cv::StereoBM
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Constants collapse
- PREFILTER_NORMALIZED_RESPONSE =
0
- PREFILTER_XSOBEL =
1
- BASIC_PRESET =
0
- FISH_EYE_PRESET =
1
- NARROW_PRESET =
2
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
-
#compute(left, right, disparity, disptype = CV_16S) ⇒ Void
methods.
-
#to_s ⇒ Object
converts StereoBM into a string by crawling through all its attributes.
Class Method Details
.stereobm ⇒ Object .stereobm(preset, ndisparities = 0, s_a_d_window_size = 21) ⇒ Object
28588 28589 28590 28591 28592 28593 28594 28595 28596 28597 28598 28599 28600 28601 28602 28603 28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 |
# File 'lib/ropencv/ropencv_types.rb', line 28588 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(StereoBMStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end # overloaded method wrapper for cv::StereoBM::StereoBM() @@cv_stereobm_stereobm_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_stereobm_stereobm_defaults0[i] end begin return Rbind::cv_stereobm_stereobm(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::StereoBM::StereoBM(int preset, int ndisparities = 0, int SADWindowSize = 21) @@cv_stereobm_stereobm2_defaults1 ||= [nil, 0, 21] if(args.size >= 1 && args.size <= 3) targs = args.clone targs.size.upto(2) do |i| targs[i] = @@cv_stereobm_stereobm2_defaults1[i] end begin return Rbind::cv_stereobm_stereobm2(*targs) rescue TypeError => e @error = e end end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
28578 28579 28580 |
# File 'lib/ropencv/ropencv_types.rb', line 28578 def self.null new(StereoBMStruct.new) end |
Instance Method Details
#compute(left, right, disparity, disptype = CV_16S) ⇒ Void
Note:
method wrapper for void cv::StereoBM::operator()(const cv::Mat left, const cv::Mat right, cv::Mat& disparity, int disptype = CV_16S)
methods
28708 28709 28710 28711 |
# File 'lib/ropencv/ropencv_types.rb', line 28708 def compute(left, right, disparity, disptype = CV_16S) __validate_pointer__ Rbind::cv_stereobm_compute( self, left, right, disparity, disptype) end |
#to_s ⇒ Object
converts StereoBM into a string by crawling through all its attributes
28688 28689 28690 |
# File 'lib/ropencv/ropencv_types.rb', line 28688 def to_s "#<cv::StereoBM >" end |