Click or drag to resize
DISOpticalFlow Class
DIS optical flow algorithm. This class implements the Dense Inverse Search(DIS) optical flow algorithm.Includes three presets with preselected parameters to provide reasonable trade-off between speed and quality.However, even the slowest preset is still relatively fast, use DeepFlow if you need better quality and don't care about speed. More details about the algorithm can be found at: Till Kroeger, Radu Timofte, Dengxin Dai, and Luc Van Gool. Fast optical flow using dense inverse search. In Proceedings of the European Conference on Computer Vision (ECCV), 2016.
Inheritance Hierarchy

Namespace: Emgu.CV
Assembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: (
public class DISOpticalFlow : UnmanagedObject, 
	IDenseOpticalFlow, IAlgorithm

The DISOpticalFlow type exposes the following members.

Public methodDISOpticalFlow
Create an instance of DIS optical flow algorithm.
Public propertyAlgorithmPtr
Pointer to cv::Algorithm
Public propertyDenseOpticalFlowPtr
Pointer to native cv::DenseOpticalFlow
Public propertyFinestScale
Finest level of the Gaussian pyramid on which the flow is computed (zero level corresponds to the original image resolution). The final flow is obtained by bilinear upscaling.
Public propertyGradientDescentIterations
Maximum number of gradient descent iterations in the patch inverse search stage. Higher values may improve quality in some cases.
Public propertyPatchSize
Size of an image patch for matching (in pixels). Normally, default 8x8 patches work well enough in most cases.
Public propertyPatchStride
Stride between neighbor patches. Must be less than patch size. Lower values correspond to higher flow quality.
Public propertyPtr
Pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Public propertyUseMeanNormalization
Whether to use mean-normalization of patches when computing patch distance. It is turned on by default as it typically provides a noticeable quality boost because of increased robustness to illumination variations. Turn it off if you are certain that your sequence doesn't contain any changes in illumination.
Public propertyUseSpatialPropagation
Whether to use spatial propagation of good optical flow vectors. This option is turned on by default, as it tends to work better on average and can sometimes help recover from major errors introduced by the coarse-to-fine scheme employed by the DIS optical flow algorithm. Turning this option off can make the output flow field a bit smoother, however.
Public propertyVariationalRefinementAlpha
Weight of the smoothness term
Public propertyVariationalRefinementDelta
Weight of the color constancy term
Public propertyVariationalRefinementGamma
Weight of the gradient constancy term
Public propertyVariationalRefinementIterations
Number of fixed point iterations of variational refinement per scale. Set to zero to disable variational refinement completely. Higher values will typically result in more smooth and high-quality flow.
Public methodDispose
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)
Protected methodDisposeObject
Release the unmanaged memory associated with this Optical flow algorithm.
(Overrides DisposableObjectDisposeObject.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
(Inherited from DisposableObject.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodReleaseManagedResources
Release the managed resources. This function will be called during the disposal of the current object. override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.)
Public methodToString (Inherited from Object.)
Protected field_ptr
A pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Extension Methods
Public Extension MethodCalc
Calculates an optical flow.
(Defined by DenseOpticalFlowExtensions.)
Public Extension MethodRead
Reads algorithm parameters from a file storage.
(Defined by AlgorithmExtensions.)
Public Extension MethodWrite
Stores algorithm parameters in a file storage
(Defined by AlgorithmExtensions.)
See Also