Class: OpenCV::Cv::Detail::GainCompensator
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::GainCompensator
- 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_exposure_compensator(parse_ownership) ⇒ Cv::Detail::ExposureCompensator (also: #castToExposureCompensator)
- #get_mat_gains(umv) ⇒ Void (also: #getMatGains)
- #get_nr_feeds ⇒ Fixnum (also: #getNrFeeds)
- #get_similarity_threshold ⇒ Double (also: #getSimilarityThreshold)
- #get_update_gain ⇒ Bool (also: #getUpdateGain)
- #set_mat_gains(umv) ⇒ Void (also: #setMatGains)
- #set_nr_feeds(nr_feeds) ⇒ Void (also: #setNrFeeds)
- #set_similarity_threshold(similarity_threshold) ⇒ Void (also: #setSimilarityThreshold)
- #set_update_gain(b) ⇒ Void (also: #setUpdateGain)
-
#to_s ⇒ Object
converts GainCompensator into a string by crawling through all its attributes.
Class Method Details
.gain_compensator ⇒ Object .gain_compensator(nr_feeds) ⇒ Object
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 |
.null ⇒ Object
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
method wrapper for void cv::detail::GainCompensator::apply(int index, const cv::Point corner, cv::Mat& image, const cv::Mat mask)
methods
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
method wrapper for cv::detail::ExposureCompensator* cv::detail::GainCompensator::castToExposureCompensator(bool parse_ownership)
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
method wrapper for void cv::detail::GainCompensator::getMatGains(std::vectorcv::Mat& umv)
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_feeds ⇒ Fixnum Also known as: getNrFeeds
method wrapper for int cv::detail::GainCompensator::getNrFeeds()
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_threshold ⇒ Double Also known as: getSimilarityThreshold
method wrapper for double cv::detail::GainCompensator::getSimilarityThreshold()
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_gain ⇒ Bool Also known as: getUpdateGain
method wrapper for bool cv::detail::GainCompensator::getUpdateGain()
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
method wrapper for void cv::detail::GainCompensator::setMatGains(const std::vectorcv::Mat umv)
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
method wrapper for void cv::detail::GainCompensator::setNrFeeds(int nr_feeds)
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
method wrapper for void cv::detail::GainCompensator::setSimilarityThreshold(double similarity_threshold)
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
method wrapper for void cv::detail::GainCompensator::setUpdateGain(bool b)
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_s ⇒ Object
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 |