Class: OpenCV::Cv::Detail::NoBundleAdjuster

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

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


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

.nullObject

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

Note:

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)

Parameters:

Returns:

  • (Bool)


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

Note:

method wrapper for cv::detail::BundleAdjusterBase* cv::detail::NoBundleAdjuster::castToBundleAdjusterBase(bool parse_ownership)

methods

Parameters:

  • parse_ownership (Bool)

Returns:



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

Note:

method wrapper for cv::detail::Estimator* cv::detail::NoBundleAdjuster::castToEstimator(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



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_threshDouble Also known as: confThresh

Note:

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

Returns:

  • (Double)


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_maskCv::Mat Also known as: refinementMask

Note:

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

Returns:



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

Note:

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

Parameters:

  • conf_thresh (Double)

Returns:

  • (Void)


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

Note:

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

Parameters:

Returns:

  • (Void)


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

Note:

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

Parameters:

Returns:

  • (Void)


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_criteriaCv::TermCriteria Also known as: termCriteria

Note:

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

Returns:



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_sObject

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