@Namespace(value="cv::saliency") @NoOffset @Properties(inherit=opencv_saliency.class) public class StaticSaliencySpectralResidual extends StaticSaliency
Starting from the principle of natural image statistics, this method simulate the behavior of pre-attentive visual search. The algorithm analyze the log spectrum of each image and obtain the spectral residual. Then transform the spectral residual to spatial domain to obtain the saliency map, which suggests the positions of proto-objects.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
StaticSaliencySpectralResidual() |
StaticSaliencySpectralResidual(long size)
Native array allocator.
|
StaticSaliencySpectralResidual(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
computeSaliency(GpuMat image,
GpuMat saliencyMap) |
boolean |
computeSaliency(Mat image,
Mat saliencyMap)
\brief Compute the saliency
|
boolean |
computeSaliency(UMat image,
UMat saliencyMap) |
static StaticSaliencySpectralResidual |
create() |
int |
getImageHeight() |
int |
getImageWidth() |
StaticSaliencySpectralResidual |
position(long position) |
void |
read(FileNode fn)
\brief Reads algorithm parameters from a file storage
|
void |
setImageHeight(int val) |
void |
setImageWidth(int val) |
void |
write(FileStorage fs)
\brief Stores algorithm parameters in a file storage
|
computeBinaryMap, computeBinaryMap, computeBinaryMap
clear, empty, getDefaultName, save, save, write, write
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 StaticSaliencySpectralResidual(Pointer p)
Pointer.Pointer(Pointer)
.public StaticSaliencySpectralResidual(long size)
Pointer.position(long)
.public StaticSaliencySpectralResidual()
public StaticSaliencySpectralResidual position(long position)
@opencv_core.Ptr public static StaticSaliencySpectralResidual create()
@Cast(value="bool") public boolean computeSaliency(@ByVal Mat image, @ByVal Mat saliencyMap)
Saliency
computeSaliency
in class Saliency
image
- The image.saliencyMap
- The computed saliency map.@Cast(value="bool") public boolean computeSaliency(@ByVal UMat image, @ByVal UMat saliencyMap)
computeSaliency
in class Saliency
@Cast(value="bool") public boolean computeSaliency(@ByVal GpuMat image, @ByVal GpuMat saliencyMap)
computeSaliency
in class Saliency
public void read(@Const @ByRef FileNode fn)
Algorithm
public void write(@ByRef FileStorage fs)
Algorithm
public int getImageWidth()
public void setImageWidth(int val)
public int getImageHeight()
public void setImageHeight(int val)
Copyright © 2020. All rights reserved.