Class: OpenCV::Cv::Detail::BundleAdjusterBase

Inherits:
Object
  • Object
show all
Extended by:
FFI::DataConverter
Defined in:
lib/ropencv/ropencv_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.cast_from_estimator(ptr, parse_ownership) ⇒ Cv::Detail::BundleAdjusterBase Also known as: castFromEstimator

Note:

wrapper for static method cv::detail::BundleAdjusterBase* cv::detail::BundleAdjusterBase::castFromEstimator(cv::detail::Estimator* ptr, bool parse_ownership)

Parameters:

Returns:



14632
14633
14634
# File 'lib/ropencv/ropencv_types.rb', line 14632

def self.cast_from_estimator(ptr, parse_ownership)
    Rbind::cv_detail_bundle_adjuster_base_cast_from_estimator(ptr, parse_ownership)
end

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


14471
14472
14473
14474
14475
14476
14477
14478
# File 'lib/ropencv/ropencv_types.rb', line 14471

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(BundleAdjusterBaseStruct)
        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

.nullObject

returns a null pointer to the object



14467
14468
14469
# File 'lib/ropencv/ropencv_types.rb', line 14467

def self.null
    new(BundleAdjusterBaseStruct.new)
end

Instance Method Details

#apply(features, pairwise_matches, cameras) ⇒ Bool

Note:

method wrapper for bool cv::detail::BundleAdjusterBase::operator()(const std::vectorcv::detail::ImageFeatures features, const std::vectorcv::detail::MatchesInfo pairwise_matches, std::vectorcv::detail::CameraParams& cameras)

Parameters:

Returns:

  • (Bool)


14642
14643
14644
14645
# File 'lib/ropencv/ropencv_types.rb', line 14642

def apply(features, pairwise_matches, cameras)
    __validate_pointer__
    Rbind::cv_detail_bundle_adjuster_base_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::BundleAdjusterBase::castToEstimator(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



14617
14618
14619
14620
14621
14622
14623
14624
14625
# File 'lib/ropencv/ropencv_types.rb', line 14617

def cast_to_estimator(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_detail_bundle_adjuster_base_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_threshDouble Also known as: confThresh

Note:

method wrapper for double cv::detail::BundleAdjusterBase::confThresh()

Returns:

  • (Double)


14577
14578
14579
14580
# File 'lib/ropencv/ropencv_types.rb', line 14577

def conf_thresh()
    __validate_pointer__
    Rbind::cv_detail_bundle_adjuster_base_conf_thresh( self)
end

#refinement_maskCv::Mat Also known as: refinementMask

Note:

method wrapper for const cv::Mat cv::detail::BundleAdjusterBase::refinementMask()

methods

Returns:



14555
14556
14557
14558
14559
14560
14561
14562
14563
# File 'lib/ropencv/ropencv_types.rb', line 14555

def refinement_mask()
    __validate_pointer__
    result = Rbind::cv_detail_bundle_adjuster_base_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

Note:

method wrapper for void cv::detail::BundleAdjusterBase::setConfThresh(double conf_thresh)

Parameters:

  • conf_thresh (Double)

Returns:

  • (Void)


14586
14587
14588
14589
# File 'lib/ropencv/ropencv_types.rb', line 14586

def set_conf_thresh(conf_thresh)
    __validate_pointer__
    Rbind::cv_detail_bundle_adjuster_base_set_conf_thresh( self, conf_thresh)
end

#set_refinement_mask(mask) ⇒ Void Also known as: setRefinementMask

Note:

method wrapper for void cv::detail::BundleAdjusterBase::setRefinementMask(const cv::Mat mask)

Parameters:

Returns:

  • (Void)


14569
14570
14571
14572
# File 'lib/ropencv/ropencv_types.rb', line 14569

def set_refinement_mask(mask)
    __validate_pointer__
    Rbind::cv_detail_bundle_adjuster_base_set_refinement_mask( self, mask)
end

#set_term_criteria(term_criteria) ⇒ Void Also known as: setTermCriteria

Note:

method wrapper for void cv::detail::BundleAdjusterBase::setTermCriteria(const cv::TermCriteria term_criteria)

Parameters:

Returns:

  • (Void)


14608
14609
14610
14611
# File 'lib/ropencv/ropencv_types.rb', line 14608

def set_term_criteria(term_criteria)
    __validate_pointer__
    Rbind::cv_detail_bundle_adjuster_base_set_term_criteria( self, term_criteria)
end

#term_criteriaCv::TermCriteria Also known as: termCriteria

Note:

method wrapper for const cv::TermCriteria cv::detail::BundleAdjusterBase::termCriteria()

Returns:



14594
14595
14596
14597
14598
14599
14600
14601
14602
# File 'lib/ropencv/ropencv_types.rb', line 14594

def term_criteria()
    __validate_pointer__
    result = Rbind::cv_detail_bundle_adjuster_base_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_sObject

converts BundleAdjusterBase into a string by crawling through all its attributes



14544
14545
14546
# File 'lib/ropencv/ropencv_types.rb', line 14544

def to_s
    "#<cv::detail::BundleAdjusterBase >"
end