Class: OpenCV::Cv::Detail::AffineBasedEstimator
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::AffineBasedEstimator
- 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_estimator(parse_ownership) ⇒ Cv::Detail::Estimator
(also: #castToEstimator)
methods.
-
#to_s ⇒ Object
converts AffineBasedEstimator into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 |
# File 'lib/ropencv/ropencv_types.rb', line 14306 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(AffineBasedEstimatorStruct) 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::AffineBasedEstimator::AffineBasedEstimator() @@cv_detail_affine_based_estimator_affine_based_estimator_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_detail_affine_based_estimator_affine_based_estimator_defaults0[i] end begin return Rbind::cv_detail_affine_based_estimator_affine_based_estimator(*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
14302 14303 14304 |
# File 'lib/ropencv/ropencv_types.rb', line 14302 def self.null new(AffineBasedEstimatorStruct.new) end |
Instance Method Details
#apply(features, pairwise_matches, cameras) ⇒ Bool
Note:
method wrapper for bool cv::detail::AffineBasedEstimator::operator()(const std::vectorcv::detail::ImageFeatures features, const std::vectorcv::detail::MatchesInfo pairwise_matches, std::vectorcv::detail::CameraParams& cameras)
14420 14421 14422 14423 |
# File 'lib/ropencv/ropencv_types.rb', line 14420 def apply(features, pairwise_matches, cameras) __validate_pointer__ Rbind::cv_detail_affine_based_estimator_apply( self, features, pairwise_matches, cameras) end |
#cast_to_estimator(parse_ownership) ⇒ Cv::Detail::Estimator Also known as: castToEstimator
Note:
method wrapper for cv::detail::Estimator* cv::detail::AffineBasedEstimator::castToEstimator(bool parse_ownership)
methods
14404 14405 14406 14407 14408 14409 14410 14411 14412 |
# File 'lib/ropencv/ropencv_types.rb', line 14404 def cast_to_estimator(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_affine_based_estimator_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 |
#to_s ⇒ Object
converts AffineBasedEstimator into a string by crawling through all its attributes
14392 14393 14394 |
# File 'lib/ropencv/ropencv_types.rb', line 14392 def to_s "#<cv::detail::AffineBasedEstimator >" end |