Class: OpenCV::Cv::Detail::BundleAdjusterReproj

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)


14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
# File 'lib/ropencv/ropencv_types.rb', line 14933

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(BundleAdjusterReprojStruct)
        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::BundleAdjusterReproj::BundleAdjusterReproj()
    @@cv_detail_bundle_adjuster_reproj_bundle_adjuster_reproj_defaults0 ||= []
    if(args.size >= 0 && args.size <= 0)
        targs = args.clone
        targs.size.upto(-1) do |i|
            targs[i] = @@cv_detail_bundle_adjuster_reproj_bundle_adjuster_reproj_defaults0[i]
        end
        begin
                return Rbind::cv_detail_bundle_adjuster_reproj_bundle_adjuster_reproj(*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



14929
14930
14931
# File 'lib/ropencv/ropencv_types.rb', line 14929

def self.null
    new(BundleAdjusterReprojStruct.new)
end

Instance Method Details

#apply(features, pairwise_matches, cameras) ⇒ Bool

Note:

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

Parameters:

Returns:

  • (Bool)


15122
15123
15124
15125
# File 'lib/ropencv/ropencv_types.rb', line 15122

def apply(features, pairwise_matches, cameras)
    __validate_pointer__
    Rbind::cv_detail_bundle_adjuster_reproj_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::BundleAdjusterReproj::castToBundleAdjusterBase(bool parse_ownership)

methods

Parameters:

  • parse_ownership (Bool)

Returns:



15031
15032
15033
15034
15035
15036
15037
15038
15039
# File 'lib/ropencv/ropencv_types.rb', line 15031

def cast_to_bundle_adjuster_base(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_detail_bundle_adjuster_reproj_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::BundleAdjusterReproj::castToEstimator(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



15106
15107
15108
15109
15110
15111
15112
15113
15114
# File 'lib/ropencv/ropencv_types.rb', line 15106

def cast_to_estimator(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_detail_bundle_adjuster_reproj_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::BundleAdjusterReproj::confThresh()

Returns:

  • (Double)


15066
15067
15068
15069
# File 'lib/ropencv/ropencv_types.rb', line 15066

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

#refinement_maskCv::Mat Also known as: refinementMask

Note:

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

Returns:



15044
15045
15046
15047
15048
15049
15050
15051
15052
# File 'lib/ropencv/ropencv_types.rb', line 15044

def refinement_mask()
    __validate_pointer__
    result = Rbind::cv_detail_bundle_adjuster_reproj_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::BundleAdjusterReproj::setConfThresh(double conf_thresh)

Parameters:

  • conf_thresh (Double)

Returns:

  • (Void)


15075
15076
15077
15078
# File 'lib/ropencv/ropencv_types.rb', line 15075

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

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

Note:

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

Parameters:

Returns:

  • (Void)


15058
15059
15060
15061
# File 'lib/ropencv/ropencv_types.rb', line 15058

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

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

Note:

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

Parameters:

Returns:

  • (Void)


15097
15098
15099
15100
# File 'lib/ropencv/ropencv_types.rb', line 15097

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

#term_criteriaCv::TermCriteria Also known as: termCriteria

Note:

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

Returns:



15083
15084
15085
15086
15087
15088
15089
15090
15091
# File 'lib/ropencv/ropencv_types.rb', line 15083

def term_criteria()
    __validate_pointer__
    result = Rbind::cv_detail_bundle_adjuster_reproj_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 BundleAdjusterReproj into a string by crawling through all its attributes



15019
15020
15021
# File 'lib/ropencv/ropencv_types.rb', line 15019

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