Class: OpenCV::Cv::TonemapDrago
- Inherits:
-
Object
- Object
- OpenCV::Cv::TonemapDrago
- 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
- #cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm (also: #castToAlgorithm)
- #cast_to_tonemap(parse_ownership) ⇒ Cv::Tonemap (also: #castToTonemap)
- #clear ⇒ Void
- #empty ⇒ Bool
- #get_bias ⇒ Float (also: #getBias)
- #get_default_name ⇒ Std::String (also: #getDefaultName)
- #get_gamma ⇒ Float (also: #getGamma)
-
#get_saturation ⇒ Float
(also: #getSaturation)
methods.
- #process(src, dst) ⇒ Void
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
- #set_bias(bias) ⇒ Void (also: #setBias)
- #set_gamma(gamma) ⇒ Void (also: #setGamma)
- #set_saturation(saturation) ⇒ Void (also: #setSaturation)
-
#to_s ⇒ Object
converts TonemapDrago into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.new(*args) ⇒ Object
27817 27818 27819 27820 27821 27822 27823 27824 |
# File 'lib/ropencv/ropencv_types.rb', line 27817 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(TonemapDragoStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
27813 27814 27815 |
# File 'lib/ropencv/ropencv_types.rb', line 27813 def self.null new(TonemapDragoStruct.new) end |
Instance Method Details
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::TonemapDrago::castToAlgorithm(bool parse_ownership)
27976 27977 27978 27979 27980 27981 27982 27983 27984 |
# File 'lib/ropencv/ropencv_types.rb', line 27976 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_tonemap_drago_cast_to_algorithm( 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_tonemap(parse_ownership) ⇒ Cv::Tonemap Also known as: castToTonemap
method wrapper for cv::Tonemap* cv::TonemapDrago::castToTonemap(bool parse_ownership)
27936 27937 27938 27939 27940 27941 27942 27943 27944 |
# File 'lib/ropencv/ropencv_types.rb', line 27936 def cast_to_tonemap(parse_ownership) __validate_pointer__ result = Rbind::cv_tonemap_drago_cast_to_tonemap( 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 |
#clear ⇒ Void
method wrapper for void cv::TonemapDrago::clear()
27989 27990 27991 27992 |
# File 'lib/ropencv/ropencv_types.rb', line 27989 def clear() __validate_pointer__ Rbind::cv_tonemap_drago_clear( self) end |
#empty ⇒ Bool
method wrapper for bool cv::TonemapDrago::empty()
28013 28014 28015 28016 |
# File 'lib/ropencv/ropencv_types.rb', line 28013 def empty() __validate_pointer__ Rbind::cv_tonemap_drago_empty( self) end |
#get_bias ⇒ Float Also known as: getBias
method wrapper for float cv::TonemapDrago::getBias()
27918 27919 27920 27921 |
# File 'lib/ropencv/ropencv_types.rb', line 27918 def get_bias() __validate_pointer__ Rbind::cv_tonemap_drago_get_bias( self) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::TonemapDrago::getDefaultName()
28028 28029 28030 28031 28032 28033 28034 28035 28036 |
# File 'lib/ropencv/ropencv_types.rb', line 28028 def get_default_name() __validate_pointer__ result = Rbind::cv_tonemap_drago_get_default_name( 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_gamma ⇒ Float Also known as: getGamma
method wrapper for float cv::TonemapDrago::getGamma()
27958 27959 27960 27961 |
# File 'lib/ropencv/ropencv_types.rb', line 27958 def get_gamma() __validate_pointer__ Rbind::cv_tonemap_drago_get_gamma( self) end |
#get_saturation ⇒ Float Also known as: getSaturation
method wrapper for float cv::TonemapDrago::getSaturation()
methods
27901 27902 27903 27904 |
# File 'lib/ropencv/ropencv_types.rb', line 27901 def get_saturation() __validate_pointer__ Rbind::cv_tonemap_drago_get_saturation( self) end |
#process(src, dst) ⇒ Void
method wrapper for void cv::TonemapDrago::process(const cv::Mat src, cv::Mat& dst)
27951 27952 27953 27954 |
# File 'lib/ropencv/ropencv_types.rb', line 27951 def process(src, dst) __validate_pointer__ Rbind::cv_tonemap_drago_process( self, src, dst) end |
#read(fn) ⇒ Void
method wrapper for void cv::TonemapDrago::read(const cv::FileNode fn)
28006 28007 28008 28009 |
# File 'lib/ropencv/ropencv_types.rb', line 28006 def read(fn) __validate_pointer__ Rbind::cv_tonemap_drago_read( self, fn) end |
#save(filename) ⇒ Void
method wrapper for void cv::TonemapDrago::save(const std::string filename)
28021 28022 28023 28024 |
# File 'lib/ropencv/ropencv_types.rb', line 28021 def save(filename) __validate_pointer__ Rbind::cv_tonemap_drago_save( self, filename) end |
#set_bias(bias) ⇒ Void Also known as: setBias
method wrapper for void cv::TonemapDrago::setBias(float bias)
27927 27928 27929 27930 |
# File 'lib/ropencv/ropencv_types.rb', line 27927 def set_bias(bias) __validate_pointer__ Rbind::cv_tonemap_drago_set_bias( self, bias) end |
#set_gamma(gamma) ⇒ Void Also known as: setGamma
method wrapper for void cv::TonemapDrago::setGamma(float gamma)
27967 27968 27969 27970 |
# File 'lib/ropencv/ropencv_types.rb', line 27967 def set_gamma(gamma) __validate_pointer__ Rbind::cv_tonemap_drago_set_gamma( self, gamma) end |
#set_saturation(saturation) ⇒ Void Also known as: setSaturation
method wrapper for void cv::TonemapDrago::setSaturation(float saturation)
27910 27911 27912 27913 |
# File 'lib/ropencv/ropencv_types.rb', line 27910 def set_saturation(saturation) __validate_pointer__ Rbind::cv_tonemap_drago_set_saturation( self, saturation) end |
#to_s ⇒ Object
converts TonemapDrago into a string by crawling through all its attributes
27890 27891 27892 |
# File 'lib/ropencv/ropencv_types.rb', line 27890 def to_s "#<cv::TonemapDrago >" end |
#write(fs, name = Std::String.new()) ⇒ Void
method wrapper for void cv::TonemapDrago::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
27998 27999 28000 28001 |
# File 'lib/ropencv/ropencv_types.rb', line 27998 def write(fs, name = Std::String.new()) __validate_pointer__ Rbind::cv_tonemap_drago_write( self, fs, name) end |