@Namespace(value="cv")
public static class opencv_core.Algorithm
extends org.bytedeco.javacpp.Pointer
especially for classes of algorithms, for which there can be multiple implementations. The examples are stereo correspondence (for which there are algorithms like block matching, semi-global block matching, graph-cut etc.), background subtraction (which can be done using mixture-of-gaussians models, codebook-based algorithm etc.), optical flow (block matching, Lucas-Kanade, Horn-Schunck etc.).
Here is example of SimpleBlobDetector use in your application via Algorithm interface: \snippet snippets/core_various.cpp Algorithm
| Constructor and Description |
|---|
Algorithm() |
Algorithm(long size)
Native array allocator.
|
Algorithm(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
\brief Clears the algorithm state
|
boolean |
empty()
\brief Returns true if the Algorithm is empty (e.g.
|
org.bytedeco.javacpp.BytePointer |
getDefaultName()
Returns the algorithm string identifier.
|
opencv_core.Algorithm |
position(long position) |
void |
read(opencv_core.FileNode fn)
\brief Reads algorithm parameters from a file storage
|
void |
save(org.bytedeco.javacpp.BytePointer filename)
Saves the algorithm to a file.
|
void |
save(String filename) |
void |
write(opencv_core.FileStorage fs)
\brief Stores algorithm parameters in a file storage
|
void |
write(opencv_core.FileStorage fs,
org.bytedeco.javacpp.BytePointer name)
\brief simplified API for language bindings
\overload
|
void |
write(opencv_core.FileStorage fs,
String name) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Algorithm(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public Algorithm(long size)
Pointer.position(long).public Algorithm()
public opencv_core.Algorithm position(long position)
position in class org.bytedeco.javacpp.Pointerpublic void clear()
public void write(@ByRef
opencv_core.FileStorage fs)
public void write(@opencv_core.Ptr opencv_core.FileStorage fs, @opencv_core.Str org.bytedeco.javacpp.BytePointer name)
public void write(@opencv_core.Ptr opencv_core.FileStorage fs, @opencv_core.Str String name)
public void read(@Const @ByRef
opencv_core.FileNode fn)
@Cast(value="bool") public boolean empty()
public void save(@opencv_core.Str org.bytedeco.javacpp.BytePointer filename)
public void save(@opencv_core.Str String filename)
@opencv_core.Str public org.bytedeco.javacpp.BytePointer getDefaultName()
Copyright © 2018. All rights reserved.