@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 |
---|---|
Algorithm |
asAlgorithm() |
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 |
getPointer(long i) |
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)
\overload
|
void |
write(FileStorage fs,
String name) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Algorithm(Pointer p)
Pointer(Pointer)
.public Algorithm(long size)
Pointer.position(long)
.public Algorithm()
public Algorithm getPointer(long i)
getPointer
in class Pointer
public Algorithm asAlgorithm()
public void clear()
public void write(FileStorage fs)
public void write(FileStorage fs, BytePointer name)
public void write(FileStorage fs, String name)
public void read(FileNode fn)
public boolean empty()
public void save(BytePointer filename)
public void save(String filename)
public BytePointer getDefaultName()
Copyright © 2024. All rights reserved.