Method: OpenCV::CvERTrees#initialize

Defined in:
lib/ruby/ropencv/ropencv_types.rb

#initialize(ptr) ⇒ CvERTrees

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CvERTrees.



20975
20976
20977
20978
20979
20980
20981
# File 'lib/ruby/ropencv/ropencv_types.rb', line 20975

def initialize(ptr)
    @__obj_ptr__ = if ptr.is_a? CvERTreesStruct
                       ptr
                   else
                       CvERTreesStruct.new(FFI::AutoPointer.new(ptr,CvERTreesStruct.method(:release)))
                   end
end