Class: OpenCV::Cv::Detail::Estimator
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::Estimator
- 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
methods.
-
#to_s ⇒ Object
converts Estimator into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
14002 14003 14004 14005 14006 14007 14008 14009 |
# File 'lib/ropencv/ropencv_types.rb', line 14002 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(EstimatorStruct) 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
13998 13999 14000 |
# File 'lib/ropencv/ropencv_types.rb', line 13998 def self.null new(EstimatorStruct.new) end |
Instance Method Details
#apply(features, pairwise_matches, cameras) ⇒ Bool
Note:
method wrapper for bool cv::detail::Estimator::operator()(const std::vectorcv::detail::ImageFeatures features, const std::vectorcv::detail::MatchesInfo pairwise_matches, std::vectorcv::detail::CameraParams& cameras)
methods
14089 14090 14091 14092 |
# File 'lib/ropencv/ropencv_types.rb', line 14089 def apply(features, pairwise_matches, cameras) __validate_pointer__ Rbind::cv_detail_estimator_apply( self, features, pairwise_matches, cameras) end |
#to_s ⇒ Object
converts Estimator into a string by crawling through all its attributes
14075 14076 14077 |
# File 'lib/ropencv/ropencv_types.rb', line 14075 def to_s "#<cv::detail::Estimator >" end |