Method: OpenCV::PtrAlgorithm.rbind_to_native

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

.rbind_to_native(obj, context) ⇒ Object

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.



16049
16050
16051
16052
16053
16054
16055
# File 'lib/ruby/ropencv/ropencv_types.rb', line 16049

def self.rbind_to_native(obj,context)
    if obj.is_a? PtrAlgorithm
        obj.__obj_ptr__
    else
        raise TypeError, "expected kind of #{name}, was #{obj.class}"
    end
end