Class: OpenCV::Cv::Detail::BundleAdjusterRay

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)


15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
# File 'lib/ropencv/ropencv_types.rb', line 15173

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



15169
15170
15171
# File 'lib/ropencv/ropencv_types.rb', line 15169

def self.null
    new(BundleAdjusterRayStruct.new)
end

Instance Method Details

#apply(features, pairwise_matches, cameras) ⇒ Bool

Note:

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

Parameters:

Returns:

  • (Bool)


15362
15363
15364
15365
# File 'lib/ropencv/ropencv_types.rb', line 15362

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

methods

Parameters:

  • parse_ownership (Bool)

Returns:



15271
15272
15273
15274
15275
15276
15277
15278
15279
# File 'lib/ropencv/ropencv_types.rb', line 15271

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

Parameters:

  • parse_ownership (Bool)

Returns:



15346
15347
15348
15349
15350
15351
15352
15353
15354
# File 'lib/ropencv/ropencv_types.rb', line 15346

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

Returns:

  • (Double)


15306
15307
15308
15309
# File 'lib/ropencv/ropencv_types.rb', line 15306

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

#refinement_maskCv::Mat Also known as: refinementMask

Note:

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

Returns:



15284
15285
15286
15287
15288
15289
15290
15291
15292
# File 'lib/ropencv/ropencv_types.rb', line 15284

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

Parameters:

  • conf_thresh (Double)

Returns:

  • (Void)


15315
15316
15317
15318
# File 'lib/ropencv/ropencv_types.rb', line 15315

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

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

Note:

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

Parameters:

Returns:

  • (Void)


15298
15299
15300
15301
# File 'lib/ropencv/ropencv_types.rb', line 15298

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

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

Note:

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

Parameters:

Returns:

  • (Void)


15337
15338
15339
15340
# File 'lib/ropencv/ropencv_types.rb', line 15337

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

#term_criteriaCv::TermCriteria Also known as: termCriteria

Note:

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

Returns:



15323
15324
15325
15326
15327
15328
15329
15330
15331
# File 'lib/ropencv/ropencv_types.rb', line 15323

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



15259
15260
15261
# File 'lib/ropencv/ropencv_types.rb', line 15259

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