Class: OpenCV::Cv::Detail::BlocksChannelsCompensator
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::BlocksChannelsCompensator
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #apply(index, corner, image, mask) ⇒ Void
-
#cast_to_blocks_compensator(parse_ownership) ⇒ Cv::Detail::BlocksCompensator
(also: #castToBlocksCompensator)
methods.
- #cast_to_exposure_compensator(parse_ownership) ⇒ Cv::Detail::ExposureCompensator (also: #castToExposureCompensator)
- #get_block_size ⇒ Cv::Size (also: #getBlockSize)
- #get_mat_gains(umv) ⇒ Void (also: #getMatGains)
- #get_nr_feeds ⇒ Fixnum (also: #getNrFeeds)
- #get_nr_gains_filtering_iterations ⇒ Fixnum (also: #getNrGainsFilteringIterations)
- #get_similarity_threshold ⇒ Double (also: #getSimilarityThreshold)
- #get_update_gain ⇒ Bool (also: #getUpdateGain)
- #set_block_size(*args) ⇒ Object
- #set_mat_gains(umv) ⇒ Void (also: #setMatGains)
- #set_nr_feeds(nr_feeds) ⇒ Void (also: #setNrFeeds)
- #set_nr_gains_filtering_iterations(nr_iterations) ⇒ Void (also: #setNrGainsFilteringIterations)
- #set_similarity_threshold(similarity_threshold) ⇒ Void (also: #setSimilarityThreshold)
- #set_update_gain(b) ⇒ Void (also: #setUpdateGain)
-
#to_s ⇒ Object
converts BlocksChannelsCompensator into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
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 |
.null ⇒ Object
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
method wrapper for void cv::detail::BlocksChannelsCompensator::apply(int index, const cv::Point corner, cv::Mat& image, const cv::Mat mask)
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
method wrapper for cv::detail::BlocksCompensator* cv::detail::BlocksChannelsCompensator::castToBlocksCompensator(bool parse_ownership)
methods
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
method wrapper for cv::detail::ExposureCompensator* cv::detail::BlocksChannelsCompensator::castToExposureCompensator(bool parse_ownership)
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_size ⇒ Cv::Size Also known as: getBlockSize
method wrapper for const cv::Size cv::detail::BlocksChannelsCompensator::getBlockSize()
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
method wrapper for void cv::detail::BlocksChannelsCompensator::getMatGains(std::vectorcv::Mat& umv)
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_feeds ⇒ Fixnum Also known as: getNrFeeds
method wrapper for int cv::detail::BlocksChannelsCompensator::getNrFeeds()
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_iterations ⇒ Fixnum Also known as: getNrGainsFilteringIterations
method wrapper for int cv::detail::BlocksChannelsCompensator::getNrGainsFilteringIterations()
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_threshold ⇒ Double Also known as: getSimilarityThreshold
method wrapper for double cv::detail::BlocksChannelsCompensator::getSimilarityThreshold()
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_gain ⇒ Bool Also known as: getUpdateGain
method wrapper for bool cv::detail::BlocksChannelsCompensator::getUpdateGain()
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
wrapper for overloaded method set_block_size
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
method wrapper for void cv::detail::BlocksChannelsCompensator::setMatGains(const std::vectorcv::Mat umv)
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
method wrapper for void cv::detail::BlocksChannelsCompensator::setNrFeeds(int nr_feeds)
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
method wrapper for void cv::detail::BlocksChannelsCompensator::setNrGainsFilteringIterations(int nr_iterations)
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
method wrapper for void cv::detail::BlocksChannelsCompensator::setSimilarityThreshold(double similarity_threshold)
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
method wrapper for void cv::detail::BlocksChannelsCompensator::setUpdateGain(bool b)
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_s ⇒ Object
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 |