OpenCV / media functions

This page is generated automatically from the interpreter function registry and grouped by practical use.

Page map

Image / stack information 12

CV.CHANNELS

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.CHANNELS(image)

Number of channels in the image or stack frames.

Minimal example

value = CV.CHANNELS(image)

CV.FPS

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.FPS(image)

FPS associated with the video stack.

Minimal example

value = CV.FPS(image)

CV.FRAME

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.FRAME(stack,index)

Extracts a stack frame as a single image.

Minimal example

value = CV.FRAME(stack,index)

CV.FRAMES

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.FRAMES(image)

Number of frames in the stack, or 1 for a single image.

Minimal example

value = CV.FRAMES(image)

CV.HEIGHT

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.HEIGHT(image)

Height of an image or stack.

Minimal example

value = CV.HEIGHT(image)

CV.IS_EMPTY

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.IS_EMPTY(value)

Returns TRUE for NULL, empty media, invalid arrays or empty strings.

Minimal example

ASSERT NOT CV.IS_EMPTY(img), "empty media"

CV.IS_IMAGE

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.IS_IMAGE(value)

Returns TRUE when value is a non-empty single image object.

Minimal example

IF CV.IS_IMAGE(img) THEN
    GUI.SHOW img
ENDIF

CV.IS_STACK

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.IS_STACK(value)

Returns TRUE when value is a non-empty stack object. Non-media values simply return FALSE.

Minimal example

IF CV.IS_STACK(media) THEN
    PRINT STACK.FRAMES(media)
ENDIF

CV.IS_VALID

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.IS_VALID(value)

Returns TRUE when value is a non-empty image or stack object. Useful after IO.TRY_LOAD.

Minimal example

IO.TRY_LOAD "missing.png" AS img
IF NOT CV.IS_VALID(img) THEN
    PRINT IO.LAST_ERROR()
ENDIF

CV.PIXEL

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.PIXEL(media, x, y [, channel [, frame]])

Returns one pixel sample as a number. Channel and frame default to zero.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
channelZero-based channel index; some commands accept -1 for grayscale/all channels.
frameZero-based frame index; some stack commands accept -1 for all frames.

Minimal example

v = CV.PIXEL(img, 120, 80)
vb = CV.PIXEL(colorImg, 120, 80, 0)

CV.TYPE

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.TYPE(value)

Returns NUMBER, BOOL, STRING, IMAGE, STACK, ARRAY or NULL.

Minimal example

value = CV.TYPE(value)

CV.WIDTH

FUNCTIONCVBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Image / stack information   Namespace: CV

CV.WIDTH(image)

Width of an image or stack.

Minimal example

value = CV.WIDTH(image)

Stack / frame functions 5

STACK.FPS

FUNCTIONSTACKBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Stack / frame functions   Namespace: STACK

STACK.FPS(image)

FPS associated with the video stack.

Minimal example

value = STACK.FPS(image)

STACK.FRAME

FUNCTIONSTACKBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Stack / frame functions   Namespace: STACK

STACK.FRAME(stack,index)

Extracts a stack frame as a single image.

Minimal example

value = STACK.FRAME(stack,index)

STACK.FRAMES

FUNCTIONSTACKBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Stack / frame functions   Namespace: STACK

STACK.FRAMES(image)

Number of frames in the stack, or 1 for a single image.

Minimal example

value = STACK.FRAMES(image)

STACK.MEAN_SIGNAL

FUNCTIONSTACKBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Stack / frame functions   Namespace: STACK

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.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
modeMode selector; accepted values are described in the command text.

Minimal example

signal = STACK.MEAN_SIGNAL(st, "GRAY")

STACK.PIXEL_SERIES

FUNCTIONSTACKBATCH-FRIENDLYIMAGESTACK / VIDEO
Kind: Function   Category: Stack / frame functions   Namespace: STACK

STACK.PIXEL_SERIES(stack, x, y [, channel])

Returns the temporal series of one pixel/channel as a numeric array.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
channelZero-based channel index; some commands accept -1 for grayscale/all channels.

Minimal example

s = STACK.PIXEL_SERIES(st, 120, 80, 0)
p = DPLOT.CREATE("Pixel series")
DPLOT.ADDY p, "p(120,80)", s

Image statistics 13

CV.CDF_ARRAY

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

CV.CDF_ARRAY(media [, bins [, channel [, minValue [, maxValue]]]])

Returns a normalized cumulative distribution array from the image/stack histogram.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
binsNumber of histogram bins.
channelZero-based channel index; some commands accept -1 for grayscale/all channels.
minValueLower numeric range limit.
maxValueUpper numeric range limit.

