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