Class: OpenCV::Cv::Detail::BundleAdjusterBase
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::BundleAdjusterBase
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .cast_from_estimator(ptr, parse_ownership) ⇒ Cv::Detail::BundleAdjusterBase (also: castFromEstimator)
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #apply(features, pairwise_matches, cameras) ⇒ Bool
- #cast_to_estimator(parse_ownership) ⇒ Cv::Detail::Estimator (also: #castToEstimator)
- #conf_thresh ⇒ Double (also: #confThresh)
-
#refinement_mask ⇒ Cv::Mat
(also: #refinementMask)
methods.
- #set_conf_thresh(conf_thresh) ⇒ Void (also: #setConfThresh)
- #set_refinement_mask(mask) ⇒ Void (also: #setRefinementMask)
- #set_term_criteria(term_criteria) ⇒ Void (also: #setTermCriteria)
- #term_criteria ⇒ Cv::TermCriteria (also: #termCriteria)
-
#to_s ⇒ Object
converts BundleAdjusterBase into a string by crawling through all its attributes.
Class Method Details
.cast_from_estimator(ptr, parse_ownership) ⇒ Cv::Detail::BundleAdjusterBase Also known as: castFromEstimator
wrapper for static method cv::detail::BundleAdjusterBase* cv::detail::BundleAdjusterBase::castFromEstimator(cv::detail::Estimator* ptr, bool parse_ownership)
14632 14633 14634 |
# File 'lib/ropencv/ropencv_types.rb', line 14632 def self.cast_from_estimator(ptr, parse_ownership) Rbind::cv_detail_bundle_adjuster_base_cast_from_estimator(ptr, parse_ownership) end |
.new(*args) ⇒ Object
14471 14472 14473 14474 14475 14476 14477 14478 |
# File 'lib/ropencv/ropencv_types.rb', line 14471 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(BundleAdjusterBaseStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
14467 14468 14469 |
# File 'lib/ropencv/ropencv_types.rb', line 14467 def self.null new(BundleAdjusterBaseStruct.new) end |
Instance Method Details
#apply(features, pairwise_matches, cameras) ⇒ Bool
method wrapper for bool cv::detail::BundleAdjusterBase::operator()(const std::vectorcv::detail::ImageFeatures features, const std::vectorcv::detail::MatchesInfo pairwise_matches, std::vectorcv::detail::CameraParams& cameras)
14642 14643 14644 14645 |
# File 'lib/ropencv/ropencv_types.rb', line 14642 def apply(features, pairwise_matches, cameras) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_base_apply( self, features, pairwise_matches, cameras) end |
#cast_to_estimator(parse_ownership) ⇒ Cv::Detail::Estimator Also known as: castToEstimator
method wrapper for cv::detail::Estimator* cv::detail::BundleAdjusterBase::castToEstimator(bool parse_ownership)
14617 14618 14619 14620 14621 14622 14623 14624 14625 |
# File 'lib/ropencv/ropencv_types.rb', line 14617 def cast_to_estimator(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_base_cast_to_estimator( self, parse_ownership) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#conf_thresh ⇒ Double Also known as: confThresh
method wrapper for double cv::detail::BundleAdjusterBase::confThresh()
14577 14578 14579 14580 |
# File 'lib/ropencv/ropencv_types.rb', line 14577 def conf_thresh() __validate_pointer__ Rbind::cv_detail_bundle_adjuster_base_conf_thresh( self) end |
#refinement_mask ⇒ Cv::Mat Also known as: refinementMask
method wrapper for const cv::Mat cv::detail::BundleAdjusterBase::refinementMask()
methods
14555 14556 14557 14558 14559 14560 14561 14562 14563 |
# File 'lib/ropencv/ropencv_types.rb', line 14555 def refinement_mask() __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_base_refinement_mask( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#set_conf_thresh(conf_thresh) ⇒ Void Also known as: setConfThresh
method wrapper for void cv::detail::BundleAdjusterBase::setConfThresh(double conf_thresh)
14586 14587 14588 14589 |
# File 'lib/ropencv/ropencv_types.rb', line 14586 def set_conf_thresh(conf_thresh) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_base_set_conf_thresh( self, conf_thresh) end |
#set_refinement_mask(mask) ⇒ Void Also known as: setRefinementMask
method wrapper for void cv::detail::BundleAdjusterBase::setRefinementMask(const cv::Mat mask)
14569 14570 14571 14572 |
# File 'lib/ropencv/ropencv_types.rb', line 14569 def set_refinement_mask(mask) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_base_set_refinement_mask( self, mask) end |
#set_term_criteria(term_criteria) ⇒ Void Also known as: setTermCriteria
method wrapper for void cv::detail::BundleAdjusterBase::setTermCriteria(const cv::TermCriteria term_criteria)
14608 14609 14610 14611 |
# File 'lib/ropencv/ropencv_types.rb', line 14608 def set_term_criteria(term_criteria) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_base_set_term_criteria( self, term_criteria) end |
#term_criteria ⇒ Cv::TermCriteria Also known as: termCriteria
method wrapper for const cv::TermCriteria cv::detail::BundleAdjusterBase::termCriteria()
14594 14595 14596 14597 14598 14599 14600 14601 14602 |
# File 'lib/ropencv/ropencv_types.rb', line 14594 def term_criteria() __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_base_term_criteria( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#to_s ⇒ Object
converts BundleAdjusterBase into a string by crawling through all its attributes
14544 14545 14546 |
# File 'lib/ropencv/ropencv_types.rb', line 14544 def to_s "#<cv::detail::BundleAdjusterBase >" end |