Class: OpenCV::Cv::Tonemap
- Inherits:
-
Object
- Object
- OpenCV::Cv::Tonemap
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::Tonemap (also: castFromAlgorithm)
- .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)
- #clear ⇒ Void
- #empty ⇒ Bool
- #get_default_name ⇒ Std::String (also: #getDefaultName)
- #get_gamma ⇒ Float (also: #getGamma)
-
#process(src, dst) ⇒ Void
methods.
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
- #set_gamma(gamma) ⇒ Void (also: #setGamma)
-
#to_s ⇒ Object
converts Tonemap into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::Tonemap Also known as: castFromAlgorithm
wrapper for static method cv::Tonemap* cv::Tonemap::castFromAlgorithm(cv::Algorithm* ptr, bool parse_ownership)
27216 27217 27218 |
# File 'lib/ropencv/ropencv_types.rb', line 27216 def self.cast_from_algorithm(ptr, parse_ownership) Rbind::cv_tonemap_cast_from_algorithm(ptr, parse_ownership) end |
.new(*args) ⇒ Object
27090 27091 27092 27093 27094 27095 27096 27097 |
# File 'lib/ropencv/ropencv_types.rb', line 27090 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(TonemapStruct) 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
27086 27087 27088 |
# File 'lib/ropencv/ropencv_types.rb', line 27086 def self.null new(TonemapStruct.new) end |
Instance Method Details
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::Tonemap::castToAlgorithm(bool parse_ownership)
27201 27202 27203 27204 27205 27206 27207 27208 27209 |
# File 'lib/ropencv/ropencv_types.rb', line 27201 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_tonemap_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 |
#clear ⇒ Void
method wrapper for void cv::Tonemap::clear()
27223 27224 27225 27226 |
# File 'lib/ropencv/ropencv_types.rb', line 27223 def clear() __validate_pointer__ Rbind::cv_tonemap_clear( self) end |
#empty ⇒ Bool
method wrapper for bool cv::Tonemap::empty()
27247 27248 27249 27250 |
# File 'lib/ropencv/ropencv_types.rb', line 27247 def empty() __validate_pointer__ Rbind::cv_tonemap_empty( self) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::Tonemap::getDefaultName()
27262 27263 27264 27265 27266 27267 27268 27269 27270 |
# File 'lib/ropencv/ropencv_types.rb', line 27262 def get_default_name() __validate_pointer__ result = Rbind::cv_tonemap_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::Tonemap::getGamma()
27183 27184 27185 27186 |
# File 'lib/ropencv/ropencv_types.rb', line 27183 def get_gamma() __validate_pointer__ Rbind::cv_tonemap_get_gamma( self) end |
#process(src, dst) ⇒ Void
method wrapper for void cv::Tonemap::process(const cv::Mat src, cv::Mat& dst)
methods
27176 27177 27178 27179 |
# File 'lib/ropencv/ropencv_types.rb', line 27176 def process(src, dst) __validate_pointer__ Rbind::cv_tonemap_process( self, src, dst) end |
#read(fn) ⇒ Void
method wrapper for void cv::Tonemap::read(const cv::FileNode fn)
27240 27241 27242 27243 |
# File 'lib/ropencv/ropencv_types.rb', line 27240 def read(fn) __validate_pointer__ Rbind::cv_tonemap_read( self, fn) end |
#save(filename) ⇒ Void
method wrapper for void cv::Tonemap::save(const std::string filename)
27255 27256 27257 27258 |
# File 'lib/ropencv/ropencv_types.rb', line 27255 def save(filename) __validate_pointer__ Rbind::cv_tonemap_save( self, filename) end |
#set_gamma(gamma) ⇒ Void Also known as: setGamma
method wrapper for void cv::Tonemap::setGamma(float gamma)
27192 27193 27194 27195 |
# File 'lib/ropencv/ropencv_types.rb', line 27192 def set_gamma(gamma) __validate_pointer__ Rbind::cv_tonemap_set_gamma( self, gamma) end |
#to_s ⇒ Object
converts Tonemap into a string by crawling through all its attributes
27163 27164 27165 |
# File 'lib/ropencv/ropencv_types.rb', line 27163 def to_s "#<cv::Tonemap >" end |
#write(fs, name = Std::String.new()) ⇒ Void
method wrapper for void cv::Tonemap::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
27232 27233 27234 27235 |
# File 'lib/ropencv/ropencv_types.rb', line 27232 def write(fs, name = Std::String.new()) __validate_pointer__ Rbind::cv_tonemap_write( self, fs, name) end |