Class: OpenCV::Cv::Detail::BundleAdjusterAffinePartial

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)


15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
# File 'lib/ropencv/ropencv_types.rb', line 15653

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



15649
15650
15651
# File 'lib/ropencv/ropencv_types.rb', line 15649

def self.null
    new(BundleAdjusterAffinePartialStruct.new)
end

Instance Method Details

#apply(features, pairwise_matches, cameras) ⇒ Bool

Note:

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

Parameters:

Returns:

  • (Bool)


15842
15843
15844
15845
# File 'lib/ropencv/ropencv_types.rb', line 15842

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

methods

Parameters:

  • parse_ownership (Bool)

Returns:



15751
15752
15753
15754
15755
15756
15757
15758
15759
# File 'lib/ropencv/ropencv_types.rb', line 15751

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

Parameters:

  • parse_ownership (Bool)

Returns:



15826
15827
15828
15829
15830
15831
15832
15833
15834
# File 'lib/ropencv/ropencv_types.rb', line 15826

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

Returns:

  • (Double)


15786
15787
15788
15789
# File 'lib/ropencv/ropencv_types.rb', line 15786

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

#refinement_maskCv::Mat Also known as: refinementMask

Note:

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

Returns:



15764
15765
15766
15767
15768
15769
15770
15771
15772
# File 'lib/ropencv/ropencv_types.rb', line 15764

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

Parameters:

  • conf_thresh (Double)

Returns:

  • (Void)


15795
15796
15797
15798
# File 'lib/ropencv/ropencv_types.rb', line 15795

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

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

Note:

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

Parameters:

Returns:

  • (Void)


15778
15779
15780
15781
# File 'lib/ropencv/ropencv_types.rb', line 15778

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

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

Note:

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

Parameters:

Returns:

  • (Void)


15817
15818
15819
15820
# File 'lib/ropencv/ropencv_types.rb', line 15817

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

#term_criteriaCv::TermCriteria Also known as: termCriteria

Note:

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

Returns:



15803
15804
15805
15806
15807
15808
15809
15810
15811
# File 'lib/ropencv/ropencv_types.rb', line 15803

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



15739
15740
15741
# File 'lib/ropencv/ropencv_types.rb', line 15739

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