Class: OpenCV::Cv::Detail::BundleAdjusterRay
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::BundleAdjusterRay
- 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 BundleAdjusterRay into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 |
# File 'lib/ropencv/ropencv_types.rb', line 15173 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(BundleAdjusterRayStruct) 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::BundleAdjusterRay::BundleAdjusterRay() @@cv_detail_bundle_adjuster_ray_bundle_adjuster_ray_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_detail_bundle_adjuster_ray_bundle_adjuster_ray_defaults0[i] end begin return Rbind::cv_detail_bundle_adjuster_ray_bundle_adjuster_ray(*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
15169 15170 15171 |
# File 'lib/ropencv/ropencv_types.rb', line 15169 def self.null new(BundleAdjusterRayStruct.new) end |
Instance Method Details
#apply(features, pairwise_matches, cameras) ⇒ Bool
method wrapper for bool cv::detail::BundleAdjusterRay::operator()(const std::vectorcv::detail::ImageFeatures features, const std::vectorcv::detail::MatchesInfo pairwise_matches, std::vectorcv::detail::CameraParams& cameras)
15362 15363 15364 15365 |
# File 'lib/ropencv/ropencv_types.rb', line 15362 def apply(features, pairwise_matches, cameras) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_ray_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::BundleAdjusterRay::castToBundleAdjusterBase(bool parse_ownership)
methods
15271 15272 15273 15274 15275 15276 15277 15278 15279 |
# File 'lib/ropencv/ropencv_types.rb', line 15271 def cast_to_bundle_adjuster_base(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_ray_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::BundleAdjusterRay::castToEstimator(bool parse_ownership)
15346 15347 15348 15349 15350 15351 15352 15353 15354 |
# File 'lib/ropencv/ropencv_types.rb', line 15346 def cast_to_estimator(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_ray_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::BundleAdjusterRay::confThresh()
15306 15307 15308 15309 |
# File 'lib/ropencv/ropencv_types.rb', line 15306 def conf_thresh() __validate_pointer__ Rbind::cv_detail_bundle_adjuster_ray_conf_thresh( self) end |
#refinement_mask ⇒ Cv::Mat Also known as: refinementMask
method wrapper for const cv::Mat cv::detail::BundleAdjusterRay::refinementMask()
15284 15285 15286 15287 15288 15289 15290 15291 15292 |
# File 'lib/ropencv/ropencv_types.rb', line 15284 def refinement_mask() __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_ray_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::BundleAdjusterRay::setConfThresh(double conf_thresh)
15315 15316 15317 15318 |
# File 'lib/ropencv/ropencv_types.rb', line 15315 def set_conf_thresh(conf_thresh) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_ray_set_conf_thresh( self, conf_thresh) end |
#set_refinement_mask(mask) ⇒ Void Also known as: setRefinementMask
method wrapper for void cv::detail::BundleAdjusterRay::setRefinementMask(const cv::Mat mask)
15298 15299 15300 15301 |
# File 'lib/ropencv/ropencv_types.rb', line 15298 def set_refinement_mask(mask) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_ray_set_refinement_mask( self, mask) end |
#set_term_criteria(term_criteria) ⇒ Void Also known as: setTermCriteria
method wrapper for void cv::detail::BundleAdjusterRay::setTermCriteria(const cv::TermCriteria term_criteria)
15337 15338 15339 15340 |
# File 'lib/ropencv/ropencv_types.rb', line 15337 def set_term_criteria(term_criteria) __validate_pointer__ Rbind::cv_detail_bundle_adjuster_ray_set_term_criteria( self, term_criteria) end |
#term_criteria ⇒ Cv::TermCriteria Also known as: termCriteria
method wrapper for const cv::TermCriteria cv::detail::BundleAdjusterRay::termCriteria()
15323 15324 15325 15326 15327 15328 15329 15330 15331 |
# File 'lib/ropencv/ropencv_types.rb', line 15323 def term_criteria() __validate_pointer__ result = Rbind::cv_detail_bundle_adjuster_ray_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 BundleAdjusterRay into a string by crawling through all its attributes
15259 15260 15261 |
# File 'lib/ropencv/ropencv_types.rb', line 15259 def to_s "#<cv::detail::BundleAdjusterRay >" end |