Skip to content

ximgproc_AdaptiveManifoldFilter

Extended image processingclassOpenCV 5.0.0
import { ximgproc_AdaptiveManifoldFilter } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSximgproc_AdaptiveManifoldFilter
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits Algorithm.

Interface for Adaptive Manifold Filter realizations.

For more details about this filter see [Gastal12] and References_.

Below listed optional parameters which may be set up with Algorithm::set function.

  • member double sigma_s = 16.0 Spatial standard deviation.
  • member double sigma_r = 0.2 Color space standard deviation.
  • member int tree_height = -1 Height of the manifold tree (default = -1 : automatically computed).
  • member int num_pca_iterations = 1 Number of iterations to computed the eigenvector.
  • member bool adjust_outliers = false Specify adjust outliers using Eq. 9 or not.
  • member bool use_RNG = true Specify use random number generator to compute eigenvector or not.

Constructors and members

static create

Create an owned ximgproc_AdaptiveManifoldFilter instance with the supplied configuration.

Interface for Adaptive Manifold Filter realizations.

create(): ximgproc_AdaptiveManifoldFilter | null;
Returns

The ximgproc_AdaptiveManifoldFilter | null result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

filter

Apply high-dimensional filtering using adaptive manifolds.

filter(src: Mat, dst: Mat, joint: Mat): void;
2 available overloads
filter(src: Mat, dst: Mat): void;
filter(src: Mat, dst: Mat, joint: Mat): void;
src

filtering image with any numbers of channels.

dst

Output destination, filled by the native operation. output image.

joint

optional joint (also called as guided) image with any numbers of channels.

collectGarbage

Release temporary buffers retained by the adaptive manifold filter.

collectGarbage(): void;

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.