Class: OpenCV::Cv::Detail::BundleAdjusterAffine
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::BundleAdjusterAffine
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #apply(features, pairwise_matches, cameras) ⇒ Bool
-
#cast_to_bundle_adjuster_base(parse_ownership) ⇒ Cv::Detail::BundleAdjusterBase
(also: #castToBundleAdjusterBase)
methods.
- #cast_to_estimator(parse_ownership) ⇒ Cv::Detail::Estimator (also: #castToEstimator)
- #conf_thresh ⇒ Double (also: #confThresh)
- #refinement_mask ⇒ Cv::Mat (also: #refinementMask)
- #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 BundleAdjusterAffine into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 |
# File 'lib/ropencv/ropencv_types.rb', line 15413 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(BundleAdjusterAffineStruct) 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::detail::BundleAdjusterAffine::BundleAdjusterAffine() @@cv_detail_bundle_adjuster_affine_bundle_adjuster_affine_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_detail_bundle_adjuster_affine_bundle_adjuster_affine_defaults0[i] end begin return Rbind::cv_detail_bundle_adjuster_affine_bundle_adjuster_affine(*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
15409 15410 15411 |
# File 'lib/ropencv/ropencv_types.rb', line 15409 def self.null new(BundleAdjusterAffineStruct.new) end |
Instance Method Details
#apply(features, pairwise_matches, cameras) ⇒ Bool
method wrapper for bool cv::detail::BundleAdjusterAffine::operator()(const std::vectorcv::detail::ImageFeatures features, const std::vectorcv::detail::MatchesInfo pairwise_matches, std::vectorcv::detail::CameraParams& cameras)
15602 15603 15604 15605 |
# File 'lib/ropencv/ropencv_types.rb', line 15602 def apply(features, pairwise_matches, cameras) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_affine_apply( self, features, pairwise_matches, cameras) end |
#cast_to_bundle_adjuster_base(parse_ownership) ⇒ Cv::Detail::BundleAdjusterBase Also known as: castToBundleAdjusterBase
method wrapper for cv::detail::BundleAdjusterBase* cv::detail::BundleAdjusterAffine::castToBundleAdjusterBase(bool parse_ownership)
methods
15511 15512 15513 15514 15515 15516 15517 15518 15519 |
# File 'lib/ropencv/ropencv_types.rb', line 15511 def cast_to_bundle_adjuster_base(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_affine_cast_to_bundle_adjuster_base( 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 |
#cast_to_estimator(parse_ownership) ⇒ Cv::Detail::Estimator Also known as: castToEstimator
method wrapper for cv::detail::Estimator* cv::detail::BundleAdjusterAffine::castToEstimator(bool parse_ownership)
15586 15587 15588 15589 15590 15591 15592 15593 15594 |
# File 'lib/ropencv/ropencv_types.rb', line 15586 def cast_to_estimator(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_affine_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::BundleAdjusterAffine::confThresh()
15546 15547 15548 15549 |
# File 'lib/ropencv/ropencv_types.rb', line 15546 def conf_thresh() __validate_pointer__ Rbind::cv_detail_bundle_adjuster_affine_conf_thresh( self) end |
#refinement_mask ⇒ Cv::Mat Also known as: refinementMask
method wrapper for const cv::Mat cv::detail::BundleAdjusterAffine::refinementMask()
15524 15525 15526 15527 15528 15529 15530 15531 15532 |
# File 'lib/ropencv/ropencv_types.rb', line 15524 def refinement_mask() __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_affine_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::BundleAdjusterAffine::setConfThresh(double conf_thresh)
15555 15556 15557 15558 |
# File 'lib/ropencv/ropencv_types.rb', line 15555 def set_conf_thresh(conf_thresh) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_affine_set_conf_thresh( self, conf_thresh) end |
#set_refinement_mask(mask) ⇒ Void Also known as: setRefinementMask
method wrapper for void cv::detail::BundleAdjusterAffine::setRefinementMask(const cv::Mat mask)
15538 15539 15540 15541 |
# File 'lib/ropencv/ropencv_types.rb', line 15538 def set_refinement_mask(mask) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_affine_set_refinement_mask( self, mask) end |
#set_term_criteria(term_criteria) ⇒ Void Also known as: setTermCriteria
method wrapper for void cv::detail::BundleAdjusterAffine::setTermCriteria(const cv::TermCriteria term_criteria)
15577 15578 15579 15580 |
# File 'lib/ropencv/ropencv_types.rb', line 15577 def set_term_criteria(term_criteria) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_affine_set_term_criteria( self, term_criteria) end |
#term_criteria ⇒ Cv::TermCriteria Also known as: termCriteria
method wrapper for const cv::TermCriteria cv::detail::BundleAdjusterAffine::termCriteria()
15563 15564 15565 15566 15567 15568 15569 15570 15571 |
# File 'lib/ropencv/ropencv_types.rb', line 15563 def term_criteria() __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_affine_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 BundleAdjusterAffine into a string by crawling through all its attributes
15499 15500 15501 |
# File 'lib/ropencv/ropencv_types.rb', line 15499 def to_s "#<cv::detail::BundleAdjusterAffine >" end |