@Namespace(value="cv::dnn") public static class opencv_dnn.LayerFactory extends Pointer
/** \brief %Layer factory allows to create instances of registered layers.
| Modifier and Type | Class and Description |
|---|---|
static class |
opencv_dnn.LayerFactory.Constuctor
Each Layer class must provide this function to the factory
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
LayerFactory(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static opencv_dnn.Layer |
createLayerInstance(BytePointer type,
opencv_dnn.LayerParams params)
\brief Creates instance of registered layer.
|
static opencv_dnn.Layer |
createLayerInstance(String type,
opencv_dnn.LayerParams params) |
static void |
registerLayer(BytePointer type,
opencv_dnn.LayerFactory.Constuctor constructor)
Registers the layer class with typename \p type and specified \p constructor.
|
static void |
registerLayer(String type,
opencv_dnn.LayerFactory.Constuctor constructor) |
static void |
unregisterLayer(BytePointer type)
Unregisters registered layer with specified type name.
|
static void |
unregisterLayer(String type) |
address, asBuffer, asByteBuffer, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic LayerFactory(Pointer p)
Pointer.Pointer(Pointer).public static void registerLayer(@opencv_core.Str BytePointer type, opencv_dnn.LayerFactory.Constuctor constructor)
public static void registerLayer(@opencv_core.Str String type, opencv_dnn.LayerFactory.Constuctor constructor)
public static void unregisterLayer(@opencv_core.Str BytePointer type)
public static void unregisterLayer(@opencv_core.Str String type)
@opencv_core.Ptr public static opencv_dnn.Layer createLayerInstance(@opencv_core.Str BytePointer type, @ByRef opencv_dnn.LayerParams params)
type - type name of creating layer.params - parameters which will be used for layer initialization.@opencv_core.Ptr public static opencv_dnn.Layer createLayerInstance(@opencv_core.Str String type, @ByRef opencv_dnn.LayerParams params)
Copyright © 2017. All rights reserved.