Show / Hide Table of Contents

Class DTFilter

Interface for realizations of Domain Transform filter.

Inheritance
System.Object
DisposableObject
DisposableCvObject
Algorithm
DTFilter
Implements
ICvPtrHolder
Inherited Members
Algorithm.Write(FileStorage)
Algorithm.Read(FileNode)
Algorithm.Empty
Algorithm.Save(String)
Algorithm.GetDefaultName()
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp.XImgProc
Assembly: OpenCvSharp.dll
Syntax
public class DTFilter : Algorithm, ICvPtrHolder

Constructors

| Improve this Doc View Source

DTFilter(IntPtr)

Creates instance by raw pointer

Declaration
protected DTFilter(IntPtr p)
Parameters
Type Name Description
IntPtr p

Methods

| Improve this Doc View Source

Create(InputArray, Double, Double, EdgeAwareFiltersList, Int32)

Factory method, create instance of DTFilter and produce initialization routines.

Declaration
public static DTFilter Create(InputArray guide, double sigmaSpatial, double sigmaColor, EdgeAwareFiltersList mode = EdgeAwareFiltersList.DTF_NC, int numIters = 3)
Parameters
Type Name Description
InputArray guide

guided image (used to build transformed distance, which describes edge structure of guided image).

System.Double sigmaSpatial

sigma_H parameter in the original article, it's similar to the sigma in the coordinate space into bilateralFilter.

System.Double sigmaColor

sigma_r parameter in the original article, it's similar to the sigma in the color space into bilateralFilter.

EdgeAwareFiltersList mode

one form three modes DTF_NC, DTF_RF and DTF_IC which corresponds to three modes for filtering 2D signals in the article.

System.Int32 numIters

optional number of iterations used for filtering, 3 is quite enough.

Returns
Type Description
DTFilter
| Improve this Doc View Source

DisposeManaged()

Releases managed resources

Declaration
protected override void DisposeManaged()
Overrides
DisposableObject.DisposeManaged()
| Improve this Doc View Source

DisposeUnmanaged()

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

Filter(InputArray, OutputArray, Int32)

Simple one-line Domain Transform filter call. If you have multiple images to filter with the same guided image then use DTFilter interface to avoid extra computations on initialization stage.

Declaration
public virtual void Filter(InputArray src, OutputArray dst, int dDepth = -1)
Parameters
Type Name Description
InputArray src
OutputArray dst
System.Int32 dDepth
| Improve this Doc View Source

Get()

Declaration
public override IntPtr Get()
Returns
Type Description
IntPtr

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX