Class: OpenCV::Cv::CalibrateRobertson

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)


31481
31482
31483
31484
31485
31486
31487
31488
# File 'lib/ropencv/ropencv_types.rb', line 31481

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

.null ⇒ Object

returns a null pointer to the object



31477
31478
31479
# File 'lib/ropencv/ropencv_types.rb', line 31477

def self.null
    new(CalibrateRobertsonStruct.new)
end

Instance Method Details

#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm

Note:

method wrapper for cv::Algorithm* cv::CalibrateRobertson::castToAlgorithm(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



31637
31638
31639
31640
31641
31642
31643
31644
31645
# File 'lib/ropencv/ropencv_types.rb', line 31637

def cast_to_algorithm(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_calibrate_robertson_cast_to_algorithm( 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_calibratecrf(parse_ownership) ⇒ Cv::CalibrateCRF Also known as: castToCalibrateCRF

Note:

method wrapper for cv::CalibrateCRF* cv::CalibrateRobertson::castToCalibrateCRF(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



31613
31614
31615
31616
31617
31618
31619
31620
31621
# File 'lib/ropencv/ropencv_types.rb', line 31613

def cast_to_calibratecrf(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_calibrate_robertson_cast_to_calibratecrf( 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

#clear ⇒ Void

Note:

method wrapper for void cv::CalibrateRobertson::clear()

Returns:

  • (Void)


31650
31651
31652
31653
# File 'lib/ropencv/ropencv_types.rb', line 31650

def clear()
    __validate_pointer__
    Rbind::cv_calibrate_robertson_clear( self)
end

#empty ⇒ Bool

Note:

method wrapper for bool cv::CalibrateRobertson::empty()

Returns:

  • (Bool)


31674
31675
31676
31677
# File 'lib/ropencv/ropencv_types.rb', line 31674

def empty()
    __validate_pointer__
    Rbind::cv_calibrate_robertson_empty( self)
end

#get_default_name ⇒ Std::String Also known as: getDefaultName

Note:

method wrapper for const std::string cv::CalibrateRobertson::getDefaultName()

Returns:



31689
31690
31691
31692
31693
31694
31695
31696
31697
# File 'lib/ropencv/ropencv_types.rb', line 31689

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

#get_max_iter ⇒ Fixnum Also known as: getMaxIter

Note:

method wrapper for int cv::CalibrateRobertson::getMaxIter()

methods

Returns:

  • (Fixnum)


31565
31566
31567
31568
# File 'lib/ropencv/ropencv_types.rb', line 31565

def get_max_iter()
    __validate_pointer__
    Rbind::cv_calibrate_robertson_get_max_iter( self)
end

#get_radiance ⇒ Cv::Mat Also known as: getRadiance

Note:

method wrapper for const cv::Mat cv::CalibrateRobertson::getRadiance()

Returns:



31599
31600
31601
31602
31603
31604
31605
31606
31607
# File 'lib/ropencv/ropencv_types.rb', line 31599

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

#get_threshold ⇒ Float Also known as: getThreshold

Note:

method wrapper for float cv::CalibrateRobertson::getThreshold()

Returns:

  • (Float)


31582
31583
31584
31585
# File 'lib/ropencv/ropencv_types.rb', line 31582

def get_threshold()
    __validate_pointer__
    Rbind::cv_calibrate_robertson_get_threshold( self)
end

#process(src, dst, times) ⇒ Void

Note:

method wrapper for void cv::CalibrateRobertson::process(const std::vectorcv::Mat src, cv::Mat& dst, const cv::Mat times)

Parameters:

Returns:

  • (Void)


31629
31630
31631
31632
# File 'lib/ropencv/ropencv_types.rb', line 31629

def process(src, dst, times)
    __validate_pointer__
    Rbind::cv_calibrate_robertson_process( self, src, dst, times)
end

#read(fn) ⇒ Void

Note:

method wrapper for void cv::CalibrateRobertson::read(const cv::FileNode fn)

Parameters:

Returns:

  • (Void)


31667
31668
31669
31670
# File 'lib/ropencv/ropencv_types.rb', line 31667

def read(fn)
    __validate_pointer__
    Rbind::cv_calibrate_robertson_read( self, fn)
end

#save(filename) ⇒ Void

Note:

method wrapper for void cv::CalibrateRobertson::save(const std::string filename)

Parameters:

Returns:

  • (Void)


31682
31683
31684
31685
# File 'lib/ropencv/ropencv_types.rb', line 31682

def save(filename)
    __validate_pointer__
    Rbind::cv_calibrate_robertson_save( self, filename)
end

#set_max_iter(max_iter) ⇒ Void Also known as: setMaxIter

Note:

method wrapper for void cv::CalibrateRobertson::setMaxIter(int max_iter)

Parameters:

  • max_iter (Fixnum)

Returns:

  • (Void)


31574
31575
31576
31577
# File 'lib/ropencv/ropencv_types.rb', line 31574

def set_max_iter(max_iter)
    __validate_pointer__
    Rbind::cv_calibrate_robertson_set_max_iter( self, max_iter)
end

#set_threshold(threshold) ⇒ Void Also known as: setThreshold

Note:

method wrapper for void cv::CalibrateRobertson::setThreshold(float threshold)

Parameters:

  • threshold (Float)

Returns:

  • (Void)


31591
31592
31593
31594
# File 'lib/ropencv/ropencv_types.rb', line 31591

def set_threshold(threshold)
    __validate_pointer__
    Rbind::cv_calibrate_robertson_set_threshold( self, threshold)
end

#to_s ⇒ Object

converts CalibrateRobertson into a string by crawling through all its attributes



31554
31555
31556
# File 'lib/ropencv/ropencv_types.rb', line 31554

def to_s
    "#<cv::CalibrateRobertson >"
end

#write(fs, name = Std::String.new()) ⇒ Void

Note:

method wrapper for void cv::CalibrateRobertson::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())

Parameters:

Returns:

  • (Void)


31659
31660
31661
31662
# File 'lib/ropencv/ropencv_types.rb', line 31659

def write(fs, name = Std::String.new())
    __validate_pointer__
    Rbind::cv_calibrate_robertson_write( self, fs, name)
end