Class: OpenCV::Cv::TonemapReinhard
- Inherits:
-
Object
- Object
- OpenCV::Cv::TonemapReinhard
- 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_color_adaptation ⇒ Float (also: #getColorAdaptation)
- #get_default_name ⇒ Std::String (also: #getDefaultName)
- #get_gamma ⇒ Float (also: #getGamma)
-
#get_intensity ⇒ Float
(also: #getIntensity)
methods.
- #get_light_adaptation ⇒ Float (also: #getLightAdaptation)
- #process(src, dst) ⇒ Void
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
- #set_color_adaptation(color_adapt) ⇒ Void (also: #setColorAdaptation)
- #set_gamma(gamma) ⇒ Void (also: #setGamma)
- #set_intensity(intensity) ⇒ Void (also: #setIntensity)
- #set_light_adaptation(light_adapt) ⇒ Void (also: #setLightAdaptation)
-
#to_s ⇒ Object
converts TonemapReinhard into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.new(*args) ⇒ Object
28343 28344 28345 28346 28347 28348 28349 28350 |
# File 'lib/ropencv/ropencv_types.rb', line 28343 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(TonemapReinhardStruct) 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
28339 28340 28341 |
# File 'lib/ropencv/ropencv_types.rb', line 28339 def self.null new(TonemapReinhardStruct.new) end |
Instance Method Details
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::TonemapReinhard::castToAlgorithm(bool parse_ownership)
28519 28520 28521 28522 28523 28524 28525 28526 28527 |
# File 'lib/ropencv/ropencv_types.rb', line 28519 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_tonemap_reinhard_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::TonemapReinhard::castToTonemap(bool parse_ownership)
28479 28480 28481 28482 28483 28484 28485 28486 28487 |
# File 'lib/ropencv/ropencv_types.rb', line 28479 def cast_to_tonemap(parse_ownership) __validate_pointer__ result = Rbind::cv_tonemap_reinhard_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::TonemapReinhard::clear()
28532 28533 28534 28535 |
# File 'lib/ropencv/ropencv_types.rb', line 28532 def clear() __validate_pointer__ Rbind::cv_tonemap_reinhard_clear( self) end |
#empty ⇒ Bool
method wrapper for bool cv::TonemapReinhard::empty()
28556 28557 28558 28559 |
# File 'lib/ropencv/ropencv_types.rb', line 28556 def empty() __validate_pointer__ Rbind::cv_tonemap_reinhard_empty( self) end |
#get_color_adaptation ⇒ Float Also known as: getColorAdaptation
method wrapper for float cv::TonemapReinhard::getColorAdaptation()
28461 28462 28463 28464 |
# File 'lib/ropencv/ropencv_types.rb', line 28461 def get_color_adaptation() __validate_pointer__ Rbind::cv_tonemap_reinhard_get_color_adaptation( self) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::TonemapReinhard::getDefaultName()
28571 28572 28573 28574 28575 28576 28577 28578 28579 |
# File 'lib/ropencv/ropencv_types.rb', line 28571 def get_default_name() __validate_pointer__ result = Rbind::cv_tonemap_reinhard_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::TonemapReinhard::getGamma()
28501 28502 28503 28504 |
# File 'lib/ropencv/ropencv_types.rb', line 28501 def get_gamma() __validate_pointer__ Rbind::cv_tonemap_reinhard_get_gamma( self) end |
#get_intensity ⇒ Float Also known as: getIntensity
method wrapper for float cv::TonemapReinhard::getIntensity()
methods
28427 28428 28429 28430 |
# File 'lib/ropencv/ropencv_types.rb', line 28427 def get_intensity() __validate_pointer__ Rbind::cv_tonemap_reinhard_get_intensity( self) end |
#get_light_adaptation ⇒ Float Also known as: getLightAdaptation
method wrapper for float cv::TonemapReinhard::getLightAdaptation()
28444 28445 28446 28447 |
# File 'lib/ropencv/ropencv_types.rb', line 28444 def get_light_adaptation() __validate_pointer__ Rbind::cv_tonemap_reinhard_get_light_adaptation( self) end |
#process(src, dst) ⇒ Void
method wrapper for void cv::TonemapReinhard::process(const cv::Mat src, cv::Mat& dst)
28494 28495 28496 28497 |
# File 'lib/ropencv/ropencv_types.rb', line 28494 def process(src, dst) __validate_pointer__ Rbind::cv_tonemap_reinhard_process( self, src, dst) end |
#read(fn) ⇒ Void
method wrapper for void cv::TonemapReinhard::read(const cv::FileNode fn)
28549 28550 28551 28552 |
# File 'lib/ropencv/ropencv_types.rb', line 28549 def read(fn) __validate_pointer__ Rbind::cv_tonemap_reinhard_read( self, fn) end |
#save(filename) ⇒ Void
method wrapper for void cv::TonemapReinhard::save(const std::string filename)
28564 28565 28566 28567 |
# File 'lib/ropencv/ropencv_types.rb', line 28564 def save(filename) __validate_pointer__ Rbind::cv_tonemap_reinhard_save( self, filename) end |
#set_color_adaptation(color_adapt) ⇒ Void Also known as: setColorAdaptation
method wrapper for void cv::TonemapReinhard::setColorAdaptation(float color_adapt)
28470 28471 28472 28473 |
# File 'lib/ropencv/ropencv_types.rb', line 28470 def set_color_adaptation(color_adapt) __validate_pointer__ Rbind::cv_tonemap_reinhard_set_color_adaptation( self, color_adapt) end |
#set_gamma(gamma) ⇒ Void Also known as: setGamma
method wrapper for void cv::TonemapReinhard::setGamma(float gamma)
28510 28511 28512 28513 |
# File 'lib/ropencv/ropencv_types.rb', line 28510 def set_gamma(gamma) __validate_pointer__ Rbind::cv_tonemap_reinhard_set_gamma( self, gamma) end |
#set_intensity(intensity) ⇒ Void Also known as: setIntensity
method wrapper for void cv::TonemapReinhard::setIntensity(float intensity)
28436 28437 28438 28439 |
# File 'lib/ropencv/ropencv_types.rb', line 28436 def set_intensity(intensity) __validate_pointer__ Rbind::cv_tonemap_reinhard_set_intensity( self, intensity) end |
#set_light_adaptation(light_adapt) ⇒ Void Also known as: setLightAdaptation
method wrapper for void cv::TonemapReinhard::setLightAdaptation(float light_adapt)
28453 28454 28455 28456 |
# File 'lib/ropencv/ropencv_types.rb', line 28453 def set_light_adaptation(light_adapt) __validate_pointer__ Rbind::cv_tonemap_reinhard_set_light_adaptation( self, light_adapt) end |
#to_s ⇒ Object
converts TonemapReinhard into a string by crawling through all its attributes
28416 28417 28418 |
# File 'lib/ropencv/ropencv_types.rb', line 28416 def to_s "#<cv::TonemapReinhard >" end |
#write(fs, name = Std::String.new()) ⇒ Void
method wrapper for void cv::TonemapReinhard::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
28541 28542 28543 28544 |
# File 'lib/ropencv/ropencv_types.rb', line 28541 def write(fs, name = Std::String.new()) __validate_pointer__ Rbind::cv_tonemap_reinhard_write( self, fs, name) end |