Minimal example

cdf = CV.CDF_ARRAY(img, 256)

CV.COUNT_NONZERO

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

CV.COUNT_NONZERO(mask)

Compatibility alias for COUNT_NONZERO / MASK.COUNT.

Minimal example

n = CV.COUNT_NONZERO(mask)

CV.HIST_ARRAY

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

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.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
binsNumber of histogram bins.
channelZero-based channel index; some commands accept -1 for grayscale/all channels.
minValueLower numeric range limit.
maxValueUpper numeric range limit.

Minimal example

h = CV.HIST_ARRAY(img, 256)
p = DPLOT.CREATE("Histogram")
DPLOT.ADDY p, "gray", h

CV.LINE_PROFILE_ARRAY

FUNCTIONCVBATCH-FRIENDLYFILE I/OIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

CV.LINE_PROFILE_ARRAY image, x1, y1, x2, y2 [, channel]

Returns a bilinear sampled line profile array from the first frame. Channel -1 means grayscale.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
channelZero-based channel index; some commands accept -1 for grayscale/all channels.

Minimal example

line = CV.LINE_PROFILE_ARRAY(img, 10, 10, 200, 100)

CV.MAXVAL

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

CV.MAXVAL(media)

Maximum sample value across all pixels, channels, and frames.

Minimal example

value = CV.MAXVAL(media)

CV.MEAN

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

CV.MEAN(media)

Mean value across all pixels, channels, and frames.

Minimal example

value = CV.MEAN(media)

CV.MEAN_MASK

FUNCTIONCVBATCH-FRIENDLYIMAGEMASK
Kind: Function   Category: Image statistics   Namespace: CV

CV.MEAN_MASK(media,mask)

Masked mean of a media object using a binary mask or mask stack.

Minimal example

value = CV.MEAN_MASK(media,mask)

CV.MINVAL

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

CV.MINVAL(media)

Minimum sample value across all pixels, channels, and frames.

Minimal example

value = CV.MINVAL(media)

CV.NORM

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

CV.NORM(media)

Global L2 norm across all pixels, channels, and frames.

Minimal example

value = CV.NORM(media)

CV.PIXEL_ARRAY

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

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.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
frameZero-based frame index; some stack commands accept -1 for all frames.

Minimal example

px = CV.PIXEL_ARRAY(colorImg, 120, 80)

CV.PROFILE_ARRAY

FUNCTIONCVBATCH-FRIENDLYFILE I/OIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

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.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
channelZero-based channel index; some commands accept -1 for grayscale/all channels.

Minimal example

row = CV.PROFILE_ARRAY("H", img, 100)

CV.STDDEV

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

CV.STDDEV(media)

Standard deviation across all pixels, channels, and frames.

Minimal example

value = CV.STDDEV(media)

CV.SUM

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Image statistics   Namespace: CV

CV.SUM(media)

Sum of all pixels, channels, and frames.

Minimal example

value = CV.SUM(media)

Shape and connected-component metrics 17

CV.AREA

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.AREA(mask)

Counts foreground pixels in a binary mask; non-zero means foreground.

Minimal example

value = CV.AREA(mask)

CV.ASPECT_RATIO

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.ASPECT_RATIO(mask)

Bounding-box width/height ratio of the largest contour.

Minimal example

value = CV.ASPECT_RATIO(mask)

CV.BBOX_H

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.BBOX_H(mask)

Height of the largest contour bounding box.

Minimal example

h = CV.BBOX_H(mask)

CV.BBOX_W

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.BBOX_W(mask)

Width of the largest contour bounding box.

Minimal example

w = CV.BBOX_W(mask)

CV.BBOX_X

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.BBOX_X(mask)

X coordinate of the largest contour bounding box.

Minimal example

x = CV.BBOX_X(mask)

CV.BBOX_Y

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.BBOX_Y(mask)

Y coordinate of the largest contour bounding box.

Minimal example

y = CV.BBOX_Y(mask)

CV.CC_COUNT

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.CC_COUNT(mask)

Counts connected components in a binary mask; stacks are summed frame-by-frame.

Minimal example

value = CV.CC_COUNT(mask)

CV.CC_LARGEST_AREA

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.CC_LARGEST_AREA(mask)

Area in pixels of the largest connected component found across the media object.

Minimal example

value = CV.CC_LARGEST_AREA(mask)

CV.CENTROID_X

FUNCTIONCVBATCH-FRIENDLYIMAGEROI
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.CENTROID_X(mask)

X coordinate of the largest contour centroid.

Minimal example

cx = CV.CENTROID_X(mask)

CV.CENTROID_Y

