Class: OpenCV::Cv::Detail::GainCompensator

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

.gain_compensatorObject .gain_compensator(nr_feeds) ⇒ Object

Overloads:

  • .gain_compensator(nr_feeds) ⇒ Object

    Parameters:

    • nr_feeds (Fixnum)

Raises:

  • (ArgumentError)


12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
# File 'lib/ropencv/ropencv_types.rb', line 12547

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(GainCompensatorStruct)
        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::GainCompensator::GainCompensator()
    @@cv_detail_gain_compensator_gain_compensator_defaults0 ||= []
    if(args.size >= 0 && args.size <= 0)
        targs = args.clone
        targs.size.upto(-1) do |i|
            targs[i] = @@cv_detail_gain_compensator_gain_compensator_defaults0[i]
        end
        begin
                return Rbind::cv_detail_gain_compensator_gain_compensator(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::detail::GainCompensator::GainCompensator(int nr_feeds)
    @@cv_detail_gain_compensator_gain_compensator__2_defaults1 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_detail_gain_compensator_gain_compensator__2_defaults1[i]
        end
        begin
                return Rbind::cv_detail_gain_compensator_gain_compensator__2(*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



12539
12540
12541
# File 'lib/ropencv/ropencv_types.rb', line 12539

def self.null
    new(GainCompensatorStruct.new)
end

Instance Method Details

#apply(index, corner, image, mask) ⇒ Void

Note:

method wrapper for void cv::detail::GainCompensator::apply(int index, const cv::Point corner, cv::Mat& image, const cv::Mat mask)

methods

Parameters:

Returns:

  • (Void)


12662
12663
12664
12665
# File 'lib/ropencv/ropencv_types.rb', line 12662

def apply(index, corner, image, mask)
    __validate_pointer__
    Rbind::cv_detail_gain_compensator_apply( self, index, corner, image, mask)
end

#cast_to_exposure_compensator(parse_ownership) ⇒ Cv::Detail::ExposureCompensator Also known as: castToExposureCompensator

Note:

method wrapper for cv::detail::ExposureCompensator* cv::detail::GainCompensator::castToExposureCompensator(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



12722
12723
12724
12725
12726
12727
12728
12729
12730
# File 'lib/ropencv/ropencv_types.rb', line 12722

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

#get_mat_gains(umv) ⇒ Void Also known as: getMatGains

Note:

method wrapper for void cv::detail::GainCompensator::getMatGains(std::vectorcv::Mat& umv)

Parameters:

Returns:

  • (Void)


12670
12671
12672
12673
# File 'lib/ropencv/ropencv_types.rb', line 12670

def get_mat_gains(umv)
    __validate_pointer__
    Rbind::cv_detail_gain_compensator_get_mat_gains( self, umv)
end

#get_nr_feedsFixnum Also known as: getNrFeeds

Note:

method wrapper for int cv::detail::GainCompensator::getNrFeeds()

Returns:

  • (Fixnum)


12696
12697
12698
12699
# File 'lib/ropencv/ropencv_types.rb', line 12696

def get_nr_feeds()
    __validate_pointer__
    Rbind::cv_detail_gain_compensator_get_nr_feeds( self)
end

#get_similarity_thresholdDouble Also known as: getSimilarityThreshold

Note:

method wrapper for double cv::detail::GainCompensator::getSimilarityThreshold()

Returns:

  • (Double)


12713
12714
12715
12716
# File 'lib/ropencv/ropencv_types.rb', line 12713

def get_similarity_threshold()
    __validate_pointer__
    Rbind::cv_detail_gain_compensator_get_similarity_threshold( self)
end

#get_update_gainBool Also known as: getUpdateGain

Note:

method wrapper for bool cv::detail::GainCompensator::getUpdateGain()

Returns:

  • (Bool)


12744
12745
12746
12747
# File 'lib/ropencv/ropencv_types.rb', line 12744

def get_update_gain()
    __validate_pointer__
    Rbind::cv_detail_gain_compensator_get_update_gain( self)
end

#set_mat_gains(umv) ⇒ Void Also known as: setMatGains

Note:

method wrapper for void cv::detail::GainCompensator::setMatGains(const std::vectorcv::Mat umv)

Parameters:

Returns:

  • (Void)


12679
12680
12681
12682
# File 'lib/ropencv/ropencv_types.rb', line 12679

def set_mat_gains(umv)
    __validate_pointer__
    Rbind::cv_detail_gain_compensator_set_mat_gains( self, umv)
end

#set_nr_feeds(nr_feeds) ⇒ Void Also known as: setNrFeeds

Note:

method wrapper for void cv::detail::GainCompensator::setNrFeeds(int nr_feeds)

Parameters:

  • nr_feeds (Fixnum)

Returns:

  • (Void)


12688
12689
12690
12691
# File 'lib/ropencv/ropencv_types.rb', line 12688

def set_nr_feeds(nr_feeds)
    __validate_pointer__
    Rbind::cv_detail_gain_compensator_set_nr_feeds( self, nr_feeds)
end

#set_similarity_threshold(similarity_threshold) ⇒ Void Also known as: setSimilarityThreshold

Note:

method wrapper for void cv::detail::GainCompensator::setSimilarityThreshold(double similarity_threshold)

Parameters:

  • similarity_threshold (Double)

Returns:

  • (Void)


12705
12706
12707
12708
# File 'lib/ropencv/ropencv_types.rb', line 12705

def set_similarity_threshold(similarity_threshold)
    __validate_pointer__
    Rbind::cv_detail_gain_compensator_set_similarity_threshold( self, similarity_threshold)
end

#set_update_gain(b) ⇒ Void Also known as: setUpdateGain

Note:

method wrapper for void cv::detail::GainCompensator::setUpdateGain(bool b)

Parameters:

  • b (Bool)

Returns:

  • (Void)


12736
12737
12738
12739
# File 'lib/ropencv/ropencv_types.rb', line 12736

def set_update_gain(b)
    __validate_pointer__
    Rbind::cv_detail_gain_compensator_set_update_gain( self, b)
end

#to_sObject

converts GainCompensator into a string by crawling through all its attributes



12647
12648
12649
# File 'lib/ropencv/ropencv_types.rb', line 12647

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