Class: OpenCV::Cv::TonemapMantiuk
- Inherits:
-
Object
- Object
- OpenCV::Cv::TonemapMantiuk
- 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_default_name ⇒ Std::String (also: #getDefaultName)
- #get_gamma ⇒ Float (also: #getGamma)
- #get_saturation ⇒ Float (also: #getSaturation)
-
#get_scale ⇒ Float
(also: #getScale)
methods.
- #process(src, dst) ⇒ Void
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
- #set_gamma(gamma) ⇒ Void (also: #setGamma)
- #set_saturation(saturation) ⇒ Void (also: #setSaturation)
- #set_scale(scale) ⇒ Void (also: #setScale)
-
#to_s ⇒ Object
converts TonemapMantiuk into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.new(*args) ⇒ Object
28886 28887 28888 28889 28890 28891 28892 28893 |
# File 'lib/ropencv/ropencv_types.rb', line 28886 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(TonemapMantiukStruct) 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
28882 28883 28884 |
# File 'lib/ropencv/ropencv_types.rb', line 28882 def self.null new(TonemapMantiukStruct.new) end |
Instance Method Details
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::TonemapMantiuk::castToAlgorithm(bool parse_ownership)
29045 29046 29047 29048 29049 29050 29051 29052 29053 |
# File 'lib/ropencv/ropencv_types.rb', line 29045 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_tonemap_mantiuk_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::TonemapMantiuk::castToTonemap(bool parse_ownership)
29005 29006 29007 29008 29009 29010 29011 29012 29013 |
# File 'lib/ropencv/ropencv_types.rb', line 29005 def cast_to_tonemap(parse_ownership) __validate_pointer__ result = Rbind::cv_tonemap_mantiuk_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::TonemapMantiuk::clear()
29058 29059 29060 29061 |
# File 'lib/ropencv/ropencv_types.rb', line 29058 def clear() __validate_pointer__ Rbind::cv_tonemap_mantiuk_clear( self) end |
#empty ⇒ Bool
method wrapper for bool cv::TonemapMantiuk::empty()
29082 29083 29084 29085 |
# File 'lib/ropencv/ropencv_types.rb', line 29082 def empty() __validate_pointer__ Rbind::cv_tonemap_mantiuk_empty( self) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::TonemapMantiuk::getDefaultName()
29097 29098 29099 29100 29101 29102 29103 29104 29105 |
# File 'lib/ropencv/ropencv_types.rb', line 29097 def get_default_name() __validate_pointer__ result = Rbind::cv_tonemap_mantiuk_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::TonemapMantiuk::getGamma()
29027 29028 29029 29030 |
# File 'lib/ropencv/ropencv_types.rb', line 29027 def get_gamma() __validate_pointer__ Rbind::cv_tonemap_mantiuk_get_gamma( self) end |
#get_saturation ⇒ Float Also known as: getSaturation
method wrapper for float cv::TonemapMantiuk::getSaturation()
28987 28988 28989 28990 |
# File 'lib/ropencv/ropencv_types.rb', line 28987 def get_saturation() __validate_pointer__ Rbind::cv_tonemap_mantiuk_get_saturation( self) end |
#get_scale ⇒ Float Also known as: getScale
method wrapper for float cv::TonemapMantiuk::getScale()
methods
28970 28971 28972 28973 |
# File 'lib/ropencv/ropencv_types.rb', line 28970 def get_scale() __validate_pointer__ Rbind::cv_tonemap_mantiuk_get_scale( self) end |
#process(src, dst) ⇒ Void
method wrapper for void cv::TonemapMantiuk::process(const cv::Mat src, cv::Mat& dst)
29020 29021 29022 29023 |
# File 'lib/ropencv/ropencv_types.rb', line 29020 def process(src, dst) __validate_pointer__ Rbind::cv_tonemap_mantiuk_process( self, src, dst) end |
#read(fn) ⇒ Void
method wrapper for void cv::TonemapMantiuk::read(const cv::FileNode fn)
29075 29076 29077 29078 |
# File 'lib/ropencv/ropencv_types.rb', line 29075 def read(fn) __validate_pointer__ Rbind::cv_tonemap_mantiuk_read( self, fn) end |
#save(filename) ⇒ Void
method wrapper for void cv::TonemapMantiuk::save(const std::string filename)
29090 29091 29092 29093 |
# File 'lib/ropencv/ropencv_types.rb', line 29090 def save(filename) __validate_pointer__ Rbind::cv_tonemap_mantiuk_save( self, filename) end |
#set_gamma(gamma) ⇒ Void Also known as: setGamma
method wrapper for void cv::TonemapMantiuk::setGamma(float gamma)
29036 29037 29038 29039 |
# File 'lib/ropencv/ropencv_types.rb', line 29036 def set_gamma(gamma) __validate_pointer__ Rbind::cv_tonemap_mantiuk_set_gamma( self, gamma) end |
#set_saturation(saturation) ⇒ Void Also known as: setSaturation
method wrapper for void cv::TonemapMantiuk::setSaturation(float saturation)
28996 28997 28998 28999 |
# File 'lib/ropencv/ropencv_types.rb', line 28996 def set_saturation(saturation) __validate_pointer__ Rbind::cv_tonemap_mantiuk_set_saturation( self, saturation) end |
#set_scale(scale) ⇒ Void Also known as: setScale
method wrapper for void cv::TonemapMantiuk::setScale(float scale)
28979 28980 28981 28982 |
# File 'lib/ropencv/ropencv_types.rb', line 28979 def set_scale(scale) __validate_pointer__ Rbind::cv_tonemap_mantiuk_set_scale( self, scale) end |
#to_s ⇒ Object
converts TonemapMantiuk into a string by crawling through all its attributes
28959 28960 28961 |
# File 'lib/ropencv/ropencv_types.rb', line 28959 def to_s "#<cv::TonemapMantiuk >" end |
#write(fs, name = Std::String.new()) ⇒ Void
method wrapper for void cv::TonemapMantiuk::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
29067 29068 29069 29070 |
# File 'lib/ropencv/ropencv_types.rb', line 29067 def write(fs, name = Std::String.new()) __validate_pointer__ Rbind::cv_tonemap_mantiuk_write( self, fs, name) end |