FUNCTIONCVBATCH-FRIENDLYIMAGEROI
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.CENTROID_Y(mask)

Y coordinate of the largest contour centroid.

Minimal example

cy = CV.CENTROID_Y(mask)

CV.CIRCULARITY

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.CIRCULARITY(mask)

Circularity of the largest contour, computed as 4*pi*area / perimeter^2.

Minimal example

value = CV.CIRCULARITY(mask)

CV.CONTOUR_COUNT

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.CONTOUR_COUNT(mask)

Counts external contours in a binary mask; stacks are summed frame-by-frame.

Minimal example

value = CV.CONTOUR_COUNT(mask)

CV.CONTOUR_POINTS

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

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.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
contourIndexOptional parameter. If omitted, the command uses its internal default.

Minimal example

pts = CV.CONTOUR_POINTS(mask)
PRINT ARRAY.DIMSIZE(pts, 0), pts(0,0), pts(0,1)

CV.EXTENT

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.EXTENT(mask)

Largest contour area divided by its bounding-rectangle area.

Minimal example

value = CV.EXTENT(mask)

CV.LARGEST_CONTOUR_AREA

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.LARGEST_CONTOUR_AREA(mask)

Area in pixels of the largest external contour found across the media object.

Minimal example

value = CV.LARGEST_CONTOUR_AREA(mask)

CV.LARGEST_CONTOUR_PERIMETER

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.LARGEST_CONTOUR_PERIMETER(mask)

Perimeter of the largest external contour found across the media object.

Minimal example

value = CV.LARGEST_CONTOUR_PERIMETER(mask)

CV.PERIMETER

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Shape and connected-component metrics   Namespace: CV

CV.PERIMETER(mask)

Total contour perimeter of a binary mask across all frames.

Minimal example

value = CV.PERIMETER(mask)

Location functions 8

CV.MAXLOC_FRAME

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Location functions   Namespace: CV

CV.MAXLOC_FRAME(map)

Frame index where the maximum value is located.

Minimal example

value = CV.MAXLOC_FRAME(map)

CV.MAXLOC_VALUE

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Location functions   Namespace: CV

CV.MAXLOC_VALUE(map)

Maximum value in a single-channel map or map stack.

Minimal example

value = CV.MAXLOC_VALUE(map)

CV.MAXLOC_X

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Location functions   Namespace: CV

CV.MAXLOC_X(map)

X coordinate of the maximum value in a single-channel map or map stack.

Minimal example

value = CV.MAXLOC_X(map)

CV.MAXLOC_Y

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Location functions   Namespace: CV

CV.MAXLOC_Y(map)

Y coordinate of the maximum value in a single-channel map or map stack.

Minimal example

value = CV.MAXLOC_Y(map)

CV.MINLOC_FRAME

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Location functions   Namespace: CV

CV.MINLOC_FRAME(map)

Frame index where the minimum value is located.

Minimal example

value = CV.MINLOC_FRAME(map)

CV.MINLOC_VALUE

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Location functions   Namespace: CV

CV.MINLOC_VALUE(map)

Minimum value in a single-channel map or map stack.

Minimal example

value = CV.MINLOC_VALUE(map)

CV.MINLOC_X

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Location functions   Namespace: CV

CV.MINLOC_X(map)

X coordinate of the minimum value in a single-channel map or map stack.

Minimal example

value = CV.MINLOC_X(map)

CV.MINLOC_Y

FUNCTIONCVBATCH-FRIENDLYIMAGE
Kind: Function   Category: Location functions   Namespace: CV

CV.MINLOC_Y(map)

Y coordinate of the minimum value in a single-channel map or map stack.

Minimal example

value = CV.MINLOC_Y(map)

Desktop / GUI capture functions 1

CV.DESKTOP_IMAGE

FUNCTIONCVGUI / INTERACTIVEIMAGE
Kind: Function   Category: Desktop / GUI capture functions   Namespace: CV

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.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
windowTitleOptional parameter. If omitted, the command uses its internal default.

Minimal example

value = CV.DESKTOP_IMAGE([windowTitle])

OpenCV / media functions 22

COUNT_NONZERO

FUNCTIONBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: CORE

MASK.COUNT_NONZERO(mask)

Compatibility alias for COUNT_NONZERO / MASK.COUNT.

Minimal example

n = MASK.COUNT_NONZERO(mask)

DEMO.ADD

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.ADD(a, b)

Library: DemoStats user library 2.0.0 Returns a + b.

Minimal example

value = DEMO.ADD(a, b)

DEMO.ARGSINFO

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.ARGSINFO([args...])

