Class: OpenCV::Cv::Detail::BlocksChannelsCompensator

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

Parameters:

  • bl_width (Fixnum)
  • bl_height (Fixnum)
  • nr_feeds (Fixnum)

Raises:

  • (ArgumentError)


13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
# File 'lib/ropencv/ropencv_types.rb', line 13681

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(BlocksChannelsCompensatorStruct)
        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::BlocksChannelsCompensator::BlocksChannelsCompensator(int bl_width = 32, int bl_height = 32, int nr_feeds = 1)
    @@cv_detail_blocks_channels_compensator_blocks_channels_compensator_defaults0 ||= [32, 32, 1]
    if(args.size >= 0 && args.size <= 3)
        targs = args.clone
        targs.size.upto(2) do |i|
            targs[i] = @@cv_detail_blocks_channels_compensator_blocks_channels_compensator_defaults0[i]
        end
        begin
                return Rbind::cv_detail_blocks_channels_compensator_blocks_channels_compensator(*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



13674
13675
13676
# File 'lib/ropencv/ropencv_types.rb', line 13674

def self.null
    new(BlocksChannelsCompensatorStruct.new)
end

Instance Method Details

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

Note:

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

Parameters:

Returns:

  • (Void)


13796
13797
13798
13799
# File 'lib/ropencv/ropencv_types.rb', line 13796

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

#cast_to_blocks_compensator(parse_ownership) ⇒ Cv::Detail::BlocksCompensator Also known as: castToBlocksCompensator

Note:

method wrapper for cv::detail::BlocksCompensator* cv::detail::BlocksChannelsCompensator::castToBlocksCompensator(bool parse_ownership)

methods

Parameters:

  • parse_ownership (Bool)

Returns:



13779
13780
13781
13782
13783
13784
13785
13786
13787
# File 'lib/ropencv/ropencv_types.rb', line 13779

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

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

Note:

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

Parameters:

  • parse_ownership (Bool)

Returns:



13928
13929
13930
13931
13932
13933
13934
13935
13936
# File 'lib/ropencv/ropencv_types.rb', line 13928

def cast_to_exposure_compensator(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_detail_blocks_channels_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_block_sizeCv::Size Also known as: getBlockSize

Note:

method wrapper for const cv::Size cv::detail::BlocksChannelsCompensator::getBlockSize()

Returns:



13897
13898
13899
13900
13901
13902
13903
13904
13905
# File 'lib/ropencv/ropencv_types.rb', line 13897

def get_block_size()
    __validate_pointer__
    result = Rbind::cv_detail_blocks_channels_compensator_get_block_size( 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_mat_gains(umv) ⇒ Void Also known as: getMatGains

Note:

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

Parameters:

Returns:

  • (Void)


13804
13805
13806
13807
# File 'lib/ropencv/ropencv_types.rb', line 13804

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

#get_nr_feedsFixnum Also known as: getNrFeeds

Note:

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

Returns:

  • (Fixnum)


13830
13831
13832
13833
# File 'lib/ropencv/ropencv_types.rb', line 13830

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

#get_nr_gains_filtering_iterationsFixnum Also known as: getNrGainsFilteringIterations

Note:

method wrapper for int cv::detail::BlocksChannelsCompensator::getNrGainsFilteringIterations()

Returns:

  • (Fixnum)


13919
13920
13921
13922
# File 'lib/ropencv/ropencv_types.rb', line 13919

def get_nr_gains_filtering_iterations()
    __validate_pointer__
    Rbind::cv_detail_blocks_channels_compensator_get_nr_gains_filtering_iterations( self)
end

#get_similarity_thresholdDouble Also known as: getSimilarityThreshold

Note:

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

Returns:

  • (Double)


13847
13848
13849
13850
# File 'lib/ropencv/ropencv_types.rb', line 13847

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

#get_update_gainBool Also known as: getUpdateGain

Note:

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

Returns:

  • (Bool)


13950
13951
13952
13953
# File 'lib/ropencv/ropencv_types.rb', line 13950

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

#set_block_size(width, height) ⇒ Void #set_block_size(size) ⇒ Void

Note:

wrapper for overloaded method set_block_size

Overloads:

  • #set_block_size(width, height) ⇒ Void

    Parameters:

    • width (Fixnum)
    • height (Fixnum)

    Returns:

    • (Void)
  • #set_block_size(size) ⇒ Void

    Parameters:

    Returns:

    • (Void)

Raises:

  • (ArgumentError)


13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
# File 'lib/ropencv/ropencv_types.rb', line 13862

def set_block_size(*args)
    __validate_pointer__
    # overloaded method wrapper for void cv::detail::BlocksChannelsCompensator::setBlockSize(int width, int height)
    @@cv_detail_blocks_channels_compensator_set_block_size_defaults0 ||= [nil, nil]
    if(args.size >= 2 && args.size <= 2)
        targs = args.clone
        targs.size.upto(1) do |i|
            targs[i] = @@cv_detail_blocks_channels_compensator_set_block_size_defaults0[i]
        end
        begin
                return Rbind::cv_detail_blocks_channels_compensator_set_block_size(self,*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for void cv::detail::BlocksChannelsCompensator::setBlockSize(const cv::Size size)
    @@cv_detail_blocks_channels_compensator_set_block_size__2_defaults1 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_detail_blocks_channels_compensator_set_block_size__2_defaults1[i]
        end
        begin
                return Rbind::cv_detail_blocks_channels_compensator_set_block_size__2(self,*targs)
        rescue TypeError => e
            @error = e
        end
    end

    raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}"
end

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

Note:

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

Parameters:

Returns:

  • (Void)


13813
13814
13815
13816
# File 'lib/ropencv/ropencv_types.rb', line 13813

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

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

Note:

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

Parameters:

  • nr_feeds (Fixnum)

Returns:

  • (Void)


13822
13823
13824
13825
# File 'lib/ropencv/ropencv_types.rb', line 13822

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

#set_nr_gains_filtering_iterations(nr_iterations) ⇒ Void Also known as: setNrGainsFilteringIterations

Note:

method wrapper for void cv::detail::BlocksChannelsCompensator::setNrGainsFilteringIterations(int nr_iterations)

Parameters:

  • nr_iterations (Fixnum)

Returns:

  • (Void)


13911
13912
13913
13914
# File 'lib/ropencv/ropencv_types.rb', line 13911

def set_nr_gains_filtering_iterations(nr_iterations)
    __validate_pointer__
    Rbind::cv_detail_blocks_channels_compensator_set_nr_gains_filtering_iterations( self, nr_iterations)
end

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

Note:

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

Parameters:

  • similarity_threshold (Double)

Returns:

  • (Void)


13839
13840
13841
13842
# File 'lib/ropencv/ropencv_types.rb', line 13839

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

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

Note:

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

Parameters:

  • b (Bool)

Returns:

  • (Void)


13942
13943
13944
13945
# File 'lib/ropencv/ropencv_types.rb', line 13942

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

#to_sObject

converts BlocksChannelsCompensator into a string by crawling through all its attributes



13767
13768
13769
# File 'lib/ropencv/ropencv_types.rb', line 13767

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