Class: OpenCV::Cv::Detail::NoBundleAdjuster
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::NoBundleAdjuster
- 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 NoBundleAdjuster into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 |
# File 'lib/ropencv/ropencv_types.rb', line 14693 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(NoBundleAdjusterStruct) 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::NoBundleAdjuster::NoBundleAdjuster() @@cv_detail_no_bundle_adjuster_no_bundle_adjuster_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_detail_no_bundle_adjuster_no_bundle_adjuster_defaults0[i] end begin return Rbind::cv_detail_no_bundle_adjuster_no_bundle_adjuster(*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
14689 14690 14691 |
# File 'lib/ropencv/ropencv_types.rb', line 14689 def self.null new(NoBundleAdjusterStruct.new) end |
Instance Method Details
#apply(features, pairwise_matches, cameras) ⇒ Bool
method wrapper for bool cv::detail::NoBundleAdjuster::operator()(const std::vectorcv::detail::ImageFeatures features, const std::vectorcv::detail::MatchesInfo pairwise_matches, std::vectorcv::detail::CameraParams& cameras)
14882 14883 14884 14885 |
# File 'lib/ropencv/ropencv_types.rb', line 14882 def apply(features, pairwise_matches, cameras) __validate_pointer__ Rbind::cv_detail_no_bundle_adjuster_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::NoBundleAdjuster::castToBundleAdjusterBase(bool parse_ownership)
methods
14791 14792 14793 14794 14795 14796 14797 14798 14799 |
# File 'lib/ropencv/ropencv_types.rb', line 14791 def cast_to_bundle_adjuster_base(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_no_bundle_adjuster_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::NoBundleAdjuster::castToEstimator(bool parse_ownership)
14866 14867 14868 14869 14870 14871 14872 14873 14874 |
# File 'lib/ropencv/ropencv_types.rb', line 14866 def cast_to_estimator(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_no_bundle_adjuster_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::NoBundleAdjuster::confThresh()
14826 14827 14828 14829 |
# File 'lib/ropencv/ropencv_types.rb', line 14826 def conf_thresh() __validate_pointer__ Rbind::cv_detail_no_bundle_adjuster_conf_thresh( self) end |
#refinement_mask ⇒ Cv::Mat Also known as: refinementMask
method wrapper for const cv::Mat cv::detail::NoBundleAdjuster::refinementMask()
14804 14805 14806 14807 14808 14809 14810 14811 14812 |
# File 'lib/ropencv/ropencv_types.rb', line 14804 def refinement_mask() __validate_pointer__ result = Rbind::cv_detail_no_bundle_adjuster_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::NoBundleAdjuster::setConfThresh(double conf_thresh)
14835 14836 14837 14838 |
# File 'lib/ropencv/ropencv_types.rb', line 14835 def set_conf_thresh(conf_thresh) __validate_pointer__ Rbind::cv_detail_no_bundle_adjuster_set_conf_thresh( self, conf_thresh) end |
#set_refinement_mask(mask) ⇒ Void Also known as: setRefinementMask
method wrapper for void cv::detail::NoBundleAdjuster::setRefinementMask(const cv::Mat mask)
14818 14819 14820 14821 |
# File 'lib/ropencv/ropencv_types.rb', line 14818 def set_refinement_mask(mask) __validate_pointer__ Rbind::cv_detail_no_bundle_adjuster_set_refinement_mask( self, mask) end |
#set_term_criteria(term_criteria) ⇒ Void Also known as: setTermCriteria
method wrapper for void cv::detail::NoBundleAdjuster::setTermCriteria(const cv::TermCriteria term_criteria)
14857 14858 14859 14860 |
# File 'lib/ropencv/ropencv_types.rb', line 14857 def set_term_criteria(term_criteria) __validate_pointer__ Rbind::cv_detail_no_bundle_adjuster_set_term_criteria( self, term_criteria) end |
#term_criteria ⇒ Cv::TermCriteria Also known as: termCriteria
method wrapper for const cv::TermCriteria cv::detail::NoBundleAdjuster::termCriteria()
14843 14844 14845 14846 14847 14848 14849 14850 14851 |
# File 'lib/ropencv/ropencv_types.rb', line 14843 def term_criteria() __validate_pointer__ result = Rbind::cv_detail_no_bundle_adjuster_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 NoBundleAdjuster into a string by crawling through all its attributes
14779 14780 14781 |
# File 'lib/ropencv/ropencv_types.rb', line 14779 def to_s "#<cv::detail::NoBundleAdjuster >" end |