Class: OpenCV::Cv::TonemapMantiuk

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

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


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

Note:

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

Parameters:

  • parse_ownership (Bool)

Returns:



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

Note:

method wrapper for cv::Tonemap* cv::TonemapMantiuk::castToTonemap(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



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

Note:

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

Returns:

  • (Void)


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

Note:

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

Returns:

  • (Bool)


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

Note:

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

Returns:



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

Note:

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

Returns:

  • (Float)


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

Note:

method wrapper for float cv::TonemapMantiuk::getSaturation()

Returns:

  • (Float)


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

Note:

method wrapper for float cv::TonemapMantiuk::getScale()

methods

Returns:

  • (Float)


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

Note:

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

Parameters:

Returns:

  • (Void)


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

Note:

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

Parameters:

Returns:

  • (Void)


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

Note:

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

Parameters:

Returns:

  • (Void)


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

Note:

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

Parameters:

  • gamma (Float)

Returns:

  • (Void)


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

Note:

method wrapper for void cv::TonemapMantiuk::setSaturation(float saturation)

Parameters:

  • saturation (Float)

Returns:

  • (Void)


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

Note:

method wrapper for void cv::TonemapMantiuk::setScale(float scale)

Parameters:

  • scale (Float)

Returns:

  • (Void)


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

Note:

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

Parameters:

Returns:

  • (Void)


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