Class: OpenCV::Cv::Detail::BlocksGainCompensator
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::BlocksGainCompensator
- 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
methods.
- #cast_to_blocks_compensator(parse_ownership) ⇒ Cv::Detail::BlocksCompensator (also: #castToBlocksCompensator)
- #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 BlocksGainCompensator into a string by crawling through all its attributes.
Class Method Details
.blocks_gain_compensator(bl_width = 32, bl_height = 32) ⇒ Object .blocks_gain_compensator(bl_width, bl_height, nr_feeds) ⇒ Object
13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 |
# File 'lib/ropencv/ropencv_types.rb', line 13343 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(BlocksGainCompensatorStruct) 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::BlocksGainCompensator::BlocksGainCompensator(int bl_width = 32, int bl_height = 32) @@cv_detail_blocks_gain_compensator_blocks_gain_compensator_defaults0 ||= [32, 32] if(args.size >= 0 && args.size <= 2) targs = args.clone targs.size.upto(1) do |i| targs[i] = @@cv_detail_blocks_gain_compensator_blocks_gain_compensator_defaults0[i] end begin return Rbind::cv_detail_blocks_gain_compensator_blocks_gain_compensator(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::detail::BlocksGainCompensator::BlocksGainCompensator(int bl_width, int bl_height, int nr_feeds) @@cv_detail_blocks_gain_compensator_blocks_gain_compensator__2_defaults1 ||= [nil, nil, nil] if(args.size >= 3 && args.size <= 3) targs = args.clone targs.size.upto(2) do |i| targs[i] = @@cv_detail_blocks_gain_compensator_blocks_gain_compensator__2_defaults1[i] end begin return Rbind::cv_detail_blocks_gain_compensator_blocks_gain_compensator__2(*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
13331 13332 13333 |
# File 'lib/ropencv/ropencv_types.rb', line 13331 def self.null new(BlocksGainCompensatorStruct.new) end |
Instance Method Details
#apply(index, corner, image, mask) ⇒ Void
method wrapper for void cv::detail::BlocksGainCompensator::apply(int index, const cv::Point corner, cv::Mat& image, const cv::Mat mask)
methods
13458 13459 13460 13461 |
# File 'lib/ropencv/ropencv_types.rb', line 13458 def apply(index, corner, image, mask) __validate_pointer__ Rbind::cv_detail_blocks_gain_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::BlocksGainCompensator::castToBlocksCompensator(bool parse_ownership)
13484 13485 13486 13487 13488 13489 13490 13491 13492 |
# File 'lib/ropencv/ropencv_types.rb', line 13484 def cast_to_blocks_compensator(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_blocks_gain_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::BlocksGainCompensator::castToExposureCompensator(bool parse_ownership)
13604 13605 13606 13607 13608 13609 13610 13611 13612 |
# File 'lib/ropencv/ropencv_types.rb', line 13604 def cast_to_exposure_compensator(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_blocks_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_block_size ⇒ Cv::Size Also known as: getBlockSize
method wrapper for const cv::Size cv::detail::BlocksGainCompensator::getBlockSize()
13573 13574 13575 13576 13577 13578 13579 13580 13581 |
# File 'lib/ropencv/ropencv_types.rb', line 13573 def get_block_size() __validate_pointer__ result = Rbind::cv_detail_blocks_gain_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::BlocksGainCompensator::getMatGains(std::vectorcv::Mat& umv)
13466 13467 13468 13469 |
# File 'lib/ropencv/ropencv_types.rb', line 13466 def get_mat_gains(umv) __validate_pointer__ Rbind::cv_detail_blocks_gain_compensator_get_mat_gains( self, umv) end |
#get_nr_feeds ⇒ Fixnum Also known as: getNrFeeds
method wrapper for int cv::detail::BlocksGainCompensator::getNrFeeds()
13506 13507 13508 13509 |
# File 'lib/ropencv/ropencv_types.rb', line 13506 def get_nr_feeds() __validate_pointer__ Rbind::cv_detail_blocks_gain_compensator_get_nr_feeds( self) end |
#get_nr_gains_filtering_iterations ⇒ Fixnum Also known as: getNrGainsFilteringIterations
method wrapper for int cv::detail::BlocksGainCompensator::getNrGainsFilteringIterations()
13595 13596 13597 13598 |
# File 'lib/ropencv/ropencv_types.rb', line 13595 def get_nr_gains_filtering_iterations() __validate_pointer__ Rbind::cv_detail_blocks_gain_compensator_get_nr_gains_filtering_iterations( self) end |
#get_similarity_threshold ⇒ Double Also known as: getSimilarityThreshold
method wrapper for double cv::detail::BlocksGainCompensator::getSimilarityThreshold()
13523 13524 13525 13526 |
# File 'lib/ropencv/ropencv_types.rb', line 13523 def get_similarity_threshold() __validate_pointer__ Rbind::cv_detail_blocks_gain_compensator_get_similarity_threshold( self) end |
#get_update_gain ⇒ Bool Also known as: getUpdateGain
method wrapper for bool cv::detail::BlocksGainCompensator::getUpdateGain()
13626 13627 13628 13629 |
# File 'lib/ropencv/ropencv_types.rb', line 13626 def get_update_gain() __validate_pointer__ Rbind::cv_detail_blocks_gain_compensator_get_update_gain( self) end |
#set_block_size(width, height) ⇒ Void #set_block_size(size) ⇒ Void
wrapper for overloaded method set_block_size
13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 |
# File 'lib/ropencv/ropencv_types.rb', line 13538 def set_block_size(*args) __validate_pointer__ # overloaded method wrapper for void cv::detail::BlocksGainCompensator::setBlockSize(int width, int height) @@cv_detail_blocks_gain_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_gain_compensator_set_block_size_defaults0[i] end begin return Rbind::cv_detail_blocks_gain_compensator_set_block_size(self,*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for void cv::detail::BlocksGainCompensator::setBlockSize(const cv::Size size) @@cv_detail_blocks_gain_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_gain_compensator_set_block_size__2_defaults1[i] end begin return Rbind::cv_detail_blocks_gain_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::BlocksGainCompensator::setMatGains(const std::vectorcv::Mat umv)
13475 13476 13477 13478 |
# File 'lib/ropencv/ropencv_types.rb', line 13475 def set_mat_gains(umv) __validate_pointer__ Rbind::cv_detail_blocks_gain_compensator_set_mat_gains( self, umv) end |
#set_nr_feeds(nr_feeds) ⇒ Void Also known as: setNrFeeds
method wrapper for void cv::detail::BlocksGainCompensator::setNrFeeds(int nr_feeds)
13498 13499 13500 13501 |
# File 'lib/ropencv/ropencv_types.rb', line 13498 def set_nr_feeds(nr_feeds) __validate_pointer__ Rbind::cv_detail_blocks_gain_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::BlocksGainCompensator::setNrGainsFilteringIterations(int nr_iterations)
13587 13588 13589 13590 |
# File 'lib/ropencv/ropencv_types.rb', line 13587 def set_nr_gains_filtering_iterations(nr_iterations) __validate_pointer__ Rbind::cv_detail_blocks_gain_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::BlocksGainCompensator::setSimilarityThreshold(double similarity_threshold)
13515 13516 13517 13518 |
# File 'lib/ropencv/ropencv_types.rb', line 13515 def set_similarity_threshold(similarity_threshold) __validate_pointer__ Rbind::cv_detail_blocks_gain_compensator_set_similarity_threshold( self, similarity_threshold) end |
#set_update_gain(b) ⇒ Void Also known as: setUpdateGain
method wrapper for void cv::detail::BlocksGainCompensator::setUpdateGain(bool b)
13618 13619 13620 13621 |
# File 'lib/ropencv/ropencv_types.rb', line 13618 def set_update_gain(b) __validate_pointer__ Rbind::cv_detail_blocks_gain_compensator_set_update_gain( self, b) end |
#to_s ⇒ Object
converts BlocksGainCompensator into a string by crawling through all its attributes
13443 13444 13445 |
# File 'lib/ropencv/ropencv_types.rb', line 13443 def to_s "#<cv::detail::BlocksGainCompensator >" end |