Class: OpenCV::Cv::CalibrateCRF

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

.cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::CalibrateCRF Also known as: castFromAlgorithm

Note:

wrapper for static method cv::CalibrateCRF* cv::CalibrateCRF::castFromAlgorithm(cv::Algorithm* ptr, bool parse_ownership)

Parameters:

Returns:



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

Raises:

  • (ArgumentError)


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

.nullObject

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

Note:

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

Parameters:

  • parse_ownership (Bool)

Returns:



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

#clearVoid

Note:

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

Returns:

  • (Void)


30600
30601
30602
30603
# File 'lib/ropencv/ropencv_types.rb', line 30600

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

#emptyBool

Note:

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

Returns:

  • (Bool)


30624
30625
30626
30627
# File 'lib/ropencv/ropencv_types.rb', line 30624

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

#get_default_nameStd::String Also known as: getDefaultName

Note:

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

Returns:



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

Note:

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

methods

Parameters:

Returns:

  • (Void)


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

Note:

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

Parameters:

Returns:

  • (Void)


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

Note:

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

Parameters:

Returns:

  • (Void)


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_sObject

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

Note:

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

Parameters:

Returns:

  • (Void)


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