@Namespace(value="cv") @Properties(inherit=opencv_core.class) public class Algorithm extends 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
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Algorithm() |
Algorithm(long size)
Native array allocator.
|
Algorithm(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.
|
BytePointer |
getDefaultName()
Returns the algorithm string identifier.
|
Algorithm |
position(long position) |
void |
read(FileNode fn)
\brief Reads algorithm parameters from a file storage
|
void |
save(BytePointer filename)
Saves the algorithm to a file.
|
void |
save(String filename) |
void |
write(FileStorage fs)
\brief Stores algorithm parameters in a file storage
|
void |
write(FileStorage fs,
BytePointer name)
\brief simplified API for language bindings
\overload
|
void |
write(FileStorage fs,
String name) |
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, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public Algorithm(Pointer p)
Pointer.Pointer(Pointer)
.public Algorithm(long size)
Pointer.position(long)
.public Algorithm()
public void clear()
public void write(@ByRef FileStorage fs)
public void write(@opencv_core.Ptr FileStorage fs, @opencv_core.Str BytePointer name)
public void write(@opencv_core.Ptr FileStorage fs, @opencv_core.Str String name)
public void read(@Const @ByRef FileNode fn)
@Cast(value="bool") public boolean empty()
public void save(@opencv_core.Str BytePointer filename)
public void save(@opencv_core.Str String filename)
@opencv_core.Str public BytePointer getDefaultName()
Copyright © 2020. All rights reserved.