Class: OpenCV::CvBoostParams

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)


44227
44228
44229
44230
44231
44232
44233
44234
# File 'lib/ropencv/ropencv_types.rb', line 44227

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CvBoostParamsStruct)
        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



44223
44224
44225
# File 'lib/ropencv/ropencv_types.rb', line 44223

def self.null
    new(CvBoostParamsStruct.new)
end

Instance Method Details

#boost_typeFixnum Also known as: get_boost_type

Note:

method wrapper for int boost_type

methods

Returns:

  • (Fixnum)


44311
44312
44313
44314
# File 'lib/ropencv/ropencv_types.rb', line 44311

def boost_type()
    __validate_pointer__
    Rbind::cv_boost_params_get_boost_type( self)
end

#boost_type=(value) ⇒ Void Also known as: set_boost_type

Note:

method wrapper for int boost_type

Parameters:

  • value (Fixnum)

Returns:

  • (Void)


44320
44321
44322
44323
# File 'lib/ropencv/ropencv_types.rb', line 44320

def boost_type=(value)
    __validate_pointer__
    Rbind::cv_boost_params_set_boost_type( self, value)
end

#split_criteriaFixnum Also known as: get_split_criteria

Note:

method wrapper for int split_criteria

Returns:

  • (Fixnum)


44345
44346
44347
44348
# File 'lib/ropencv/ropencv_types.rb', line 44345

def split_criteria()
    __validate_pointer__
    Rbind::cv_boost_params_get_split_criteria( self)
end

#split_criteria=(value) ⇒ Void Also known as: set_split_criteria

Note:

method wrapper for int split_criteria

Parameters:

  • value (Fixnum)

Returns:

  • (Void)


44354
44355
44356
44357
# File 'lib/ropencv/ropencv_types.rb', line 44354

def split_criteria=(value)
    __validate_pointer__
    Rbind::cv_boost_params_set_split_criteria( self, value)
end

#to_sObject

converts CvBoostParams into a string by crawling through all its attributes



44300
44301
44302
# File 'lib/ropencv/ropencv_types.rb', line 44300

def to_s
    "#<CvBoostParams boost_type=#{self.boost_type} weak_count=#{self.weak_count} split_criteria=#{self.split_criteria} weight_trim_rate=#{self.weight_trim_rate}>"
end

#weak_countFixnum Also known as: get_weak_count

Note:

method wrapper for int weak_count

Returns:

  • (Fixnum)


44328
44329
44330
44331
# File 'lib/ropencv/ropencv_types.rb', line 44328

def weak_count()
    __validate_pointer__
    Rbind::cv_boost_params_get_weak_count( self)
end

#weak_count=(value) ⇒ Void Also known as: set_weak_count

Note:

method wrapper for int weak_count

Parameters:

  • value (Fixnum)

Returns:

  • (Void)


44337
44338
44339
44340
# File 'lib/ropencv/ropencv_types.rb', line 44337

def weak_count=(value)
    __validate_pointer__
    Rbind::cv_boost_params_set_weak_count( self, value)
end

#weight_trim_rateDouble Also known as: get_weight_trim_rate

Note:

method wrapper for double weight_trim_rate

Returns:

  • (Double)


44362
44363
44364
44365
# File 'lib/ropencv/ropencv_types.rb', line 44362

def weight_trim_rate()
    __validate_pointer__
    Rbind::cv_boost_params_get_weight_trim_rate( self)
end

#weight_trim_rate=(value) ⇒ Void Also known as: set_weight_trim_rate

Note:

method wrapper for double weight_trim_rate

Parameters:

  • value (Double)

Returns:

  • (Void)


44371
44372
44373
44374
# File 'lib/ropencv/ropencv_types.rb', line 44371

def weight_trim_rate=(value)
    __validate_pointer__
    Rbind::cv_boost_params_set_weight_trim_rate( self, value)
end