Method: OpenCV::PtrAlgorithm#initialize

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

#initialize(ptr) ⇒ PtrAlgorithm

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 PtrAlgorithm.



16078
16079
16080
16081
16082
16083
16084
# File 'lib/ruby/ropencv/ropencv_types.rb', line 16078

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