Class: OpenCV::Cv::CalibrateCRF
- Inherits:
-
Object
- Object
- OpenCV::Cv::CalibrateCRF
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::CalibrateCRF (also: castFromAlgorithm)
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm (also: #castToAlgorithm)
- #clear ⇒ Void
- #empty ⇒ Bool
- #get_default_name ⇒ Std::String (also: #getDefaultName)
-
#process(src, dst, times) ⇒ Void
methods.
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
-
#to_s ⇒ Object
converts CalibrateCRF into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::CalibrateCRF Also known as: castFromAlgorithm
wrapper for static method cv::CalibrateCRF* cv::CalibrateCRF::castFromAlgorithm(cv::Algorithm* ptr, bool parse_ownership)
30593 30594 30595 |
# File 'lib/ropencv/ropencv_types.rb', line 30593 def self.cast_from_algorithm(ptr, parse_ownership) Rbind::cv_calibratecrf_cast_from_algorithm(ptr, parse_ownership) end |
.new(*args) ⇒ Object
30483 30484 30485 30486 30487 30488 30489 30490 |
# File 'lib/ropencv/ropencv_types.rb', line 30483 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CalibrateCRFStruct) 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
30479 30480 30481 |
# File 'lib/ropencv/ropencv_types.rb', line 30479 def self.null new(CalibrateCRFStruct.new) end |
Instance Method Details
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::CalibrateCRF::castToAlgorithm(bool parse_ownership)
30578 30579 30580 30581 30582 30583 30584 30585 30586 |
# File 'lib/ropencv/ropencv_types.rb', line 30578 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_calibratecrf_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 |
#clear ⇒ Void
method wrapper for void cv::CalibrateCRF::clear()
30600 30601 30602 30603 |
# File 'lib/ropencv/ropencv_types.rb', line 30600 def clear() __validate_pointer__ Rbind::cv_calibratecrf_clear( self) end |
#empty ⇒ Bool
method wrapper for bool cv::CalibrateCRF::empty()
30624 30625 30626 30627 |
# File 'lib/ropencv/ropencv_types.rb', line 30624 def empty() __validate_pointer__ Rbind::cv_calibratecrf_empty( self) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::CalibrateCRF::getDefaultName()
30639 30640 30641 30642 30643 30644 30645 30646 30647 |
# File 'lib/ropencv/ropencv_types.rb', line 30639 def get_default_name() __validate_pointer__ result = Rbind::cv_calibratecrf_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 |
#process(src, dst, times) ⇒ Void
method wrapper for void cv::CalibrateCRF::process(const std::vectorcv::Mat src, cv::Mat& dst, const cv::Mat times)
methods
30570 30571 30572 30573 |
# File 'lib/ropencv/ropencv_types.rb', line 30570 def process(src, dst, times) __validate_pointer__ Rbind::cv_calibratecrf_process( self, src, dst, times) end |
#read(fn) ⇒ Void
method wrapper for void cv::CalibrateCRF::read(const cv::FileNode fn)
30617 30618 30619 30620 |
# File 'lib/ropencv/ropencv_types.rb', line 30617 def read(fn) __validate_pointer__ Rbind::cv_calibratecrf_read( self, fn) end |
#save(filename) ⇒ Void
method wrapper for void cv::CalibrateCRF::save(const std::string filename)
30632 30633 30634 30635 |
# File 'lib/ropencv/ropencv_types.rb', line 30632 def save(filename) __validate_pointer__ Rbind::cv_calibratecrf_save( self, filename) end |
#to_s ⇒ Object
converts CalibrateCRF into a string by crawling through all its attributes
30556 30557 30558 |
# File 'lib/ropencv/ropencv_types.rb', line 30556 def to_s "#<cv::CalibrateCRF >" end |
#write(fs, name = Std::String.new()) ⇒ Void
method wrapper for void cv::CalibrateCRF::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
30609 30610 30611 30612 |
# File 'lib/ropencv/ropencv_types.rb', line 30609 def write(fs, name = Std::String.new()) __validate_pointer__ Rbind::cv_calibratecrf_write( self, fs, name) end |