| Home | | | Quick start | | | Cookbook | | | All symbols | | | Analytical index | | | Namespaces | | | Syntax | | | Statements | | | CX | | | Frequency | | | Functions | | | Examples | | | Examples by command |
Symbols grouped by the VM namespace.
Symbols in this namespace: 5
| Symbol | Kind | Category | Description |
|---|---|---|---|
VM.COLOR | Command | Video magnification statements | Eulerian color magnification on an image stack/video. It amplifies subtle chromatic variations in the temporal band lowHz..highHz and returns a new stack. |
VM.LAPLACE | Command | Video magnification statements | Eulerian motion magnification using the Laplacian-pyramid path of EulerianVideoMagnifier. VM.MOTION is an alias with the same implementation. |
VM.MAX_LEVELS | Function | OpenCV / media functions | Returns the maximum pyramid level count usable by EulerianVideoMagnifier for an image/stack or for width,height. |
VM.MOTION | Command | Video magnification statements | Friendly alias of VM.LAPLACE for motion magnification. |
VM.RIESZ | Command | Video magnification statements | Eulerian phase/motion magnification using the Riesz-pyramid path. phaseThreshold is expressed as a percentage of pi in the underlying tested class. The 8th parameter is accepted as chromAttenuation/reserved for compatibility with VM.MOTION examples; the current Riesz path works on luminance and merges original chroma back. |
VM.COLOR stack, amplification, lowHz, highHz [, fps [, levels [, chromAttenuation [, grayscale]]]] AS dst
Eulerian color magnification on an image stack/video. It amplifies subtle chromatic variations in the temporal band lowHz..highHz and returns a new stack.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
fps | Optional parameter. If omitted, the command uses its internal default. |
levels | Number of pyramid levels used by the optical-flow algorithm. |
chromAttenuation | Optional parameter. If omitted, the command uses its internal default. |
grayscale | Optional parameter. If omitted, the command uses its internal default. |
IO.LOAD "input.avi" AS vid
fps = CV.FPS(vid)
VM.COLOR vid, 30.0, 0.7, 2.0, fps, 4, 0.1 AS vmColor
IO.WRITE_VIDEO vmColor, "vm_color.avi", fpsVM.LAPLACE stack, amplification, lowHz, highHz [, fps [, levels [, wavelength [, chromAttenuation [, grayscale]]]]] AS dst
Eulerian motion magnification using the Laplacian-pyramid path of EulerianVideoMagnifier. VM.MOTION is an alias with the same implementation.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
fps | Optional parameter. If omitted, the command uses its internal default. |
levels | Number of pyramid levels used by the optical-flow algorithm. |
wavelength | Optional parameter. If omitted, the command uses its internal default. |
chromAttenuation | Optional parameter. If omitted, the command uses its internal default. |
grayscale | Optional parameter. If omitted, the command uses its internal default. |
IO.LOAD "input.avi" AS vid
fps = CV.FPS(vid)
VM.LAPLACE vid, 15.0, 0.4, 1.5, fps, 4, 16.0, 0.1 AS vmMotion
IO.WRITE_VIDEO vmMotion, "vm_motion.avi", fpsVM.MAX_LEVELS(mediaOrWidth [, height])
Returns the maximum pyramid level count usable by EulerianVideoMagnifier for an image/stack or for width,height.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
height | Optional parameter. If omitted, the command uses its internal default. |
maxL = VM.MAX_LEVELS(vid)
PRINT "max levels="; maxLVM.MOTION stack, amplification, lowHz, highHz [, fps [, levels [, wavelength [, chromAttenuation [, grayscale]]]]] AS dst
Friendly alias of VM.LAPLACE for motion magnification.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
fps | Optional parameter. If omitted, the command uses its internal default. |
levels | Number of pyramid levels used by the optical-flow algorithm. |
wavelength | Optional parameter. If omitted, the command uses its internal default. |
chromAttenuation | Optional parameter. If omitted, the command uses its internal default. |
grayscale | Optional parameter. If omitted, the command uses its internal default. |
VM.MOTION vid, 12.0, 0.5, 2.0, CV.FPS(vid), 4, 16.0 AS motionOutVM.RIESZ stack, amplification, lowHz, highHz [, fps [, levels [, phaseThreshold [, chromAttenuation [, grayscale]]]]] AS dst
Eulerian phase/motion magnification using the Riesz-pyramid path. phaseThreshold is expressed as a percentage of pi in the underlying tested class. The 8th parameter is accepted as chromAttenuation/reserved for compatibility with VM.MOTION examples; the current Riesz path works on luminance and merges original chroma back.
Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.
| Parameter | Meaning |
|---|---|
fps | Optional parameter. If omitted, the command uses its internal default. |
levels | Number of pyramid levels used by the optical-flow algorithm. |
phaseThreshold | Optional parameter. If omitted, the command uses its internal default. |
chromAttenuation | Optional parameter. If omitted, the command uses its internal default. |
grayscale | Optional parameter. If omitted, the command uses its internal default. |
VM.RIESZ vid, 15.0, 0.4, 1.5, CV.FPS(vid), 4, 16.0, 0.1 AS rieszOut