Class: OpenCV::Cv::Tonemap

Inherits:
Object
  • Object
show all
Extended by:
FFI::DataConverter
Defined in:
lib/ropencv/ropencv_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::Tonemap Also known as: castFromAlgorithm

Note:

wrapper for static method cv::Tonemap* cv::Tonemap::castFromAlgorithm(cv::Algorithm* ptr, bool parse_ownership)

Parameters:

Returns:



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

Raises:

  • (ArgumentError)


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

.nullObject

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

Note:

method wrapper for cv::Algorithm* cv::Tonemap::castToAlgorithm(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



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

#clearVoid

Note:

method wrapper for void cv::Tonemap::clear()

Returns:

  • (Void)


27223
27224
27225
27226
# File 'lib/ropencv/ropencv_types.rb', line 27223

def clear()
    __validate_pointer__
    Rbind::cv_tonemap_clear( self)
end

#emptyBool

Note:

method wrapper for bool cv::Tonemap::empty()

Returns:

  • (Bool)


27247
27248
27249
27250
# File 'lib/ropencv/ropencv_types.rb', line 27247

def empty()
    __validate_pointer__
    Rbind::cv_tonemap_empty( self)
end

#get_default_nameStd::String Also known as: getDefaultName

Note:

method wrapper for const std::string cv::Tonemap::getDefaultName()

Returns:



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_gammaFloat Also known as: getGamma

Note:

method wrapper for float cv::Tonemap::getGamma()

Returns:

  • (Float)


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

Note:

method wrapper for void cv::Tonemap::process(const cv::Mat src, cv::Mat& dst)

methods

Parameters:

Returns:

  • (Void)


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

Note:

method wrapper for void cv::Tonemap::read(const cv::FileNode fn)

Parameters:

Returns:

  • (Void)


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

Note:

method wrapper for void cv::Tonemap::save(const std::string filename)

Parameters:

Returns:

  • (Void)


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

Note:

method wrapper for void cv::Tonemap::setGamma(float gamma)

Parameters:

  • gamma (Float)

Returns:

  • (Void)


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_sObject

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

Note:

method wrapper for void cv::Tonemap::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())

Parameters:

Returns:

  • (Void)


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