| Home | | | Quick start | | | Cookbook | | | All symbols | | | Analytical index | | | Namespaces | | | Syntax | | | Statements | | | CX | | | Frequency | | | Functions | | | Examples | | | Examples by command |
This page is generated automatically from the interpreter function registry and grouped by practical use.
CV.CHANNELS(image)
Number of channels in the image or stack frames.
value = CV.CHANNELS(image)CV.FPS(image)
FPS associated with the video stack.
value = CV.FPS(image)CV.FRAME(stack,index)
Extracts a stack frame as a single image.
value = CV.FRAME(stack,index)CV.FRAMES(image)
Number of frames in the stack, or 1 for a single image.
value = CV.FRAMES(image)CV.HEIGHT(image)
Height of an image or stack.
value = CV.HEIGHT(image)CV.IS_EMPTY(value)
Returns TRUE for NULL, empty media, invalid arrays or empty strings.
ASSERT NOT CV.IS_EMPTY(img), "empty media"CV.IS_IMAGE(value)
Returns TRUE when value is a non-empty single image object.
IF CV.IS_IMAGE(img) THEN
GUI.SHOW img
ENDIFCV.IS_STACK(value)
Returns TRUE when value is a non-empty stack object. Non-media values simply return FALSE.
IF CV.IS_STACK(media) THEN
PRINT STACK.FRAMES(media)
ENDIFCV.IS_VALID(value)
Returns TRUE when value is a non-empty image or stack object. Useful after IO.TRY_LOAD.
IO.TRY_LOAD "missing.png" AS img
IF NOT CV.IS_VALID(img) THEN
PRINT IO.LAST_ERROR()
ENDIFCV.PIXEL(media, x, y [, channel [, frame]])
Returns one pixel sample as a number. Channel and frame default to zero.
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 |
|---|---|
channel | Zero-based channel index; some commands accept -1 for grayscale/all channels. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
v = CV.PIXEL(img, 120, 80)
vb = CV.PIXEL(colorImg, 120, 80, 0)CV.TYPE(value)
Returns NUMBER, BOOL, STRING, IMAGE, STACK, ARRAY or NULL.
value = CV.TYPE(value)CV.WIDTH(image)
Width of an image or stack.
value = CV.WIDTH(image)STACK.FPS(image)
FPS associated with the video stack.
value = STACK.FPS(image)STACK.FRAME(stack,index)
Extracts a stack frame as a single image.
value = STACK.FRAME(stack,index)STACK.FRAMES(image)
Number of frames in the stack, or 1 for a single image.
value = STACK.FRAMES(image)STACK.MEAN_SIGNAL(stack [, mode])
Returns one temporal sample per frame, computed as frame mean. mode defaults to GRAY; also supports ALL, B, G, R and A.
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 |
|---|---|
mode | Mode selector; accepted values are described in the command text. |
signal = STACK.MEAN_SIGNAL(st, "GRAY")STACK.PIXEL_SERIES(stack, x, y [, channel])
Returns the temporal series of one pixel/channel as a numeric array.
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 |
|---|---|
channel | Zero-based channel index; some commands accept -1 for grayscale/all channels. |
s = STACK.PIXEL_SERIES(st, 120, 80, 0)
p = DPLOT.CREATE("Pixel series")
DPLOT.ADDY p, "p(120,80)", sCV.CDF_ARRAY(media [, bins [, channel [, minValue [, maxValue]]]])
Returns a normalized cumulative distribution array from the image/stack histogram.
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 |
|---|---|
bins | Number of histogram bins. |
channel | Zero-based channel index; some commands accept -1 for grayscale/all channels. |
minValue | Lower numeric range limit. |
maxValue | Upper numeric range limit. |
cdf = CV.CDF_ARRAY(img, 256)CV.COUNT_NONZERO(mask)
Compatibility alias for COUNT_NONZERO / MASK.COUNT.
n = CV.COUNT_NONZERO(mask)CV.HIST_ARRAY(media [, bins [, channel [, minValue [, maxValue]]]])
Returns a numeric array with histogram bin counts. If min/max are omitted, the range is detected from the media.
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 |
|---|---|
bins | Number of histogram bins. |
channel | Zero-based channel index; some commands accept -1 for grayscale/all channels. |
minValue | Lower numeric range limit. |
maxValue | Upper numeric range limit. |
h = CV.HIST_ARRAY(img, 256)
p = DPLOT.CREATE("Histogram")
DPLOT.ADDY p, "gray", hCV.LINE_PROFILE_ARRAY image, x1, y1, x2, y2 [, channel]
Returns a bilinear sampled line profile array from the first frame. Channel -1 means grayscale.
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 |
|---|---|
channel | Zero-based channel index; some commands accept -1 for grayscale/all channels. |
line = CV.LINE_PROFILE_ARRAY(img, 10, 10, 200, 100)CV.MAXVAL(media)
Maximum sample value across all pixels, channels, and frames.
value = CV.MAXVAL(media)CV.MEAN(media)
Mean value across all pixels, channels, and frames.
value = CV.MEAN(media)CV.MEAN_MASK(media,mask)
Masked mean of a media object using a binary mask or mask stack.
value = CV.MEAN_MASK(media,mask)CV.MINVAL(media)
Minimum sample value across all pixels, channels, and frames.
value = CV.MINVAL(media)CV.NORM(media)
Global L2 norm across all pixels, channels, and frames.
value = CV.NORM(media)CV.PIXEL_ARRAY(media, x, y [, frame])
Returns all channel samples of one pixel as a numeric array. For color images the order follows OpenCV/BGR.
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 |
|---|---|
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
px = CV.PIXEL_ARRAY(colorImg, 120, 80)CV.PROFILE_ARRAY mode, image, coord [, channel]
Returns a horizontal or vertical intensity profile array from the first frame. Modes: H/ROW or V/COLUMN. Channel -1 means grayscale.
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 |
|---|---|
channel | Zero-based channel index; some commands accept -1 for grayscale/all channels. |
row = CV.PROFILE_ARRAY("H", img, 100)CV.STDDEV(media)
Standard deviation across all pixels, channels, and frames.
value = CV.STDDEV(media)CV.SUM(media)
Sum of all pixels, channels, and frames.
value = CV.SUM(media)CV.AREA(mask)
Counts foreground pixels in a binary mask; non-zero means foreground.
value = CV.AREA(mask)CV.ASPECT_RATIO(mask)
Bounding-box width/height ratio of the largest contour.
value = CV.ASPECT_RATIO(mask)CV.BBOX_H(mask)
Height of the largest contour bounding box.
h = CV.BBOX_H(mask)CV.BBOX_W(mask)
Width of the largest contour bounding box.
w = CV.BBOX_W(mask)CV.BBOX_X(mask)
X coordinate of the largest contour bounding box.
x = CV.BBOX_X(mask)CV.BBOX_Y(mask)
Y coordinate of the largest contour bounding box.
y = CV.BBOX_Y(mask)CV.CC_COUNT(mask)
Counts connected components in a binary mask; stacks are summed frame-by-frame.
value = CV.CC_COUNT(mask)CV.CC_LARGEST_AREA(mask)
Area in pixels of the largest connected component found across the media object.
value = CV.CC_LARGEST_AREA(mask)CV.CENTROID_X(mask)
X coordinate of the largest contour centroid.
cx = CV.CENTROID_X(mask)CV.CENTROID_Y(mask)
Y coordinate of the largest contour centroid.
cy = CV.CENTROID_Y(mask)CV.CIRCULARITY(mask)
Circularity of the largest contour, computed as 4*pi*area / perimeter^2.
value = CV.CIRCULARITY(mask)CV.CONTOUR_COUNT(mask)
Counts external contours in a binary mask; stacks are summed frame-by-frame.
value = CV.CONTOUR_COUNT(mask)CV.CONTOUR_POINTS(mask [, contourIndex])
Returns an Nx2 numeric array with x,y contour coordinates from the first frame. External contours are sorted by descending area; contourIndex defaults to 0, while -1 concatenates all external contours.
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 |
|---|---|
contourIndex | Optional parameter. If omitted, the command uses its internal default. |
pts = CV.CONTOUR_POINTS(mask)
PRINT ARRAY.DIMSIZE(pts, 0), pts(0,0), pts(0,1)CV.EXTENT(mask)
Largest contour area divided by its bounding-rectangle area.
value = CV.EXTENT(mask)CV.LARGEST_CONTOUR_AREA(mask)
Area in pixels of the largest external contour found across the media object.
value = CV.LARGEST_CONTOUR_AREA(mask)CV.LARGEST_CONTOUR_PERIMETER(mask)
Perimeter of the largest external contour found across the media object.
value = CV.LARGEST_CONTOUR_PERIMETER(mask)CV.PERIMETER(mask)
Total contour perimeter of a binary mask across all frames.
value = CV.PERIMETER(mask)CV.MAXLOC_FRAME(map)
Frame index where the maximum value is located.
value = CV.MAXLOC_FRAME(map)CV.MAXLOC_VALUE(map)
Maximum value in a single-channel map or map stack.
value = CV.MAXLOC_VALUE(map)CV.MAXLOC_X(map)
X coordinate of the maximum value in a single-channel map or map stack.
value = CV.MAXLOC_X(map)CV.MAXLOC_Y(map)
Y coordinate of the maximum value in a single-channel map or map stack.
value = CV.MAXLOC_Y(map)CV.MINLOC_FRAME(map)
Frame index where the minimum value is located.
value = CV.MINLOC_FRAME(map)CV.MINLOC_VALUE(map)
Minimum value in a single-channel map or map stack.
value = CV.MINLOC_VALUE(map)CV.MINLOC_X(map)
X coordinate of the minimum value in a single-channel map or map stack.
value = CV.MINLOC_X(map)CV.MINLOC_Y(map)
Y coordinate of the minimum value in a single-channel map or map stack.
value = CV.MINLOC_Y(map)CV.DESKTOP_IMAGE([windowTitle])
Returns a single image taken from the GUI desktop. With a window title it reads that window; without arguments it uses the active MDI image window. For stack windows it returns the currently visible frame.
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 |
|---|---|
windowTitle | Optional parameter. If omitted, the command uses its internal default. |
value = CV.DESKTOP_IMAGE([windowTitle])MASK.COUNT_NONZERO(mask)
Compatibility alias for COUNT_NONZERO / MASK.COUNT.
n = MASK.COUNT_NONZERO(mask)DEMO.ADD(a, b)
Library: DemoStats user library 2.0.0 Returns a + b.
value = DEMO.ADD(a, b)DEMO.ARGSINFO([args...])
Library: DemoStats user library 2.0.0 Returns a compact description of all received argument types.
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 |
|---|---|
args | Optional parameter. If omitted, the command uses its internal default. |
value = DEMO.ARGSINFO([args...])DEMO.ARRAY_INFO(array)
Library: DemoStats user library 2.0.0 Returns shape and total size of a cvBasic array using SDK v2 array access.
value = DEMO.ARRAY_INFO(array)DEMO.ARRAY_SCALE(array, factor)
Library: DemoStats user library 2.0.0 Returns a numeric array with every element multiplied by factor.
value = DEMO.ARRAY_SCALE(array, factor)DEMO.ARRAY_SUM(array)
Library: DemoStats user library 2.0.0 Returns the sum of all numeric array elements.
value = DEMO.ARRAY_SUM(array)DEMO.CLAMP(x, lo, hi)
Library: DemoStats user library 2.0.0 Clamps x into the [lo, hi] range.
value = DEMO.CLAMP(x, lo, hi)DEMO.IMAGE_INFO(image)
Library: DemoStats user library 2.0.0 Returns width, height, channels, depth, type and frame count for an image/stack.
value = DEMO.IMAGE_INFO(image)DEMO.INVERT8(image)
Library: DemoStats user library 2.0.0 Returns an inverted copy of an 8-bit image using SDK v2 image view access.
value = DEMO.INVERT8(image)DEMO.MAX(v1 [, v2 ...])
Library: DemoStats user library 2.0.0 Returns the maximum numeric argument.
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 |
|---|---|
v2 | Optional parameter. If omitted, the command uses its internal default. |
value = DEMO.MAX(v1 [, v2 ...])DEMO.MEAN(v1 [, v2 ...])
Library: DemoStats user library 2.0.0 Returns the arithmetic mean of all numeric arguments.
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 |
|---|---|
v2 | Optional parameter. If omitted, the command uses its internal default. |
value = DEMO.MEAN(v1 [, v2 ...])DEMO.MIN(v1 [, v2 ...])
Library: DemoStats user library 2.0.0 Returns the minimum numeric argument.
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 |
|---|---|
v2 | Optional parameter. If omitted, the command uses its internal default. |
value = DEMO.MIN(v1 [, v2 ...])DEMO.MUL(a, b [, ...])
Library: DemoStats user library 2.0.0 Returns the product of all numeric arguments.
value = DEMO.MUL(a, b [, ...])DEMO.RAMP(n)
Library: DemoStats user library 2.0.0 Returns a 1D numeric array containing 0..n-1.
value = DEMO.RAMP(n)DEMO.REPEAT(text, count)
Library: DemoStats user library 2.0.0 Repeats text count times, capped at 1024 repetitions.
value = DEMO.REPEAT(text, count)DEMO.STDDEV(v1, v2 [, ...])
Library: DemoStats user library 2.0.0 Returns the population standard deviation of the numeric arguments.
value = DEMO.STDDEV(v1, v2 [, ...])DEMO.TYPEOF(value)
Library: DemoStats user library 2.0.0 Returns the external SDK value type name of the argument.
value = DEMO.TYPEOF(value)DEMO.UPPER(text)
Library: DemoStats user library 2.0.0 Returns an upper-case copy of text.
value = DEMO.UPPER(text)DEMO.VERSION()
Library: DemoStats user library 2.0.0 Returns the library version string.
value = DEMO.VERSION()SERIAL.ADD(a, b)
Library: Serial user library 1.0.0 Returns a + b.
value = SERIAL.ADD(a, b)SERIAL.VERSION()
Library: Serial user library 1.0.0 Returns the library version string.
value = SERIAL.VERSION()VM.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="; maxL