Class: OpenCV::Cv::AlignExposures

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::AlignExposures Also known as: castFromAlgorithm

Note:

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

Parameters:

Returns:



29523
29524
29525
# File 'lib/ropencv/ropencv_types.rb', line 29523

def self.cast_from_algorithm(ptr, parse_ownership)
    Rbind::cv_align_exposures_cast_from_algorithm(ptr, parse_ownership)
end

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


29412
29413
29414
29415
29416
29417
29418
29419
# File 'lib/ropencv/ropencv_types.rb', line 29412

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



29408
29409
29410
# File 'lib/ropencv/ropencv_types.rb', line 29408

def self.null
    new(AlignExposuresStruct.new)
end

Instance Method Details

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

Note:

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

Parameters:

  • parse_ownership (Bool)

Returns:



29508
29509
29510
29511
29512
29513
29514
29515
29516
# File 'lib/ropencv/ropencv_types.rb', line 29508

def cast_to_algorithm(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_align_exposures_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::AlignExposures::clear()

Returns:

  • (Void)


29530
29531
29532
29533
# File 'lib/ropencv/ropencv_types.rb', line 29530

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

#emptyBool

Note:

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

Returns:

  • (Bool)


29554
29555
29556
29557
# File 'lib/ropencv/ropencv_types.rb', line 29554

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

#get_default_nameStd::String Also known as: getDefaultName

Note:

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

Returns:



29569
29570
29571
29572
29573
29574
29575
29576
29577
# File 'lib/ropencv/ropencv_types.rb', line 29569

def get_default_name()
    __validate_pointer__
    result = Rbind::cv_align_exposures_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, response) ⇒ Void

Note:

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

methods

Parameters:

Returns:

  • (Void)


29500
29501
29502
29503
# File 'lib/ropencv/ropencv_types.rb', line 29500

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

#read(fn) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


29547
29548
29549
29550
# File 'lib/ropencv/ropencv_types.rb', line 29547

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

#save(filename) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


29562
29563
29564
29565
# File 'lib/ropencv/ropencv_types.rb', line 29562

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

#to_sObject

converts AlignExposures into a string by crawling through all its attributes



29485
29486
29487
# File 'lib/ropencv/ropencv_types.rb', line 29485

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

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

Note:

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

Parameters:

Returns:

  • (Void)


29539
29540
29541
29542
# File 'lib/ropencv/ropencv_types.rb', line 29539

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