Library: DemoStats user library 2.0.0 Returns a compact description of all received argument types.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
argsOptional parameter. If omitted, the command uses its internal default.

Minimal example

value = DEMO.ARGSINFO([args...])

DEMO.ARRAY_INFO

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

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.

Minimal example

value = DEMO.ARRAY_INFO(array)

DEMO.ARRAY_SCALE

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.ARRAY_SCALE(array, factor)

Library: DemoStats user library 2.0.0 Returns a numeric array with every element multiplied by factor.

Minimal example

value = DEMO.ARRAY_SCALE(array, factor)

DEMO.ARRAY_SUM

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.ARRAY_SUM(array)

Library: DemoStats user library 2.0.0 Returns the sum of all numeric array elements.

Minimal example

value = DEMO.ARRAY_SUM(array)

DEMO.CLAMP

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.CLAMP(x, lo, hi)

Library: DemoStats user library 2.0.0 Clamps x into the [lo, hi] range.

Minimal example

value = DEMO.CLAMP(x, lo, hi)

DEMO.IMAGE_INFO

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.IMAGE_INFO(image)

Library: DemoStats user library 2.0.0 Returns width, height, channels, depth, type and frame count for an image/stack.

Minimal example

value = DEMO.IMAGE_INFO(image)

DEMO.INVERT8

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

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.

Minimal example

value = DEMO.INVERT8(image)

DEMO.MAX

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.MAX(v1 [, v2 ...])

Library: DemoStats user library 2.0.0 Returns the maximum numeric argument.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
v2Optional parameter. If omitted, the command uses its internal default.

Minimal example

value = DEMO.MAX(v1 [, v2 ...])

DEMO.MEAN

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.MEAN(v1 [, v2 ...])

Library: DemoStats user library 2.0.0 Returns the arithmetic mean of all numeric arguments.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
v2Optional parameter. If omitted, the command uses its internal default.

Minimal example

value = DEMO.MEAN(v1 [, v2 ...])

DEMO.MIN

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.MIN(v1 [, v2 ...])

Library: DemoStats user library 2.0.0 Returns the minimum numeric argument.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
v2Optional parameter. If omitted, the command uses its internal default.

Minimal example

value = DEMO.MIN(v1 [, v2 ...])

DEMO.MUL

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.MUL(a, b [, ...])

Library: DemoStats user library 2.0.0 Returns the product of all numeric arguments.

Minimal example

value = DEMO.MUL(a, b [, ...])

DEMO.RAMP

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.RAMP(n)

Library: DemoStats user library 2.0.0 Returns a 1D numeric array containing 0..n-1.

Minimal example

value = DEMO.RAMP(n)

DEMO.REPEAT

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.REPEAT(text, count)

Library: DemoStats user library 2.0.0 Repeats text count times, capped at 1024 repetitions.

Minimal example

value = DEMO.REPEAT(text, count)

DEMO.STDDEV

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.STDDEV(v1, v2 [, ...])

Library: DemoStats user library 2.0.0 Returns the population standard deviation of the numeric arguments.

Minimal example

value = DEMO.STDDEV(v1, v2 [, ...])

DEMO.TYPEOF

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.TYPEOF(value)

Library: DemoStats user library 2.0.0 Returns the external SDK value type name of the argument.

Minimal example

value = DEMO.TYPEOF(value)

DEMO.UPPER

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.UPPER(text)

Library: DemoStats user library 2.0.0 Returns an upper-case copy of text.

Minimal example

value = DEMO.UPPER(text)

DEMO.VERSION

FUNCTIONDEMOBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: DEMO

DEMO.VERSION()

Library: DemoStats user library 2.0.0 Returns the library version string.

Minimal example

value = DEMO.VERSION()

SERIAL.ADD

FUNCTIONSERIALBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: SERIAL

SERIAL.ADD(a, b)

Library: Serial user library 1.0.0 Returns a + b.

Minimal example

value = SERIAL.ADD(a, b)

SERIAL.VERSION

FUNCTIONSERIALBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: SERIAL

SERIAL.VERSION()

Library: Serial user library 1.0.0 Returns the library version string.

Minimal example

value = SERIAL.VERSION()

VM.MAX_LEVELS

FUNCTIONVMBATCH-FRIENDLYIMAGE
Kind: Function   Category: OpenCV / media functions   Namespace: VM

VM.MAX_LEVELS(mediaOrWidth [, height])

Returns the maximum pyramid level count usable by EulerianVideoMagnifier for an image/stack or for width,height.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
heightOptional parameter. If omitted, the command uses its internal default.

Minimal example

maxL = VM.MAX_LEVELS(vid)
PRINT "max levels="; maxL