| Home | | | Quick start | | | Cookbook | | | All symbols | | | Analytical index | | | Namespaces | | | Syntax | | | Statements | | | CX | | | Frequency | | | Functions | | | Examples | | | Examples by command |
Full automatically generated reference. Use the browser search command to jump to a symbol, namespace or keyword.
Total symbols: 953 Statements: 455 Functions: 459 Keywords: 39
| Symbol | Kind | Category | Description |
|---|---|---|---|
AND | Keyword | Language keywords | Logical AND operator. |
AP.ABS | Command | Arbitrary precision statements | Absolute value. |
AP.ADD | Command | Arbitrary precision statements | Adds AP operands and stores the result. |
AP.CBRT | Command | Arbitrary precision statements | Computes the cube root. |
AP.CEIL | Command | Arbitrary precision statements | Ceiling of an AP value. |
AP.CLEAR | Command | Arbitrary precision statements | Deletes all AP variables from the current runtime. |
AP.COMPARE | Function | Arbitrary precision functions | Compares two AP variables or literals. Returns -1, 0 or +1. |
AP.COPY | Command | Arbitrary precision statements | Copies an AP variable or numeric literal into another AP variable. |
AP.COS | Command | Arbitrary precision statements | Computes cosine. |
AP.COUNT | Function | Arbitrary precision functions | Returns how many AP variables are currently stored. |
AP.DELETE | Command | Arbitrary precision statements | Deletes one AP variable. |
AP.DIGITS | Function | Arbitrary precision functions | Returns the number of significant digits currently stored in the AP value. |
AP.DIV | Command | Arbitrary precision statements | Divides a by b using the given digit precision, or the current AP.PRECISION setting. |
AP.DOUBLE | Function | Arbitrary precision functions | Converts an AP value to a normal Basic double. This is an explicit lossy bridge back to ordinary expressions. |
AP.E | Command | Arbitrary precision statements | Stores Euler's number into an AP variable. |
AP.EVAL | Command | Arbitrary precision statements | Evaluates a compact arbitrary-precision expression inside the AP world. Supports AP variables, numeric literals, pi/e, + - * / ^, parentheses and functions such as sqrt, sin, cos, log, exp, pow, fact, gcd, mod. AP.LET is the friendly alias. |
AP.EXISTS | Function | Arbitrary precision functions | Returns TRUE if an AP variable exists. |
AP.EXP | Command | Arbitrary precision statements | Computes e^a. |
AP.EXPONENT | Function | Arbitrary precision functions | Returns the MAPM decimal exponent of the AP value. |
AP.FACT | Command | Arbitrary precision statements | Computes factorial for integer AP values. AP.FACTORIAL is the long alias. |
AP.FACTORIAL | Command | Arbitrary precision statements | Long alias of AP.FACT. |
AP.FIXED | Function | Arbitrary precision functions | Returns an AP value as fixed-point decimal text. |
AP.FLOOR | Command | Arbitrary precision statements | Floor of an AP value. |
AP.GCD | Command | Arbitrary precision statements | Greatest common divisor for integer AP values. |
AP.IDIV | Command | Arbitrary precision statements | Integer division quotient. |
AP.INTSTR | Function | Arbitrary precision functions | Returns the integer part as a string. |
AP.IPOW | Command | Arbitrary precision statements | Computes an integer exponent power. Useful for exact or near-exact high-precision power series tests. |
AP.LCM | Command | Arbitrary precision statements | Least common multiple for integer AP values. |
AP.LET | Command | Arbitrary precision statements | Alias of AP.EVAL, useful when the AP expression reads like an assignment into the AP variable table. |
AP.LOG | Command | Arbitrary precision statements | Computes the natural logarithm. |
AP.LOG10 | Command | Arbitrary precision statements | Computes the base-10 logarithm. |
AP.MOD | Command | Arbitrary precision statements | Integer remainder. |
AP.MUL | Command | Arbitrary precision statements | Multiplies AP operands and stores the result. |
AP.NEG | Command | Arbitrary precision statements | Changes sign of an AP value. |
AP.PI | Command | Arbitrary precision statements | Stores pi into an AP variable. |
AP.POW | Command | Arbitrary precision statements | Computes a raised to b with arbitrary precision. |
AP.PRECISION | Command | Arbitrary precision statements | Sets the global decimal digit precision used by AP arithmetic. AP variables live in a separate namespace and are not normal Basic numeric variables. |
AP.PRECISION_VALUE | Function | Arbitrary precision functions | Returns the current AP precision setting. |
AP.PROD | Command | Arbitrary precision statements | Evaluates an AP expression repeatedly while index is an AP integer variable, accumulating the product. |
AP.RANDOM | Command | Arbitrary precision statements | Stores a MAPM random value in [0,1). |
AP.ROUND | Command | Arbitrary precision statements | Rounds an AP value. |
AP.SET | Command | Arbitrary precision statements | Creates or replaces an arbitrary-precision variable. Prefer quoted numeric strings for exact decimal input; numeric Basic values already have double precision. |
AP.SIGN | Function | Arbitrary precision functions | Returns -1, 0 or +1 depending on the AP value sign. |
AP.SIN | Command | Arbitrary precision statements | Computes sine. |
AP.SQRT | Command | Arbitrary precision statements | Computes the square root. |
AP.STR | Function | Arbitrary precision functions | Returns an AP value as a string. In expressions, pass the AP variable name as a string, for example AP.STR("c", 80). |
AP.SUB | Command | Arbitrary precision statements | Subtracts b from a and stores the result. |
AP.SUM | Command | Arbitrary precision statements | Evaluates an AP expression repeatedly while index is an AP integer variable, accumulating the sum. The previous index variable is restored after the loop. |
AP.TAN | Command | Arbitrary precision statements | Computes tangent. |
AP.VERSION | Function | Arbitrary precision functions | Returns the underlying MAPM library version. |
ARRAY | Keyword | Language keywords | Logical type returned by TYPE(x) for arrays. |
ARRAY.COLUMN | Function | Array functions | Extracts one column from a 2D array and returns a 1D array. |
ARRAY.DIMS | Function | Array functions | Returns the number of dimensions. |
ARRAY.DIMSIZE | Function | Array functions | Returns the size of one zero-based dimension. |
ARRAY.EQUAL | Function | Array functions | Returns TRUE when two arrays have the same shape and equal values, with optional numeric tolerance. |
ARRAY.FROM_TEXT | Function | Array functions | Reads an array from ARRAY.TO_TEXT output or plain delimited rows. |
ARRAY.GET | Function | Array functions | Reads an array element. For vector-like 2D arrays n x 1 or 1 x n, one-index access is accepted: v[0] or ARRAY.GET(v,0). |
ARRAY.IS_ARRAY | Function | Array functions | Returns TRUE when the value is a script array. |
ARRAY.MAX | Function | Array functions | Returns the maximum numeric element. |
ARRAY.MEAN | Function | Array functions | Returns the mean of all numeric elements in the array. |
ARRAY.MIN | Function | Array functions | Returns the minimum numeric element. |
ARRAY.ROW | Function | Array functions | Extracts one row from a 2D array and returns a 1D array. |
ARRAY.SET | Function | Array functions | Writes an array element and returns the same array object. Vector-like 2D arrays n x 1 or 1 x n also accept one-index writes. |
ARRAY.SIZE | Function | Array functions | Returns the total number of elements. |
ARRAY.STDDEV | Function | Array functions | Returns the population standard deviation of all numeric elements. |
ARRAY.SUM | Function | Array functions | Returns the sum of all numeric elements in the array. |
ARRAY.TO_TEXT | Function | Array functions | Serializes a 1D/2D array to a compact CVB_ARRAY text block. |
AS | Keyword | Language keywords | Assigns the result of a command to a variable, or names the local return variable in FUNCTION ... AS result. |
ASSERT | Command | Diagnostics statements | Stops the script with a clear error if condition is false. Useful for diagnostic and regression scripts. |
CALL | Keyword | Language keywords | Executes a SUB block. Simple variable arguments are copied back after the call. |
CASE | Keyword | Language keywords | Introduces one SWITCH branch. Multiple comma-separated values are allowed. Numeric ranges and comparisons are supported. Only the first matching branch is executed. |
CATCH | Keyword | Language keywords | Handles a runtime error from the preceding TRY block. Optional variables receive the message and source line. |
COUNT_NONZERO | Function | OpenCV / media functions | Compatibility alias for COUNT_NONZERO / MASK.COUNT. |
CV.ABSDIFF | Command | Image arithmetic statements | Computes the absolute difference between two images or stacks. |
CV.ADAPTIVE_THRESHOLD | Command | Threshold and mask statements | Applies an adaptive threshold frame-by-frame. |
CV.ADD | Command | Image arithmetic statements | Adds two images or stacks. A single image can be broadcast across a stack. |
CV.ADDS | Command | Image arithmetic statements | Adds a scalar value to every pixel. |
CV.ADJUST_COLOR | Command | Analysis / flow statements | Applies brightness/contrast in BGR and hue/saturation in HSV; useful with GUI trackbars in live webcam demos. |
CV.AREA | Function | Shape and connected-component metrics | Counts foreground pixels in a binary mask; non-zero means foreground. |
CV.ASPECT_RATIO | Function | Shape and connected-component metrics | Bounding-box width/height ratio of the largest contour. |
CV.BBOX_H | Function | Shape and connected-component metrics | Height of the largest contour bounding box. |
CV.BBOX_W | Function | Shape and connected-component metrics | Width of the largest contour bounding box. |
CV.BBOX_X | Function | Shape and connected-component metrics | X coordinate of the largest contour bounding box. |
CV.BBOX_Y | Function | Shape and connected-component metrics | Y coordinate of the largest contour bounding box. |
CV.BG_SUBTRACT | Command | Analysis / flow statements | Applies MOG2 or KNN background subtraction to a video/stack and returns an 8-bit foreground-mask stack. method can be "MOG2" or "KNN". |
CV.BILATERAL | Command | Filtering / enhancement statements | Applies bilateral edge-preserving smoothing frame-by-frame. |
CV.BITAND | Command | Image arithmetic statements | Computes the bitwise AND of two images or stacks. A single-channel mask can be broadcast to match a multi-channel image when size and depth already match. |
CV.BITNOT | Command | Image arithmetic statements | Computes the bitwise NOT of the source image or stack. |
CV.BITOR | Command | Image arithmetic statements | Computes the bitwise OR of two images or stacks. A single-channel operand can be broadcast to match a multi-channel image when size and depth already match. |
CV.BITXOR | Command | Image arithmetic statements | Computes the bitwise XOR of two images or stacks. A single-channel operand can be broadcast to match a multi-channel image when size and depth already match. |
CV.BLACKHAT | Command | Morphology statements | Computes the black-hat transform frame-by-frame with selectable kernel shape. |
CV.BLUR | Command | Filtering / enhancement statements | Applies a simple blur frame-by-frame. |
CV.CAMSHIFT | Command | Analysis / flow statements | Tracks the ROI color model with HSV backprojection and OpenCV CamShift, returning both the bounding rect and rotated box geometry in the N x 11 rects table. The optional preview draws rect and rotated box. |
CV.CANNY | Command | Analysis / flow statements | Runs Canny edge detection frame-by-frame. |
CV.CANVAS | Command | Image creation / conversion statements | Creates a new 8-bit canvas image with 1 to 4 channels and a constant background value. |
CV.CC_COUNT | Function | Shape and connected-component metrics | Counts connected components in a binary mask; stacks are summed frame-by-frame. |
CV.CC_LARGEST_AREA | Function | Shape and connected-component metrics | Area in pixels of the largest connected component found across the media object. |
CV.CDF_ARRAY | Function | Image statistics | Returns a normalized cumulative distribution array from the image/stack histogram. |
CV.CENTROID_X | Function | Shape and connected-component metrics | X coordinate of the largest contour centroid. |
CV.CENTROID_Y | Function | Shape and connected-component metrics | Y coordinate of the largest contour centroid. |
CV.CHANNEL | Command | Image creation / conversion statements | Extracts one channel as a single-channel image or stack. |
CV.CHANNELS | Function | Image / stack information | Number of channels in the image or stack frames. |
CV.CIRCLE_MASK | Command | Threshold and mask statements | Creates a single-channel circular mask. |
CV.CIRCULARITY | Function | Shape and connected-component metrics | Circularity of the largest contour, computed as 4*pi*area / perimeter^2. |
CV.CLAHE | Command | Filtering / enhancement statements | Applies contrast-limited adaptive histogram equalization. On color images it works on the L channel in Lab. |
CV.CLONE | Command | Image creation / conversion statements | Duplicates the image or stack object. |
CV.COLOR | Command | Image creation / conversion statements | Converts between common color spaces such as BGR, HSV, Lab, and gray. |
CV.COMPARE | Command | Threshold and mask statements | Creates a mask by comparing pixels with a scalar value. Operators: >, >=, <, <=, ==, !=. |
CV.COMPLEX_CONJ | Command | Complex image statements | Computes the complex conjugate of a complex image by negating the imaginary channel. |
CV.COMPLEX_MAGNITUDE | Command | Complex image statements | Computes per-pixel magnitude sqrt(re^2 + im^2) from a complex image. |
CV.COMPLEX_PHASE | Command | Complex image statements | Computes per-pixel phase angle atan2(im,re), in radians, from a complex image. |
CV.CONNECTED_COMPONENTS | Command | Analysis / flow statements | Labels foreground connected components in a binary mask derived from non-zero pixels. |
CV.CONTOUR_COUNT | Function | Shape and connected-component metrics | Counts external contours in a binary mask; stacks are summed frame-by-frame. |
CV.CONTOUR_POINTS | Function | Shape and connected-component metrics | 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. |
CV.CONTOURS | Command | Analysis / flow statements | Extracts contours as numeric arrays. points columns: contourId, pointIndex, x, y. info columns: contourId, area, perimeter, x, y, w, h, pointCount. Modes: EXTERNAL, ALL/LIST, TREE, CCOMP. Approximation: SIMPLE or NONE. |
CV.CONVERT | Command | Image creation / conversion statements | Converts OpenCV depth with optional scale and offset. Depth tokens include 8U, 16U, 32F, 64F and SAME. |
CV.CORNER_SUBPIX | Command | Analysis / flow statements | Refines an Nx2 or Nx>=2 point array with OpenCV cornerSubPix and returns a refined Nx2 array. |
CV.COUNT_NONZERO | Function | Image statistics | Compatibility alias for COUNT_NONZERO / MASK.COUNT. |
CV.CROP | Command | Geometry / remap statements | Crops a ROI from the image or from all frames in the stack. |
CV.CROP_RECT | Command | Geometry / remap statements | Crops a half-open RECT geometry from an image or from every frame in a stack. rect can be returned by RECT.CREATE, RECT.FROM_TEXT, RECT.CLIP, RECT.INTERSECT or ROI.RECT. |
CV.DESKTOP_IMAGE | Function | Desktop / GUI capture functions | 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. |
CV.DETECT_OBJECTS | Command | Analysis / flow statements | Runs an OpenCV Haar/LBP cascade over an image or stack. rects columns: frameIndex, detectionIndex, x, y, w, h, score, classId. A sentinel row frameIndex=-1 means no detections. The optional preview draws rectangles. |
CV.DFT_COMPLEX | Command | Frequency / spectral statements | Computes a complex 2D DFT. A real single-channel input becomes CV_32FC2; a complex two-channel input is transformed as complex data. |
CV.DFT_MAGNITUDE | Command | Frequency / spectral statements | Computes a centered 2D DFT magnitude map from the grayscale source, normalized to 0..255 as 32F. |
CV.DFT_SHIFT | Command | Frequency / spectral statements | Circularly shifts a real or complex spectrum so the DC component is at the image center. Dimensions are preserved, including odd sizes. |
CV.DILATE | Command | Morphology statements | Applies morphological dilation frame-by-frame. shape can be ELLIPSE, RECT, or CROSS. The old numeric third parameter is still accepted as iterations. |
CV.DISTANCE | Command | Morphology statements | Computes the distance transform of a binary mask derived from non-zero pixels. |
CV.DISTANCE_TRANSFORM | Command | Morphology statements | Computes a distance transform from a binary/non-zero mask. distanceType can be L1, L2 or C; maskSize can be 0, 3 or 5. normalize=TRUE scales the map to 0..255 as 32F. |
CV.DIV | Command | Image arithmetic statements | Performs pixel-wise division between two images or stacks. |
CV.DIVS | Command | Image arithmetic statements | Divides every pixel/channel of an image or stack by a non-zero scalar. This is clearer than CV.MULS src, 1/scalar. |
CV.DRAW_BBOX | Command | Drawing statements | Draws the bounding box of the largest mask contour over the source image or stack. |
CV.DRAW_CONTOURS | Command | Drawing statements | Draws external contours extracted from a binary mask over the source image or stack. |
CV.DRAW_FLOW_ARROWS | Command | Analysis / flow statements | Draws optical-flow vectors as arrows over an image. The flow input must be generated by CV.FARNEBACK mode FLOW. Color uses OpenCV B,G,R order. |
CV.DRAW_MATCHES | Command | Analysis / flow statements | Matches ORB descriptors with a Hamming BFMatcher and draws the selected matches between two images. Kept for compatibility; use CV.MATCH_ORB + CV.DRAW_MATCHES_DATA when the match list must be reused. |
CV.DRAW_MATCHES_DATA | Command | Analysis / flow statements | Draws matches from a numeric matches/inliers array, useful after CV.FIND_HOMOGRAPHY RANSAC filtering. |
CV.EDGES | Command | Analysis / flow statements | Computes an edge map frame-by-frame. |
CV.EQUALIZE | Command | Filtering / enhancement statements | Equalizes the histogram frame-by-frame. |
CV.ERODE | Command | Morphology statements | Applies morphological erosion frame-by-frame. shape can be ELLIPSE, RECT, or CROSS. The old numeric third parameter is still accepted as iterations. |
CV.EXTENT | Function | Shape and connected-component metrics | Largest contour area divided by its bounding-rectangle area. |
CV.FARNEBACK | Command | Analysis / flow statements | Computes dense Farneback optical flow either between consecutive frames of a stack or between two images/two stacks, returning raw flow, magnitude, angle, or a color visualization. Uses robust defaults and the Gaussian Farneback window for more stable video results. |
CV.FILL_HOLES | Command | Threshold and mask statements | Fills internal holes of a binary mask derived from non-zero pixels. |
CV.FILTER2D | Command | Filtering / enhancement statements | Applies a custom 2D convolution kernel. Kernel rows are separated by semicolons; values by spaces or commas. |
CV.FIND_HOMOGRAPHY | Command | Analysis / flow statements | Estimates a 3x3 homography with RANSAC. H maps image-2/keypoints-2 coordinates onto image-1/keypoints-1 coordinates. inliers columns are queryIdx, trainIdx, distance, sourceMatchIndex. |
CV.FLIP | Command | Geometry / remap statements | Flips an image or every stack frame. Modes: H/X horizontal, V/Y vertical, BOTH/XY both axes, or numeric OpenCV flipCode -1/0/1. |
CV.FLOW_COLOR | Command | Analysis / flow statements | Converts a 2-channel CV.FARNEBACK FLOW map to a BGR color visualization: hue is direction and brightness is motion magnitude. |
CV.FPS | Function | Image / stack information | FPS associated with the video stack. |
CV.FRAME | Function | Image / stack information | Extracts a stack frame as a single image. |
CV.FRAMES | Function | Image / stack information | Number of frames in the stack, or 1 for a single image. |
CV.FREQ_BAND_PASS | Command | Frequency / spectral statements | Keeps a centered annular frequency band and rejects frequencies outside the selected radii. |
CV.FREQ_GAUSSIAN_HIGH_PASS | Command | Frequency / spectral statements | Applies a smooth Gaussian high-pass mask to a centered complex spectrum. |
CV.FREQ_GAUSSIAN_LOW_PASS | Command | Frequency / spectral statements | Applies a smooth Gaussian low-pass mask to a centered complex spectrum. |
CV.FREQ_HIGH_PASS | Command | Frequency / spectral statements | Applies an ideal circular high-pass mask to a centered complex spectrum. |
CV.FREQ_LOW_PASS | Command | Frequency / spectral statements | Applies an ideal circular low-pass mask to a centered complex spectrum. |
CV.FREQ_NOTCH | Command | Frequency / spectral statements | Suppresses a circular notch at the offset from the centered DC component. mirror=TRUE also suppresses the symmetric notch. |
CV.GAMMA | Command | Filtering / enhancement statements | Applies gamma correction frame-by-frame. |
CV.GAUSSIAN | Command | Filtering / enhancement statements | Applies a Gaussian blur frame-by-frame. |
CV.GOOD_FEATURES | Command | Analysis / flow statements | Draws Shi-Tomasi goodFeaturesToTrack points over an 8-bit BGR diagnostic image. |
CV.GOOD_FEATURES_POINTS | Command | Analysis / flow statements | Returns Shi-Tomasi corner coordinates as an Nx2 numeric array: x,y. This is the data-producing companion of CV.GOOD_FEATURES. |
CV.GRAY | Command | Image creation / conversion statements | Converts to grayscale; on stacks it operates frame-by-frame. |
CV.HARRIS | Command | Analysis / flow statements | Computes a normalized Harris corner response map. |
CV.HEIGHT | Function | Image / stack information | Height of an image or stack. |
CV.HIST_ARRAY | Function | Image statistics | Returns a numeric array with histogram bin counts. If min/max are omitted, the range is detected from the media. |
CV.HIST_BACKPROJECT | Command | Analysis / flow statements | Builds an HSV hue/saturation histogram from the ROI on the first frame, then returns a probability/backprojection map for the image or every frame of the stack. |
CV.HOG_DETECT_PEOPLE | Command | Analysis / flow statements | Runs OpenCV HOG people detection over an image or stack. rects columns: frameIndex, detectionIndex, x, y, w, h, score, classId. A sentinel row frameIndex=-1 means no detections. The optional preview draws rectangles. |
CV.HOUGH_CIRCLES | Command | Analysis / flow statements | Detects circular structures with HoughCircles and draws the result over a diagnostic image. |
CV.HOUGH_LINES | Command | Analysis / flow statements | Detects Hough lines from a Canny edge map and draws them over a diagnostic image. |
CV.IDFT_COMPLEX | Command | Frequency / spectral statements | Computes the inverse complex DFT with scaling. The output remains a complex image; split it to inspect real and imaginary residuals. |
CV.IDFT_SHIFT | Command | Frequency / spectral statements | Inverse circular shift for a spectrum previously centered with CV.DFT_SHIFT. |
CV.INPAINT | Command | Filtering / enhancement statements | Fills/restores masked pixels using OpenCV inpainting. method can be TELEA or NS; the source must be 8-bit single-channel or BGR. |
CV.INRANGE | Command | Threshold and mask statements | Segments pixels whose values fall inside a scalar range; the range is applied to all channels. |
CV.INRANGE_COLOR | Command | Threshold and mask statements | Creates a 3-channel scalar range mask, useful after HSV/Lab conversion. |
CV.INVERT | Command | Image creation / conversion statements | Inverts pixel intensity; on stacks it operates frame-by-frame. |
CV.IS_EMPTY | Function | Image / stack information | Returns TRUE for NULL, empty media, invalid arrays or empty strings. |
CV.IS_IMAGE | Function | Image / stack information | Returns TRUE when value is a non-empty single image object. |
CV.IS_STACK | Function | Image / stack information | Returns TRUE when value is a non-empty stack object. Non-media values simply return FALSE. |
CV.IS_VALID | Function | Image / stack information | Returns TRUE when value is a non-empty image or stack object. Useful after IO.TRY_LOAD. |
CV.KEEP_LARGEST | Command | Threshold and mask statements | Keeps only the largest connected foreground component of a binary mask. |
CV.KMEANS | Command | Analysis / flow statements | Quantizes an image or each frame of a stack with k-means clustering in channel space. |
CV.KMEANS_CENTERS | Command | Analysis / flow statements | Returns the k-means centers of the first frame as a numeric K x channels array. Channel order follows OpenCV, so color images are B,G,R. |
CV.LABELS_COLOR | Command | Analysis / flow statements | Converts a label image, or a binary mask converted to connected components, into a deterministic color visualization. |
CV.LAPLACIAN | Command | Analysis / flow statements | Computes the Laplacian frame-by-frame. |
CV.LARGEST_CONTOUR_AREA | Function | Shape and connected-component metrics | Area in pixels of the largest external contour found across the media object. |
CV.LARGEST_CONTOUR_PERIMETER | Function | Shape and connected-component metrics | Perimeter of the largest external contour found across the media object. |
CV.LINE_PROFILE_ARRAY | Function | Image statistics | Returns a bilinear sampled line profile array from the first frame. Channel -1 means grayscale. |
CV.MATCH_ORB | Command | Analysis / flow statements | Matches two ORB descriptor matrices with Hamming distance and cross-check. Output columns are queryIdx, trainIdx, distance, matchRank. |
CV.MATCH_TEMPLATE | Command | Analysis / flow statements | Computes an OpenCV template-matching response map. Source/template pairs may be broadcast across stacks. |
CV.MAXIMUM | Command | Image arithmetic statements | Computes the per-pixel maximum of two images or stacks. |
CV.MAXLOC_FRAME | Function | Location functions | Frame index where the maximum value is located. |
CV.MAXLOC_VALUE | Function | Location functions | Maximum value in a single-channel map or map stack. |
CV.MAXLOC_X | Function | Location functions | X coordinate of the maximum value in a single-channel map or map stack. |
CV.MAXLOC_Y | Function | Location functions | Y coordinate of the maximum value in a single-channel map or map stack. |
CV.MAXVAL | Function | Image statistics | Maximum sample value across all pixels, channels, and frames. |
CV.MEAN | Function | Image statistics | Mean value across all pixels, channels, and frames. |
CV.MEAN_MASK | Function | Image statistics | Masked mean of a media object using a binary mask or mask stack. |
CV.MEANSHIFT | Command | Analysis / flow statements | Tracks the ROI color model with HSV backprojection and OpenCV meanShift. rects is an N x 11 table: frame,x,y,w,h,cx,cy,boxW,boxH,angle,score/iterations. The optional preview draws the tracked window. |
CV.MEDIAN | Command | Filtering / enhancement statements | Applies a median filter frame-by-frame. |
CV.MERGE | Command | Image creation / conversion statements | Merges one to four single-channel images/stacks into a multi-channel result. |
CV.MERGE_COMPLEX | Command | Complex image statements | Merges two same-size single-channel images into a CV_32FC2 complex image: channel 0 is real, channel 1 is imaginary. |
CV.MINIMUM | Command | Image arithmetic statements | Computes the per-pixel minimum of two images or stacks. |
CV.MINLOC_FRAME | Function | Location functions | Frame index where the minimum value is located. |
CV.MINLOC_VALUE | Function | Location functions | Minimum value in a single-channel map or map stack. |
CV.MINLOC_X | Function | Location functions | X coordinate of the minimum value in a single-channel map or map stack. |
CV.MINLOC_Y | Function | Location functions | Y coordinate of the minimum value in a single-channel map or map stack. |
CV.MINVAL | Function | Image statistics | Minimum sample value across all pixels, channels, and frames. |
CV.MORPH_CLOSE | Command | Morphology statements | Applies morphological closing frame-by-frame with selectable kernel shape. |
CV.MORPH_EX | Command | Morphology statements | Applies a selectable morphological operation. operation: OPEN, CLOSE, GRADIENT, TOPHAT, BLACKHAT, ERODE, DILATE. kernelType: ELLIPSE, RECT, CROSS. |
CV.MORPH_GRADIENT | Command | Morphology statements | Computes a morphological gradient frame-by-frame with selectable kernel shape. |
CV.MORPH_OPEN | Command | Morphology statements | Applies morphological opening frame-by-frame with selectable kernel shape. |
CV.MUL | Command | Image arithmetic statements | Performs pixel-wise multiplication between two images or stacks. |
CV.MULS | Command | Image arithmetic statements | Multiplies every pixel by a scalar value. |
CV.NLMEANS | Command | Filtering / enhancement statements | Applies OpenCV fast non-local means denoising. Output is 8-bit grayscale/BGR. |
CV.NORM | Function | Image statistics | Global L2 norm across all pixels, channels, and frames. |
CV.NORMALIZE | Command | Image arithmetic statements | Normalizes the source range into a target range using OpenCV NORM_MINMAX. |
CV.ORB_DETECT | Command | Analysis / flow statements | Detects ORB keypoints on the first frame. keypoints is an Nx7 array: x,y,size,angle,response,octave,class_id; descriptors is a CV_8U matrix. |
CV.OTSU | Command | Threshold and mask statements | Computes an automatic Otsu threshold on the grayscale source. |
CV.PAD | Command | Geometry / remap statements | Adds a constant border around an image or every stack frame. |
CV.PALETTE | Command | Other image / stack statements | Applies a .map RGB palette to a grayscale image/stack and returns a BGR color visualization. If paletteFile is not an absolute path, ./sys/palette is searched; the .map extension is optional. |
CV.PASTE | Command | Geometry / remap statements | Pastes a patch image or patch stack into a base image/stack at x,y. Partial out-of-bounds pastes are clipped; single images broadcast across stacks. |
CV.PASTE_RECT | Command | Geometry / remap statements | Pastes a patch into a destination RECT. The patch is resized to RECT.W/H when needed, then clipped to the base image bounds. Works frame-by-frame on compatible stacks. |
CV.PERIMETER | Function | Shape and connected-component metrics | Total contour perimeter of a binary mask across all frames. |
CV.PIXEL | Function | Image / stack information | Returns one pixel sample as a number. Channel and frame default to zero. |
CV.PIXEL_ARRAY | Function | Image statistics | Returns all channel samples of one pixel as a numeric array. For color images the order follows OpenCV/BGR. |
CV.POWER_SPECTRUM | Command | Frequency / spectral statements | Computes a centered power spectrum map from the grayscale source, normalized to 0..255 as 32F. |
CV.PROFILE_ARRAY | Function | Image statistics | Returns a horizontal or vertical intensity profile array from the first frame. Modes: H/ROW or V/COLUMN. Channel -1 means grayscale. |
CV.QR_DETECT | Command | Analysis / flow statements | Detects and decodes the first QR code payload found in an image or stack. Returns an empty string if no QR code is decoded. |
CV.RECT_MASK | Command | Threshold and mask statements | Creates a single-channel rectangular mask. Legacy command equivalent to MASK.RECT with explicit coordinates. |
CV.REMAP | Command | Geometry / remap statements | Warps an image or stack using optical-flow displacement maps. It accepts either a 2-channel FLOW map or separate flowX/flowY maps. When used with a stack and a sequential FARNEBACK flow stack that has one fewer frame, the first frame is copied unchanged and the remaining frames are remapped with the corresponding flow maps. |
CV.RESIZE | Command | Geometry / remap statements | Resizes the image or all frames in the stack. |
CV.ROTATE | Command | Geometry / remap statements | Rotates around the image center using affine interpolation and a constant border value. |
CV.ROTATE90 | Command | Geometry / remap statements | Rotates by exact right angles without interpolation. Codes: 90/CW, 180, 270/CCW. |
CV.SCALE_ABS | Command | Image creation / conversion statements | Applies OpenCV convertScaleAbs, useful for visualizing gradients and signed/float maps. |
CV.SCHARR | Command | Analysis / flow statements | Computes Scharr gradients. Without dx/dy it returns a combined gradient image. |
CV.SET_PIXEL | Command | Pixel access statements | Returns a copy where one pixel sample has been written. channel=-1 writes all channels; frame=-1 writes all frames. |
CV.SET_PIXEL3 | Command | Pixel access statements | Returns a copy where channels 0..2 of one pixel have been written. OpenCV color order is B,G,R. |
CV.SET_PIXEL4 | Command | Pixel access statements | Returns a copy where channels 0..3 of one pixel have been written. OpenCV color order is B,G,R,A. |
CV.SHOW | Command | Other image / stack statements | Compatibility alias of SHOW. |
CV.SOBEL | Command | Analysis / flow statements | Computes the Sobel gradient frame-by-frame. |
CV.SPECTRUM_LOG_MAG | Command | Frequency / spectral statements | Computes log(1+magnitude) from a complex spectrum, optionally normalized for display. |
CV.SPECTRUM_MAGNITUDE | Command | Frequency / spectral statements | Computes magnitude from a complex spectrum. With normalize=TRUE the result is scaled to 0..255 for display. |
CV.SPECTRUM_PHASE | Command | Frequency / spectral statements | Computes phase from a complex spectrum. Without normalization the result is in radians; normalized output is intended for GUI display. |
CV.SPECTRUM_POWER | Command | Frequency / spectral statements | Computes power re^2+im^2 from a complex spectrum, optionally applying log(1+x) and normalization for display. |
CV.SPLIT_COMPLEX | Command | Complex image statements | Splits a CV_32FC2/CV_64FC2 complex image into real and imaginary single-channel images. |
CV.STDDEV | Function | Image statistics | Standard deviation across all pixels, channels, and frames. |
CV.SUB | Command | Image arithmetic statements | Starts a named subroutine block. The block is skipped during normal flow and executed only by CALL. |
CV.SUBS | Command | Image arithmetic statements | Subtracts a scalar from every pixel/channel of an image or stack. This is clearer than CV.ADDS src, -scalar. |
CV.SUM | Function | Image statistics | Sum of all pixels, channels, and frames. |
CV.THRESHOLD | Command | Threshold and mask statements | Applies a fixed threshold frame-by-frame. |
CV.TO32F | Command | Image creation / conversion statements | Converts to 32-bit float using optional scale and offset. |
CV.TO8U | Command | Image creation / conversion statements | Converts to 8-bit unsigned using optional alpha and beta. |
CV.TOPHAT | Command | Morphology statements | Computes the top-hat transform frame-by-frame with selectable kernel shape. |
CV.TRANSLATE | Command | Geometry / remap statements | Translates image content by dx,dy pixels using a constant border value. |
CV.TYPE | Function | Image / stack information | Returns NUMBER, BOOL, STRING, IMAGE, STACK, ARRAY or NULL. |
CV.UNSHARP | Command | Filtering / enhancement statements | Applies unsharp masking using a Gaussian blur and weighted recombination. |
CV.WARP_AFFINE | Command | Geometry / remap statements | Applies a 2x3 affine transform matrix with optional output size and constant border value. |
CV.WARP_HOMOGRAPHY | Command | Geometry / remap statements | Applies a 3x3 homography stored in a ScriptArray. This is the array-based companion of CV.WARP_PERSPECTIVE and works frame-by-frame on stacks. |
CV.WARP_PERSPECTIVE | Command | Geometry / remap statements | Applies a 3x3 homography/perspective transform matrix with optional output size and constant border value. On stacks it operates frame-by-frame. |
CV.WATERSHED | Command | Threshold and mask statements | Runs marker-based watershed. markers must have the same size as src and contain positive labels for seed regions; zero means unknown. labels is CV_32S; colored is an optional visualization. |
CV.WATERSHED_AUTO | Command | Threshold and mask statements | Automatically builds watershed markers using Otsu thresholding, morphology, distance transform and connected components. distThreshold is typically 0.30..0.60; invert=TRUE is useful for dark objects on bright background. |
CV.WIDTH | Function | Image / stack information | Width of an image or stack. |
CX.ABS | Command | Complex number statements | Stores the modulus |z| in a normal numeric variable. |
CX.ADD | Command | Complex number statements | Computes dst = a + b for two scalar complex variables. |
CX.ADD_REAL | Command | Complex number statements | Computes dst = z + x where x is a normal real expression. |
CX.ARG | Command | Complex number statements | Stores the phase angle arg(z), in radians, in a normal numeric variable. |
CX.CLEAR | Command | Complex number statements | Clears all scalar complex variables stored in the CX runtime table. |
CX.CONJ | Command | Complex number statements | Computes the complex conjugate of z. |
CX.COPY | Command | Complex number statements | Copies a scalar complex variable. |
CX.COS | Command | Complex number statements | Computes the complex cosine. |
CX.DELETE | Command | Complex number statements | Deletes one scalar complex variable if it exists. |
CX.DIV | Command | Complex number statements | Computes dst = a / b for two scalar complex variables. Division by a zero complex value is rejected. |
CX.DIV_REAL | Command | Complex number statements | Computes dst = z / x where x is a normal real expression. Division by zero is rejected. |
CX.EXISTS | Command | Complex number statements | Writes 1 to result when the named scalar complex variable exists, otherwise 0. |
CX.EXP | Command | Complex number statements | Computes the complex exponential exp(z). |
CX.FROM_POLAR | Command | Complex number statements | Creates a scalar complex variable from polar coordinates. The radius must be non-negative and the angle is in radians. |
CX.FROM_RE_IM | Command | Complex number statements | Creates a scalar complex variable from rectangular coordinates. Alias-friendly companion of CX.SET. |
CX.IM | Command | Complex number statements | Stores the imaginary part of z in a normal numeric variable. |
CX.INV | Command | Complex number statements | Computes dst = 1/z. Division by a zero complex value is rejected. |
CX.LIST | Command | Complex number statements | Prints all scalar complex variables currently stored in the CX runtime table. |
CX.LOG | Command | Complex number statements | Computes the principal complex logarithm log(z). |
CX.MUL | Command | Complex number statements | Computes dst = a * b for two scalar complex variables. |
CX.MUL_REAL | Command | Complex number statements | Computes dst = z * x where x is a normal real expression. |
CX.NEG | Command | Complex number statements | Computes dst = -z. |
CX.NORM | Command | Complex number statements | Stores squared modulus re*re + im*im in a normal numeric variable. |
CX.POLAR | Command | Complex number statements | Alias of CX.FROM_POLAR. |
CX.POW_REAL | Command | Complex number statements | Raises z to a real-valued exponent. Complex exponents are intentionally not parsed in this first CX layer. |
CX.PRINT | Command | Complex number statements | Prints a scalar complex variable in readable real/imaginary form. |
CX.RE | Command | Complex number statements | Stores the real part of z in a normal numeric variable. |
CX.SET | Command | Complex number statements | Creates or replaces a scalar complex variable from real and imaginary parts. |
CX.SIN | Command | Complex number statements | Computes the complex sine. |
CX.SQRT | Command | Complex number statements | Computes the principal complex square root. |
CX.SUB | Command | Complex number statements | Computes dst = a - b for two scalar complex variables. |
CX.SUB_REAL | Command | Complex number statements | Computes dst = z - x where x is a normal real expression. |
CX.TAN | Command | Complex number statements | Computes the complex tangent. |
CX.TO_POLAR | Command | Complex number statements | Stores modulus and phase angle, in radians, in two normal numeric variables. |
CX.TO_RE_IM | Command | Complex number statements | Stores real and imaginary parts of z in two normal numeric variables. |
DEBUG.EXPR_CACHE_COMPILE_ATTEMPTS | Function | Diagnostics functions | Public cvBasic function exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata. |
DEBUG.EXPR_CACHE_COMPILE_FAILURES | Function | Diagnostics functions | Public cvBasic function exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata. |
DEBUG.EXPR_CACHE_COMPILED | Function | Diagnostics functions | Public cvBasic function exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata. |
DEBUG.EXPR_CACHE_EVALS | Function | Diagnostics functions | Public cvBasic function exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata. |
DEBUG.EXPR_CACHE_FALLBACKS | Function | Diagnostics functions | Returns how many expression evaluations fell back to the classic ExpressionParser. |
DEBUG.EXPR_CACHE_HIT_RATE | Function | Diagnostics functions | Returns the expression-cache hit rate as a percentage over hits + misses. |
DEBUG.EXPR_CACHE_HITS | Function | Diagnostics functions | Returns the number of expression-cache hits in the current run since the last reset. |
DEBUG.EXPR_CACHE_LIMIT_CLEARS | Function | Diagnostics functions | Public cvBasic function exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata. |
DEBUG.EXPR_CACHE_MISSES | Function | Diagnostics functions | Returns the number of expression-cache misses in the current run since the last reset. |
DEBUG.EXPR_CACHE_RESET_STATS | Command | Diagnostics statements | Resets the expression-cache diagnostic counters without clearing the cached expression tree. |
DEBUG.EXPR_CACHE_SIZE | Function | Diagnostics functions | Returns the current number of compiled expressions stored in the cache. |
DEBUG.EXPR_CACHE_SUMMARY | Function | Diagnostics functions | Returns a compact string with expression-cache size, evaluations, hits, misses, compiled expressions, fallbacks and limit clears. |
DEFAULT | Keyword | Language keywords | Optional fallback branch of a SWITCH block. It must appear after all CASE branches. |
DEMO.ADD | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns a + b. |
DEMO.ARGSINFO | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns a compact description of all received argument types. |
DEMO.ARRAY_INFO | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns shape and total size of a cvBasic array using SDK v2 array access. |
DEMO.ARRAY_SCALE | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns a numeric array with every element multiplied by factor. |
DEMO.ARRAY_SUM | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns the sum of all numeric array elements. |
DEMO.CLAMP | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Clamps x into the [lo, hi] range. |
DEMO.HELLO | Command | Other image / stack statements | Library: DemoStats user library 2.0.0 Prints a greeting from the DLL. |
DEMO.IMAGE_INFO | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns width, height, channels, depth, type and frame count for an image/stack. |
DEMO.INVERT8 | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns an inverted copy of an 8-bit image using SDK v2 image view access. |
DEMO.MAX | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns the maximum numeric argument. |
DEMO.MEAN | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns the arithmetic mean of all numeric arguments. |
DEMO.MIN | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns the minimum numeric argument. |
DEMO.MUL | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns the product of all numeric arguments. |
DEMO.RAMP | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns a 1D numeric array containing 0..n-1. |
DEMO.REPEAT | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Repeats text count times, capped at 1024 repetitions. |
DEMO.STDDEV | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns the population standard deviation of the numeric arguments. |
DEMO.TYPEOF | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns the external SDK value type name of the argument. |
DEMO.TYPES | Command | Other image / stack statements | Library: DemoStats user library 2.0.0 Prints the SDK data types supported by this demo library. |
DEMO.UPPER | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns an upper-case copy of text. |
DEMO.VERSION | Function | OpenCV / media functions | Library: DemoStats user library 2.0.0 Returns the library version string. |
DIM | Command | Language keywords | Declares a zero-based one or multi-dimensional array. Variable names are case-insensitive, so DIM v(10) and later V refer to the same variable. Compact literals are also supported: v = [1,2,3] and A = [[1,2],[3,4]]. |
DIM | Command | Core statements | Declares a zero-based one or multi-dimensional array. Variable names are case-insensitive, so DIM v(10) and later V refer to the same variable. Compact literals are also supported: v = [1,2,3] and A = [[1,2],[3,4]]. |
DPLOT.ADDXY | Command | Interactive DataPlot statements | Adds an X/Y numeric channel to an interactive DataPlot window. xValues and yValues can be arrays or numeric text lists and must have the same length. |
DPLOT.ADDY | Command | Interactive DataPlot statements | Adds a Y-only numeric channel to an interactive DataPlot window. The X axis is generated as 0..N-1. yValues can be an array, numeric text list, or single numeric value. |
DPLOT.BINS | Command | Interactive DataPlot statements | Changes the number of bins used by the DataPlot histogram panel. |
DPLOT.CLEAR | Command | Interactive DataPlot statements | Removes all channels from an interactive DataPlot window. |
DPLOT.COMMON_RANGE | Command | Interactive DataPlot statements | Enables or disables a common histogram range across all DataPlot channels. |
DPLOT.CREATE | Function | Interactive DataPlot functions | Creates an interactive DataPlot MDI window and returns a numeric handle used by DPLOT.ADDY, DPLOT.ADDXY and the other DPLOT commands. |
DPLOT.MODE | Command | Interactive DataPlot statements | Sets the interactive DataPlot mode: READOUT, ZOOM, or PAN. |
DPLOT.NORMALIZE | Command | Interactive DataPlot statements | Enables or disables normalized histogram display in a DataPlot window. |
DRAW.CIRCLE | Command | Drawing statements | Draws or fills a circle over an image or stack. |
DRAW.LINE | Command | Drawing statements | Draws a line over an image or over every frame of a stack and returns the modified media. |
DRAW.RECT | Command | Drawing statements | Draws or fills a rectangle over an image or stack. |
DRAW.TEXT | Command | Drawing statements | Draws text using an OpenCV Hershey font over an image or stack. |
ELSE | Keyword | Language keywords | Alternative branch of an IF block. |
ENDFUNCTION | Keyword | Language keywords | Closes a FUNCTION block. |
ENDIF | Keyword | Language keywords | Closes the IF block. |
ENDSUB | Keyword | Language keywords | Closes a SUB block. |
ENDSWITCH | Keyword | Language keywords | Closes a SWITCH block. |
ENDTRY | Keyword | Language keywords | Closes a TRY/CATCH block. |
EXIT | Keyword | Language keywords | Terminates the current script cleanly. Useful in interactive scripts after a cancelled dialog or an explicit user choice. |
FALSE | Keyword | Language keywords | Boolean false constant. |
FOR | Keyword | Language keywords | Starts either a numeric loop or a FOR IN iteration over all elements of an array/string. |
FUNCTION | Keyword | Language keywords | Starts a user-defined function block. The function can be used inside expressions and returns either RETURN expr or the AS return variable. |
GL.ARROW | Command | OpenGL 3D commands | Adds a 3D vector arrow starting at x,y,z and pointing by dx,dy,dz. |
GL.AUTOROTATE | Command | OpenGL 3D commands | Starts or stops the GL viewer internal autorotation timer. |
GL.AXES | Command | OpenGL 3D commands | Adds RGB XYZ axes: X red, Y green, Z blue. |
GL.BACKGROUND | Command | OpenGL 3D commands | Sets the GL viewer background color. Accepts Qt color names or #RRGGBB values. |
GL.BOUNDS | Function | OpenGL 3D functions | Returns scene bounds as minX,minY,minZ;maxX,maxY,maxZ, useful for reports and sanity checks. |
GL.CAPTION | Command | OpenGL 3D commands | Sets a scene caption shown in the GL overlay and included in GL.INFO/GL.REPORT. |
GL.CAPTURE | Command | OpenGL 3D commands | Alias of GL.CAPTURE_FRAME. |
GL.CAPTURE_FRAME | Command | OpenGL 3D commands | Saves a frame snapshot. pathPattern may contain %04d, %03d, %02d, %d or {frame}. Alias: GL.CAPTURE. |
GL.CENTER | Command | OpenGL 3D commands | Recenters the camera on current bounds without changing rotation. |
GL.CLEAR | Command | OpenGL 3D commands | Removes all geometry from a GL scene and resets its automatic bounds. |
GL.CLOSE | Command | OpenGL 3D commands | Closes a GL viewer by handle. |
GL.COLOR | Command | OpenGL 3D commands | Changes object color. For gradient surfaces this switches the object to a flat color. |
GL.COLORMAP | Command | OpenGL 3D commands | Applies a preview colormap to all gradient GL.SURFACE/GL.HEIGHTFIELD objects. Supported modes: gray, hot, blue-red, jet, viridis, thermal, custom. |
GL.CREATE | Function | OpenGL 3D functions | Creates an interactive OpenGL MDI viewer for scientific 3D geometry and returns a numeric handle. The viewer supports mouse/keyboard rotation, pan, zoom, fit, grid/axes toggle and snapshot. |
GL.DELETE | Command | OpenGL 3D commands | Deletes a GL object previously identified through GL.LAST_ID. |
GL.EXPORT_CSV | Command | OpenGL 3D commands | Exports GL geometry as a simple CSV table of VERTEX and TRI records. It is easier to inspect than OBJ/PLY and complements GL.SAVE_SCENE. |
GL.EXPORT_OBJ | Command | OpenGL 3D commands | Exports visible GL geometry to Wavefront OBJ. If objectId is supplied, only that GL object is exported. Lines are written as OBJ l records; triangle meshes/surfaces are written as faces. |
GL.EXPORT_OBJECT_CSV | Command | OpenGL 3D commands | Exports one selected GL object to a compact CSV geometry table. |
GL.EXPORT_OBJECT_OBJ | Command | OpenGL 3D commands | Exports one selected GL object to Wavefront OBJ. |
GL.EXPORT_OBJECT_PLY | Command | OpenGL 3D commands | Exports one selected GL object to ASCII PLY. |
GL.EXPORT_PLY | Command | OpenGL 3D commands | Exports visible GL vertices and triangular faces to ASCII PLY. Point clouds are exported as vertices; lines are not represented as edges in this first lightweight exporter. |
GL.EXPORT_SCENE | Command | OpenGL 3D commands | Public cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata. |
GL.FIT | Command | OpenGL 3D commands | Recomputes scene bounds, recenters the camera and resets zoom/pan while preserving the current rotation. |
GL.FLUSH | Command | OpenGL 3D commands | Alias of GL.SYNC. |
GL.FRAME | Command | OpenGL 3D commands | Processes GUI events for one animation frame. Without maxMs it uses the delay configured by GL.SET_FPS. |
GL.GRID | Command | OpenGL 3D commands | Adds a scientific reference grid on plane XY, XZ or YZ. |
GL.HEIGHTFIELD | Command | OpenGL 3D commands | Converts an image or stack frame into a shaded 3D heightfield. X/Y are image coordinates centered around the origin; Z is normalized luminance mapped between zMin and zMax. sampleStep reduces large images. |
GL.HIDE | Command | OpenGL 3D commands | Temporarily hides a GL object without deleting it. |
GL.IMAGE_POINTS | Command | OpenGL 3D commands | Alias of GL.POINTCLOUD_FROM_IMAGE. |
GL.IMAGE_SURFACE | Command | OpenGL 3D commands | Alias of GL.HEIGHTFIELD, intended for OpenCV image-to-surface visualizations. |
GL.IMPORT_OBJ | Command | OpenGL 3D commands | Imports a simple Wavefront OBJ mesh. v and f records are supported; polygonal faces are triangulated as fans. If the OBJ has vertices but no faces, it is imported as a point cloud. |
GL.INFO | Function | OpenGL 3D functions | Returns a multi-line diagnostic summary of the GL scene: title, caption, bounds, camera, renderer, item/object counts and visible primitive totals. |
GL.ISOSURFACE | Command | OpenGL 3D commands | Extracts a lightweight triangulated isosurface from a W x H x T stack using a marching-tetrahedra pass. threshold01 is normalized over the sampled volume. |
GL.ITEM_COUNT | Function | OpenGL 3D functions | Returns the number of internal GL items currently stored in a scene, including grids, axes and labels. |
GL.LABEL | Command | OpenGL 3D commands | Alias of GL.TEXT. |
GL.LAST_ID | Function | OpenGL 3D functions | Returns the object id assigned to the last GL object added to the scene. Useful before GL.HIDE, GL.SHOW, GL.DELETE or style changes. |
GL.LINE | Command | OpenGL 3D commands | Adds one 3D line segment to the scene. |
GL.LOAD_OBJ | Command | OpenGL 3D commands | Imports a simple Wavefront OBJ mesh. v and f records are supported; polygonal faces are triangulated as fans. If the OBJ has vertices but no faces, it is imported as a point cloud. |
GL.MARCHING_CUBES | Command | OpenGL 3D commands | Alias of GL.ISOSURFACE. The current implementation uses marching tetrahedra internally to avoid large lookup tables while still producing triangular isosurfaces. |
GL.MARCHING_TETRAHEDRA | Command | OpenGL 3D commands | Extracts a lightweight triangulated isosurface from a W x H x T stack using a marching-tetrahedra pass. threshold01 is normalized over the sampled volume. |
GL.MESH | Command | OpenGL 3D commands | Adds a triangular mesh from a vertex list and a face list. Face indices may be 0-based or 1-based; polygons with more than three indices are triangulated as fans. |
GL.NEW | Function | OpenGL 3D functions | Alias of GL.CREATE. |
GL.OBJECT_COUNT | Function | OpenGL 3D functions | Returns the number of user geometry objects, excluding helper grids and axes. |
GL.POINT | Command | OpenGL 3D commands | Adds one 3D point to the scene. |
GL.POINTCLOUD_FROM_IMAGE | Command | OpenGL 3D commands | Converts bright pixels of an image frame into a sparse 3D point cloud. X/Y come from image coordinates, Z comes from normalized luminance times zScale. |
GL.POINTCLOUD_FROM_STACK | Command | OpenGL 3D commands | Alias of GL.VOXELS. |
GL.POINTS | Command | OpenGL 3D commands | Adds a batch of independent 3D points, useful for point clouds, samples and phase-space scatter plots. |
GL.POLYLINE | Command | OpenGL 3D commands | Adds a connected 3D polyline from a semicolon/newline-separated list of x,y,z points. |
GL.RAYMARCH | Command | OpenGL 3D commands | Alias of GL.VOLUME. Practical slice/ray-sampling preview before heavier GPU 3D-texture ray marching. |
GL.RENDER_MODE | Command | OpenGL 3D commands | Selects the GL renderer path. Modes: AUTO uses shader/VBO when available; MODERN requests the shader/VBO path; LEGACY forces the fixed-pipeline fallback. |
GL.RENDERER | Function | OpenGL 3D functions | Returns the requested renderer mode, active renderer and shader/VBO initialization status. |
GL.REPORT | Command | OpenGL 3D commands | Public cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata. |
GL.RESET_VIEW | Command | OpenGL 3D commands | Alias of GL.RESETVIEW. |
GL.RESETVIEW | Command | OpenGL 3D commands | Resets the GL viewer orientation, pan and zoom. |
GL.ROTATE | Command | OpenGL 3D commands | Adds incremental camera rotation deltas to the current GL view. Useful inside animation loops. |
GL.SAVE_SCENE | Command | OpenGL 3D commands | Public cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata. |
GL.SET_COLOR | Command | OpenGL 3D commands | Changes object color. For gradient surfaces this switches the object to a flat color. |
GL.SET_FPS | Command | OpenGL 3D commands | Sets the default frame delay used by GL.FRAME for this viewer. |
GL.SET_SIZE | Command | OpenGL 3D commands | Changes point size or text size for compatible GL objects. |
GL.SET_TITLE | Command | OpenGL 3D commands | Changes the GL MDI window title. Alias: GL.TITLE. |
GL.SET_WIDTH | Command | OpenGL 3D commands | Changes line width for line, polyline, grid, axes, arrow, wireframe and mesh-outline objects. |
GL.SHADED | Command | OpenGL 3D commands | Toggles the simple face-normal shading used by GL.SURFACE and GL.MESH. |
GL.SHOW | Command | OpenGL 3D commands | Shows a previously hidden GL object. |
GL.SIZE | Command | OpenGL 3D commands | Changes point size or text size for compatible GL objects. |
GL.SLICE | Command | OpenGL 3D commands | Displays an orthogonal X/Y/Z section of a stack as a triangulated relief surface. X/Y are image axes and Z is frame/time; scale extrudes luminance along the slice normal. |
GL.SLICE_X | Command | OpenGL 3D commands | Displays the Y/T section at a fixed image column xIndex, useful for temporal stack inspection. |
GL.SLICE_Y | Command | OpenGL 3D commands | Displays the X/T section at a fixed image row yIndex, revealing temporal trajectories and rotating/moving patterns. |
GL.SLICE_Z | Command | OpenGL 3D commands | Displays one normal image frame of the stack as a relief slice positioned at its temporal Z coordinate. |
GL.SNAPSHOT | Command | OpenGL 3D commands | Saves the current GL framebuffer to an image file such as PNG/JPG/BMP. |
GL.STACK_POINTS | Command | OpenGL 3D commands | Displays a stack/image as a thresholded voxel-like point cloud. X/Y are image coordinates, Z is frame index times zStep. |
GL.SURFACE | Command | OpenGL 3D commands | Adds a shaded triangulated surface from a row-major cols x rows grid of 3D points. The surface uses a simple z-gradient between lowColor and highColor. |
GL.SYNC | Command | OpenGL 3D commands | Processes pending GUI events briefly after heavy GL scene construction. |
GL.TEXT | Command | OpenGL 3D commands | Adds a projected 3D label anchored at x,y,z. The label follows camera rotation and zoom. |
GL.TITLE | Command | OpenGL 3D commands | Alias of GL.SET_TITLE. |
GL.UPDATE_LINE | Command | OpenGL 3D commands | Updates the endpoints of an existing line-segment object. |
GL.UPDATE_MESH | Command | OpenGL 3D commands | Replaces vertices/faces of an existing GL.MESH/GL.ISOSURFACE mesh object. |
GL.UPDATE_POINTS | Command | OpenGL 3D commands | Replaces the vertex list of an existing GL.POINT/GL.POINTS object without creating a new object. Useful for particle animation. |
GL.UPDATE_POLYLINE | Command | OpenGL 3D commands | Replaces the points of an existing GL.POLYLINE object while preserving its color/width. |
GL.UPDATE_SURFACE | Command | OpenGL 3D commands | Replaces the grid geometry of an existing GL.SURFACE/heightfield/slice object. Style and colormap are preserved. |
GL.UPDATE_TEXT | Command | OpenGL 3D commands | Moves and rewrites an existing GL.TEXT/GL.LABEL object. |
GL.VIEW | Command | OpenGL 3D commands | Sets the initial 3D camera orientation and zoom. Users can still rotate/pan/zoom interactively. |
GL.VOLUME | Command | OpenGL 3D commands | Adds a CPU-built transparent volume-render mesh from a stack. Modes: alpha, threshold, mip. It uses per-vertex color/alpha and the GL alpha-blending renderer. |
GL.VOLUME_RENDER | Command | OpenGL 3D commands | Alias of GL.VOLUME. |
GL.VOXELS | Command | OpenGL 3D commands | Displays a stack/image as a thresholded voxel-like point cloud. X/Y are image coordinates, Z is frame index times zStep. |
GL.WAIT | Command | OpenGL 3D commands | Processes pending GUI events for animation pacing with an explicit millisecond delay. |
GL.WIDTH | Command | OpenGL 3D commands | Changes line width for line, polyline, grid, axes, arrow, wireframe and mesh-outline objects. |
GL.WIREFRAME | Command | OpenGL 3D commands | Toggles global wireframe display for GL.SURFACE and GL.MESH objects. |
GUI.CLEAR_ROI | Command | GUI interaction statements | Clears the current ROI from the selected image/stack window. |
GUI.CLOSE | Command | GUI interaction statements | Closes an image or stack window in the GUI MDI area. Without arguments it closes the active image/stack window. |
GUI.CONFIRM | Function | Hybrid GUI functions | Shows a Yes/No confirmation dialog and returns TRUE for Yes, FALSE for No. |
GUI.CREATE_TRACKBAR | Command | GUI interaction statements | Creates or updates a Qt slider similar in spirit to OpenCV createTrackbar. Read it with GUI.TRACKBAR_POS(). |
GUI.DRAWING | Function | Hybrid GUI functions | Generic drawing query. RECT/ROI/BOX returns [x,y,w,h]; POINT/CENTER/TOPLEFT/BOTTOMRIGHT returns [x,y]. |
GUI.GET_COLOR | Function | Hybrid GUI functions | Shows a QColorDialog::getColor-style dialog and returns the chosen color as #RRGGBB. Returns an empty string if the user cancels. |
GUI.GET_DRAWING | Function | Hybrid GUI functions | Generic drawing query. RECT/ROI/BOX returns [x,y,w,h]; POINT/CENTER/TOPLEFT/BOTTOMRIGHT returns [x,y]. |
GUI.GET_EXISTING_DIRECTORY | Function | Hybrid GUI functions | Shows a QFileDialog::getExistingDirectory-style dialog and returns the selected directory. Returns an empty string if the user cancels. |
GUI.GET_OPEN_FILE_NAME | Function | Hybrid GUI functions | Shows a QFileDialog::getOpenFileName-style dialog and returns one selected file path. Returns an empty string if the user cancels. |
GUI.GET_OPEN_FILE_NAMES | Function | Hybrid GUI functions | Shows a QFileDialog::getOpenFileNames-style dialog and returns selected file paths separated by newline characters. Returns an empty string if the user cancels. |
GUI.GET_POINT | Function | Hybrid GUI functions | Returns a picked point as [x,y], derived from the current ROI. mode can be CENTER, TOPLEFT or BOTTOMRIGHT. |
GUI.GET_RECT | Function | Hybrid GUI functions | Returns the current interactive ROI rectangle from a GUI image/stack window as an array [x,y,w,h]. |
GUI.GET_ROI_RECT | Function | Hybrid GUI functions | Returns the current interactive ROI rectangle from a GUI image/stack window as an array [x,y,w,h]. |
GUI.GET_SAVE_FILE_NAME | Function | Hybrid GUI functions | Shows a QFileDialog::getSaveFileName-style dialog and returns the destination path. Returns an empty string if the user cancels. |
GUI.GET_TRACKBAR_POS | Function | Hybrid GUI functions | Returns the current integer value of a GUI trackbar. |
GUI.GETCOLOR | Function | Hybrid GUI functions | Shows a QColorDialog::getColor-style dialog and returns the chosen color as #RRGGBB. Returns an empty string if the user cancels. |
GUI.GETEXISTINGDIRECTORY | Function | Hybrid GUI functions | Shows a QFileDialog::getExistingDirectory-style dialog and returns the selected directory. Returns an empty string if the user cancels. |
GUI.GETOPENFILENAME | Function | Hybrid GUI functions | Shows a QFileDialog::getOpenFileName-style dialog and returns one selected file path. Returns an empty string if the user cancels. |
GUI.GETOPENFILENAMES | Function | Hybrid GUI functions | Shows a QFileDialog::getOpenFileNames-style dialog and returns selected file paths separated by newline characters. Returns an empty string if the user cancels. |
GUI.GETSAVEFILENAME | Function | Hybrid GUI functions | Shows a QFileDialog::getSaveFileName-style dialog and returns the destination path. Returns an empty string if the user cancels. |
GUI.HISTOGRAM | Function | Hybrid GUI functions | Creates an interactive DataPlot histogram from an image. Modes include GRAY, RGB, BGR, R, G, B and A. |
GUI.INPUT | Function | Hybrid GUI functions | Shows a modal text input dialog and returns the entered string. |
GUI.INPUT_NUMBER | Function | Hybrid GUI functions | Shows a numeric input dialog. Returns the selected number, or an empty string if the user cancels. |
GUI.INPUT_TEXT | Function | Hybrid GUI functions | Shows a text input dialog and returns the entered string. Returns an empty string if the user cancels. |
GUI.MESSAGE | Command | GUI interaction statements | Alias of GUI.MSGBOX with a clearer name for script-driven user messages. |
GUI.MSGBOX | Command | GUI interaction statements | Shows a Qt information message box. |
GUI.NUMBER_INPUT | Function | Hybrid GUI functions | Shows a numeric input dialog. Returns the selected number, or an empty string if the user cancels. |
GUI.POINT | Function | Hybrid GUI functions | Returns a picked point as [x,y], derived from the current ROI. mode can be CENTER, TOPLEFT or BOTTOMRIGHT. |
GUI.PROFILE | Function | Hybrid GUI functions | Creates an interactive DataPlot profile from an image. Modes: H row profile, V column profile, XY arbitrary line profile with bilinear sampling. |
GUI.RECT | Function | Hybrid GUI functions | Returns the current interactive ROI rectangle from a GUI image/stack window as an array [x,y,w,h]. |
GUI.RELEASE_TRACKBARS | Command | GUI interaction statements | Removes all trackbars, or only those belonging to the selected panel. |
GUI.ROI_HISTOGRAM | Function | Hybrid GUI functions | Creates an interactive DataPlot histogram from a ROI using x,y,w,h and the selected histogram mode. |
GUI.ROI_PROFILE | Function | Hybrid GUI functions | Creates an interactive DataPlot profile from a ROI using x,y,w,h. H averages vertically per column; V averages horizontally per row. |
GUI.SET_TRACKBAR_POS | Command | GUI interaction statements | Sets an existing trackbar position from script. |
GUI.SHOW | Command | GUI interaction statements | Displays an image or stack in the GUI MDI area. If a title is provided and an image window with the same title already exists, that window is updated instead of opening a new one. |
GUI.TEXT_INPUT | Function | Hybrid GUI functions | Shows a text input dialog and returns the entered string. Returns an empty string if the user cancels. |
GUI.TRACKBAR | Command | GUI interaction statements | Creates or updates a Qt slider similar in spirit to OpenCV createTrackbar. Read it with GUI.TRACKBAR_POS(). |
GUI.TRACKBAR_POS | Function | Hybrid GUI functions | Returns the current integer value of a GUI trackbar. |
GUI.TRACKBAR_VALUE | Function | Hybrid GUI functions | Returns the current integer value of a GUI trackbar. |
GUI.WAIT_DRAWING | Function | Hybrid GUI functions | Generic interactive drawing wait. It waits for a GUI ROI change and returns either a rectangle array or point array. |
GUI.WAIT_KEY | Function | Hybrid GUI functions | Processes GUI events for delayMs milliseconds and returns the last pressed key as uppercase text, or an empty string when no key was pressed. delayMs=0 waits indefinitely. |
GUI.WAIT_POINT | Function | Hybrid GUI functions | Waits for a ROI/pick and returns the selected point as [x,y]. The default point is the ROI center. |
GUI.WAIT_RECT | Function | Hybrid GUI functions | Waits until the user draws/changes a ROI, then returns the rectangle as [x,y,w,h]. |
GUI.WAIT_ROI | Command | GUI interaction statements | Waits until the user creates, moves or resizes a ROI in the selected image/stack window. |
GUI.WAIT_ROI_CHANGE | Command | GUI interaction statements | Waits for any committed desktop ROI change. Use ROI.FROM_DESKTOP(img,title) to copy it into an image object, or ROI.CHANGE(title)/ROI.REVISION(title) to inspect the GUI state. |
GUI.WAIT_ROI_RECT | Function | Hybrid GUI functions | Waits until the user draws/changes a ROI, then returns the rectangle as [x,y,w,h]. |
IF | Keyword | Language keywords | Starts a conditional block. If a statement follows THEN on the same line, it is executed as a one-line IF without requiring ENDIF. |
IMAGE | Keyword | Language keywords | Logical type returned by TYPE(x) for single images. |
IN | Keyword | Language keywords | Introduces the collection expression in a FOR IN loop. Arrays are iterated in row-major linear order; strings are iterated character by character. |
INCLUDE | Keyword | Language keywords | Alias of USING. Includes another cvBasic source file before execution, with the same path resolution, nested include support and recursive cycle protection. |
IO.ABS_PATH | Function | File and path functions | Returns the absolute version of a path. |
IO.APPEND_TEXT | Function | File and path functions | Appends UTF-8 text to a file and returns TRUE on success. |
IO.BASE_NAME | Function | File and path functions | File name without the final extension. |
IO.CAMERA_GET | Function | File / media IO statements | Reads an OpenCV VideoCapture property and assigns the numeric value. |
IO.CAMERA_GET | Function | File and path functions | Reads an OpenCV VideoCapture property and assigns the numeric value. |
IO.CAMERA_IS_OPEN | Function | File and path functions | Returns TRUE when the selected camera index is currently open inside the script runtime. |
IO.CAMERA_PROP_ID | Function | File and path functions | Returns the numeric OpenCV CAP_PROP id for a known friendly property name, or -1 if unknown. |
IO.CAMERA_PROPS | Function | File / media IO statements | Returns a diagnostic table with columns: name, OpenCV property id, current value, writable flag. |
IO.CAMERA_PROPS | Function | File and path functions | Returns a diagnostic table with columns: name, OpenCV property id, current value, writable flag. |
IO.CAMERA_RELEASE | Command | File / media IO statements | Releases an opened camera handle. Use this when a script has finished acquiring frames. |
IO.CAMERA_SET | Command | File / media IO statements | Sets an OpenCV VideoCapture property. Property can be a friendly name such as FPS, WIDTH, HEIGHT, EXPOSURE or GAIN, quoted or bare. |
IO.CANONICAL_PATH | Function | File and path functions | Returns the canonical existing path with symlinks resolved when possible. |
IO.CAPTURE_FRAME | Command | File / media IO statements | Captures one BGR frame from a camera. The camera is opened lazily and kept open for following captures until IO.CAMERA_RELEASE is called. |
IO.CLEAR_ERROR | Function | File and path functions | Clears the stored non-fatal runtime error and returns TRUE. |
IO.COPY_FILE | Function | File and path functions | Copies a file and returns TRUE on success. |
IO.CSV_COLS | Function | File and path functions | Returns the number of columns in a CSV/text table. |
IO.CSV_COLUMN | Function | File and path functions | Returns one selected CSV column as newline-separated text. The selector may be a header name or a zero-based index. |
IO.CSV_COLUMN_ARRAY | Function | File and path functions | Loads a selected CSV column into a script array. Pass numeric=TRUE to force numeric conversion. |
IO.CSV_FIELD | Function | File and path functions | Returns one CSV cell as text. The field selector may be a header name or a zero-based column index. |
IO.CSV_HEADERS | Function | File and path functions | Returns available CSV field names as newline-separated text. If no header exists, synthetic Column N names are returned. |
IO.CSV_INFO | Function | File and path functions | Analyzes and loads a CSV/text table using auto-detected delimiter and header by default, then returns a diagnostic text summary. |
IO.CSV_NUMBER | Function | File and path functions | Returns one CSV cell parsed as a flexible number, supporting decimal comma and decimal point. |
IO.CSV_ROWS | Function | File and path functions | Returns the number of data rows in a CSV/text table. |
IO.CSV_TABLE_ARRAY | Function | File and path functions | Loads the whole CSV data table into a two-dimensional script array. |
IO.CURRENT_DIR | Function | File and path functions | Returns the current working directory. |
IO.DIR_EXISTS | Function | File and path functions | TRUE if a path exists and is a directory. |
IO.DIR_LIST | Function | File and path functions | Returns a newline-separated directory listing. |
IO.DIR_NAME | Function | File and path functions | Parent directory component of a path. |
IO.EXT | Function | File and path functions | Final file extension without the dot. |
IO.FCLOSE | Function | File and path functions | Closes a file handle and returns TRUE on success. |
IO.FEOF | Function | File and path functions | Returns TRUE when the file handle is invalid or at end-of-file. |
IO.FFLUSH | Function | File and path functions | Flushes pending writes on an open file handle. |
IO.FILE_EXISTS | Function | File and path functions | TRUE if a path exists and is a file. |
IO.FILE_NAME | Function | File and path functions | Final file or directory name component. |
IO.FILE_SIZE | Function | File and path functions | Size in bytes, or -1 when unavailable. |
IO.FOPEN | Function | File and path functions | Opens a file and returns a numeric runtime handle. Modes follow fopen-style strings such as r, w, a, rb, wb, r+, w+. |
IO.FPRINTF | Function | File and path functions | Writes formatted text to an open file handle using simple %s, %d, %f, %g placeholders. |
IO.FREAD | Function | File and path functions | Reads a byte block from an open file handle and returns it as text. |
IO.FREADLINE | Function | File and path functions | Reads one text line from an open file handle without the trailing newline. |
IO.FSCANF | Function | File and path functions | Reads the next whitespace-separated token, optionally converting it using %s, %d, %f or %g. |
IO.FSEEK | Function | File and path functions | Moves the current file position. Origin can be SET, CUR or END. |
IO.FTELL | Function | File and path functions | Returns the current byte position of an open file handle. |
IO.FWRITE | Function | File and path functions | Writes text/raw UTF-8 bytes to an open file handle and returns the number of bytes written. |
IO.HOME_DIR | Function | File and path functions | Returns the user's home directory. |
IO.IS_ABSOLUTE | Function | File and path functions | TRUE if the path is absolute. |
IO.LAST_ERROR | Function | File and path functions | Returns the last non-fatal runtime error text, currently set by IO.TRY_LOAD and IO.TRY_LOAD_WITH_META. |
IO.LAST_ERROR_LINE | Function | File and path functions | Returns the source line associated with IO.LAST_ERROR(), or -1 when unavailable. |
IO.LOAD | Command | File / media IO statements | Loads an image, a FITS image/stack, a TIFF/TIFF stack, or a video; videos, multipage TIFF files and multi-HDU FITS files become in-memory stacks. |
IO.LOAD_WITH_META | Function | File / media IO statements | Loads an image/stack and applies the optional path.cvbmeta sidecar when present. |
IO.LOAD_WITH_META | Function | File and path functions | Loads an image/stack and applies the optional path.cvbmeta sidecar when present. |
IO.META_PATH | Function | File and path functions | Returns the metadata sidecar path used by IO.SAVE_WITH_META. |
IO.MKDIR | Function | File and path functions | Creates a single directory level and returns TRUE on success. |
IO.MKPATH | Function | File and path functions | Creates a directory tree and returns TRUE on success. |
IO.MOVE_FILE | Function | File and path functions | Moves or renames a file and returns TRUE on success. |
IO.PATH_EXISTS | Function | File and path functions | TRUE if a path exists. |
IO.PATH_JOIN | Function | File and path functions | Joins a base path and a child component. |
IO.READ_CSV_ARRAY | Function | File and path functions | Reads a CSV written by IO.WRITE_CSV_ARRAY, preserving 1D/2D shape when the #CVB_ARRAY header is present. |
IO.READ_TEXT | Function | File and path functions | Reads a text file as UTF-8, returning an empty string on failure. |
IO.REMOVE_DIR | Function | File and path functions | Removes an empty directory and returns TRUE on success. |
IO.REMOVE_DIR_TREE | Function | File and path functions | Removes a directory tree recursively and returns TRUE on success. |
IO.REMOVE_FILE | Function | File and path functions | Deletes a file and returns TRUE on success. |
IO.SAVE | Command | File / media IO statements | Saves a single image to common image formats, or saves a stack to multipage TIFF when the target extension is .tif/.tiff. |
IO.SAVE_WITH_META | Command | File / media IO statements | Saves an image or stack and writes a path.cvbmeta sidecar containing ROI state and user metadata. |
IO.TEMP_DIR | Function | File and path functions | Returns the system temporary directory. |
IO.TRY_LOAD | Function | File and path functions | Loads an image/stack/video without stopping the script on failure. On failure the destination becomes NULL and IO.LAST_ERROR() contains the reason. |
IO.TRY_LOAD | Function | File / media IO statements | Loads an image/stack/video without stopping the script on failure. On failure the destination becomes NULL and IO.LAST_ERROR() contains the reason. |
IO.TRY_LOAD_WITH_META | Function | File and path functions | Non-fatal variant of IO.LOAD_WITH_META. It restores metadata when possible, otherwise stores the reason in IO.LAST_ERROR(). |
IO.TRY_LOAD_WITH_META | Function | File / media IO statements | Non-fatal variant of IO.LOAD_WITH_META. It restores metadata when possible, otherwise stores the reason in IO.LAST_ERROR(). |
IO.WRITE_CSV_ARRAY | Function | File and path functions | Writes a 1D/2D array to CSV with a small #CVB_ARRAY shape header and returns TRUE. |
IO.WRITE_TEXT | Function | File and path functions | Writes UTF-8 text to a file and returns TRUE on success. |
IO.WRITE_VIDEO | Command | File / media IO statements | Writes a stack as an AVI/MJPG video. |
LA.ADD | Function | Linear algebra / Eigen | Element-wise matrix addition; A and B must have the same shape. |
LA.COL | Function | Linear algebra / Eigen | Creates an n x 1 column vector. It can still be read with one index, for example c[0]. |
LA.COLS | Function | Linear algebra / Eigen | Returns the number of columns. A 1D vector reports cols = 1. |
LA.COS | Function | Linear algebra / Eigen | Element-wise cosine. |
LA.CROSS | Function | Linear algebra / Eigen | Cross product between two 3D vectors. |
LA.DET | Function | Linear algebra / Eigen | Returns the determinant of a square matrix. |
LA.DIAG | Function | Linear algebra / Eigen | Vector input creates a diagonal matrix; matrix input extracts the diagonal. |
LA.DOT | Function | Linear algebra / Eigen | Dot product between same-size vectors. |
LA.EIGSYM_VALS | Function | Linear algebra / Eigen | Returns real eigenvalues for symmetric matrices. |
LA.EIGSYM_VECS | Function | Linear algebra / Eigen | Returns real eigenvectors for symmetric matrices. |
LA.EIGVALS | Function | Linear algebra / Eigen | Returns eigenvalues as an N x 2 table: real and imaginary part. |
LA.EIGVECS | Function | Linear algebra / Eigen | Returns real eigenvectors when the decomposition has negligible imaginary components. |
LA.EXP | Function | Linear algebra / Eigen | Element-wise exponential. |
LA.FROM_IMAGE | Function | Linear algebra / Eigen | Converts the first frame of an image/stack to a numeric matrix. channel=-1 uses grayscale/luminance. |
LA.GRID_X | Function | Linear algebra / Eigen | Builds the X coordinate matrix for a regular grid. |
LA.GRID_Y | Function | Linear algebra / Eigen | Builds the Y coordinate matrix for a regular grid. |
LA.HADAMARD | Function | Linear algebra / Eigen | Element-wise matrix product. |
LA.IDENTITY | Function | Linear algebra / Eigen | Creates an n x n identity matrix. |
LA.INV | Function | Linear algebra / Eigen | Returns the inverse of a non-singular square matrix. |
LA.LINSPACE | Function | Linear algebra / Eigen | Creates a 1D vector with n evenly spaced samples from a to b. |
LA.LSQ | Function | Linear algebra / Eigen | Least-squares solution for overdetermined systems. |
LA.MUL | Function | Linear algebra / Eigen | Matrix product using Eigen. |
LA.NORM | Function | Linear algebra / Eigen | Returns the Frobenius/vector norm. |
LA.NULLSPACE | Function | Linear algebra / Eigen | Returns a matrix whose columns form a numerical basis of the null space of A. Full-rank matrices return one zero column because zero-width arrays are not supported. |
LA.ONES | Function | Linear algebra / Eigen | Creates a numeric matrix initialized to one. |
LA.PINV | Function | Linear algebra / Eigen | Returns the Moore-Penrose pseudoinverse computed from the SVD. The optional tolerance controls which singular values are inverted. |
LA.QR_Q | Function | Linear algebra / Eigen | Returns the Q factor of the Householder QR decomposition. |
LA.QR_R | Function | Linear algebra / Eigen | Returns the R factor of the Householder QR decomposition, with Q*R reconstructing A. |
LA.RANK | Function | Linear algebra / Eigen | Returns the numerical rank of A using its singular values. |
LA.ROW | Function | Linear algebra / Eigen | Creates a 1 x n row vector. It can still be read with one index, for example r[0]. |
LA.ROWS | Function | Linear algebra / Eigen | Returns the number of rows. A 1D vector reports rows = length. |
LA.SCALE | Function | Linear algebra / Eigen | Multiplies all matrix elements by scalar s. |
LA.SHAPE | Function | Linear algebra / Eigen | Returns the array shape as text, such as 3, 3 x 1, 1 x 3 or 2 x 2. |
LA.SIN | Function | Linear algebra / Eigen | Element-wise sine. |
LA.SINC | Function | Linear algebra / Eigen | Element-wise sin(x)/x with the correct value 1 near zero. |
LA.SOLVE | Function | Linear algebra / Eigen | Solves A*x=b with Eigen QR decomposition. |
LA.SQRT | Function | Linear algebra / Eigen | Element-wise square root. |
LA.SUB | Function | Linear algebra / Eigen | Element-wise matrix subtraction; A and B must have the same shape. |
LA.SVD_S | Function | Linear algebra / Eigen | Returns the singular values of A. |
LA.SVD_U | Function | Linear algebra / Eigen | Returns the thin U matrix from the singular value decomposition A = U*S*V^T. |
LA.SVD_V | Function | Linear algebra / Eigen | Returns the thin V matrix from the singular value decomposition A = U*S*V^T. |
LA.TO_IMAGE | Function | Linear algebra / Eigen | Converts a numeric matrix to a grayscale image, optionally normalized to 0..255. |
LA.TRACE | Function | Linear algebra / Eigen | Returns the sum of the diagonal of A. |
LA.TRANSPOSE | Function | Linear algebra / Eigen | Returns the transpose of a vector or matrix. |
LA.VEC | Function | Linear algebra / Eigen | Creates a compact 1D numeric vector. Direct indexing works as v[0]. |
LA.VERSION | Function | Linear algebra / Eigen | Returns the Eigen version detected at compile time. |
LA.ZEROS | Function | Linear algebra / Eigen | Creates a numeric matrix initialized to zero. |
LANG.CATALOG_WARNINGS | Function | Language introspection | Returns a 1D array with registry/catalog drift diagnostics. Empty array means no warnings. |
LANG.CATEGORY | Function | Language introspection | Returns the documentation/help category for a public symbol. |
LANG.COMMANDS | Function | Language introspection | Returns a 1D array containing all public command names. |
LANG.EXISTS | Function | Language introspection | Returns TRUE if name is a public command, function, keyword, or documented catalog symbol. |
LANG.FUNCTIONS | Function | Language introspection | Returns a 1D array containing all public function names. |
LANG.HEADLESS | Function | Language introspection | Returns TRUE for symbols that can be used safely in batch/headless scripts, and FALSE for explicit GUI/interactive symbols. |
LANG.HELP | Function | Language introspection | Returns a compact multi-line help block with name, kind, signature and description. |
LANG.KIND | Function | Language introspection | Returns Command, Function, Keyword, or an empty string when the symbol is unknown. |
LANG.SIGNATURE | Function | Language introspection | Returns the documented or registry-derived signature of a public symbol. |
LANG.SYMBOLS | Function | Language introspection | Returns a 1D array containing public commands, public functions and language keywords. |
LANG.USERLIB_REPORT | Function | Language introspection | Returns a multi-line diagnostic report with loaded user libraries, exported symbols, argument ranges, SDK data types and warnings. |
LANG.USERLIB_SYMBOLS | Function | Language introspection | Returns a 1D array with public symbols registered by external user libraries. |
LANG.USERLIB_TYPES | Function | Language introspection | Returns a 1D array describing the data types currently exposed by the external user-library SDK. |
LANG.USERLIBS | Function | Language introspection | Returns a 1D array with the loaded external cvBasic user libraries. |
LANG.VERSION | Function | Language introspection | Returns the cvBasic language/runtime version string. |
LET | Keyword | Language keywords | Explicit assignment; equivalent to using =. Variables are case-insensitive: k and K are the same variable, so scientific scripts should prefer descriptive names such as springK and kinEnergy. Array elements may be assigned with A[i,j] = value or legacy A(i,j) = value. |
MASK.APPLY | Function | Mask geometry functions | Returns image/stack pixels inside the mask unchanged and replaces outside pixels with background. Single images/masks broadcast across stacks. |
MASK.AREA | Function | Mask geometry functions | Alias-style semantic count of foreground pixels. For a rectangular single-frame mask it equals RECT.AREA(rect). |
MASK.BBOX | Function | Mask geometry functions | Returns the half-open RECT bounding box of all non-zero mask pixels in the selected frame. |
MASK.COUNT | Function | Mask geometry functions | Counts foreground pixels, where any non-zero channel marks a foreground pixel. For stacks, counts all frames. |
MASK.COUNT_NONZERO | Function | Mask geometry functions | Compatibility alias for COUNT_NONZERO / MASK.COUNT. |
MASK.EMPTY | Function | Mask geometry functions | Returns TRUE if the mask has no foreground pixels. |
MASK.FROM_ROI | Function | Mask geometry functions | Creates a mask from the programmatic ROI stored on an image or stack. |
MASK.INVERT | Function | Mask geometry functions | Returns the binary inverse of a mask, using 0 for foreground and 255 for background. |
MASK.RECT | Function | Mask geometry functions | Creates a binary mask image from a RECT geometry or explicit x,y,w,h coordinates. The rectangle is clipped to the mask bounds. |
MASK.TO_ROI | Function | Mask geometry functions | With one mask returns MASK.BBOX. With image+mask returns a copy of the image with ROI set to the mask bounding box. |
MASK.VALID | Function | Mask geometry functions | Returns TRUE when the argument is a non-empty image/stack that can be treated as a mask. |
MAT3D.CLOSE | Command | Hybrid 3D commands | Closes a Mat3D window by handle. |
MAT3D.CREATE | Function | Hybrid 3D functions | Creates an interactive Mat3D MDI window and returns a numeric handle. X/Y are pixels and Z is luminance. |
MAT3D.OPTIONS | Command | Hybrid 3D commands | Controls Z normalization, inversion, Y flip, decimation, Z scale/offset and the color legend. |
MAT3D.PALETTE | Command | Hybrid 3D commands | Applies a QwtPlot3D .map palette file, or resets to the standard palette when omitted. |
MAT3D.SET | Command | Hybrid 3D commands | Updates an existing Mat3D window with a new image or with one selected frame from a stack. |
MAT3D.SHOW | Function | Hybrid 3D functions | Creates a Mat3D window, displays the first frame of an image/stack, and returns the Mat3D handle. |
MAT3D.SNAPSHOT | Command | Hybrid 3D commands | Saves the current Mat3D view as PNG/JPG/BMP/PDF/EPS/TIF according to file extension. |
MAT3D.STYLE | Command | Hybrid 3D commands | Sets surface style. plotStyle: POINTS, WIREFRAME, HIDDENLINE, POLYGON, FILLEDMESH. floorStyle: NONE, DATA, ISO. coordStyle: NONE, FRAME, BOX. |
MAT3D.VIEW | Command | Hybrid 3D commands | Sets the 3D view rotation and optional zoom. |
MATH.ABS | Function | Math and numeric functions | Absolute numeric value. |
MATH.ACOS | Function | Math and numeric functions | Inverse cosine, returning radians. |
MATH.ACOSH | Function | Math and numeric functions | Inverse hyperbolic cosine. |
MATH.ASIN | Function | Math and numeric functions | Inverse sine, returning radians. |
MATH.ASINH | Function | Math and numeric functions | Inverse hyperbolic sine. |
MATH.ATAN | Function | Math and numeric functions | Inverse tangent, returning radians. |
MATH.ATAN2 | Function | Math and numeric functions | Two-argument inverse tangent, returning radians. |
MATH.ATANH | Function | Math and numeric functions | Inverse hyperbolic tangent. |
MATH.CBRT | Function | Math and numeric functions | Cube root. |
MATH.CEIL | Function | Math and numeric functions | Rounds toward positive infinity. |
MATH.COS | Function | Math and numeric functions | Cosine of the angle in radians. |
MATH.COSH | Function | Math and numeric functions | Hyperbolic cosine. |
MATH.DOUBLE | Function | Math and numeric functions | Converts the value to double. |
MATH.EXP | Function | Math and numeric functions | Natural exponential e^x. |
MATH.EXP2 | Function | Math and numeric functions | Base-2 exponential 2^x. |
MATH.EXPM1 | Function | Math and numeric functions | Computes e^x - 1 with improved small-value accuracy. |
MATH.FLOOR | Function | Math and numeric functions | Rounds toward negative infinity. |
MATH.FMOD | Function | Math and numeric functions | Floating-point remainder with truncation-based quotient. |
MATH.HYPOT | Function | Math and numeric functions | Euclidean norm sqrt(a*a + b*b). |
MATH.INT | Function | Math and numeric functions | Converts the value to a truncated integer. |
MATH.LOG | Function | Math and numeric functions | Natural logarithm. |
MATH.LOG10 | Function | Math and numeric functions | Base-10 logarithm. |
MATH.LOG1P | Function | Math and numeric functions | Computes log(1+x) with improved small-value accuracy. |
MATH.LOG2 | Function | Math and numeric functions | Base-2 logarithm. |
MATH.MAX | Function | Math and numeric functions | Returns the larger of two numeric values. |
MATH.MIN | Function | Math and numeric functions | Returns the smaller of two numeric values. |
MATH.POW | Function | Math and numeric functions | Raises a base to an exponent. |
MATH.REMAINDER | Function | Math and numeric functions | IEEE-style floating-point remainder. |
MATH.ROUND | Function | Math and numeric functions | Rounds to the nearest integer, half away from zero. |
MATH.SIN | Function | Math and numeric functions | Sine of the angle in radians. |
MATH.SINH | Function | Math and numeric functions | Hyperbolic sine. |
MATH.SQRT | Function | Math and numeric functions | Square root. |
MATH.TAN | Function | Math and numeric functions | Tangent of the angle in radians. |
MATH.TANH | Function | Math and numeric functions | Hyperbolic tangent. |
MATH.TRUNC | Function | Math and numeric functions | Truncates the fractional part. |
MATH.TYPE | Function | Math and numeric functions | Returns NUMBER, BOOL, STRING, IMAGE, STACK, ARRAY or NULL. |
META.CLEAR | Function | Metadata functions | Clears all user metadata, or only the selected key when key is provided. |
META.FROM_TEXT | Function | Metadata functions | Applies cvBasic sidecar text back to an existing image or stack object and returns it. |
META.GET | Function | Metadata functions | Returns user metadata as readable key=value lines. |
META.HAS | Function | Metadata functions | Returns TRUE when a metadata key exists on the image or stack. |
META.KEYS | Function | Metadata functions | Returns all user metadata keys as newline-separated text. |
META.SET | Function | Metadata functions | Stores a user key/value metadata pair directly in an image or stack object and returns the same object. |
META.TO_TEXT | Function | Metadata functions | Serializes image dimensions, ROI state and user metadata into cvBasic sidecar text. |
META.VALUE | Function | Metadata functions | Returns the metadata value for key, or fallback when the key is absent. |
NEXT | Keyword | Language keywords | Closes the FOR loop. |
NOT | Keyword | Language keywords | Logical negation. |
OR | Keyword | Language keywords | Logical OR operator. |
PARAMS.ADD_BOOL | Command | Parameter editor commands | Adds a checkbox bound to an already-defined script variable. |
PARAMS.ADD_COLOR | Command | Parameter editor commands | Adds a color selector bound to an already-defined string variable such as #00ff00. |
PARAMS.ADD_COMBO | Command | Parameter editor commands | Adds a combo box bound to an already-defined script variable. String variables receive the selected text; numeric variables receive the selected index. |
PARAMS.ADD_DIR | Command | Parameter editor commands | Adds a directory selector bound to an already-defined string variable. |
PARAMS.ADD_DOUBLE | Command | Parameter editor commands | Adds a double spin box bound to an already-defined script variable. The variable name is passed without quotes. |
PARAMS.ADD_FILE | Command | Parameter editor commands | Adds an open-file path selector bound to an already-defined string variable. |
PARAMS.ADD_INT | Command | Parameter editor commands | Adds an integer spin box bound to an already-defined script variable. |
PARAMS.ADD_SAVEFILE | Command | Parameter editor commands | Adds a save-file path selector bound to an already-defined string variable. |
PARAMS.ADD_STRING | Command | Parameter editor commands | Adds a line edit bound to an already-defined script variable. |
PARAMS.CLEAR_DIRTY | Command | Parameter editor commands | Clears the dirty flag of a LIVE ParamsEditor panel. |
PARAMS.CLOSE | Command | Parameter editor commands | Closes and destroys a ParamsEditor panel. |
PARAMS.CREATE | Function | Parameter editor functions | Creates a ParamsEditor panel and returns a numeric handle. Mode is DIALOG by default or LIVE for a non-modal panel. |
PARAMS.DIRTY | Function | Parameter editor functions | TRUE when the user has modified at least one widget since the last PARAMS.CLEAR_DIRTY. |
PARAMS.EXEC | Function | Parameter editor functions | Runs the panel as a modal dialog. Variables are updated only if OK is pressed; the dialog session is destroyed on exit. |
PARAMS.HELP | Command | Parameter editor commands | Adds or replaces the ParamsEditor Help tab with HTML text. |
PARAMS.IS_OPEN | Function | Parameter editor functions | TRUE while a LIVE ParamsEditor window is visible. |
PARAMS.LOAD | Command | Parameter editor commands | Loads widget values from a ParamsEditor XML file. |
PARAMS.SAVE | Command | Parameter editor commands | Saves widget values to a ParamsEditor XML file. |
PARAMS.SHOW | Command | Parameter editor commands | Shows a LIVE ParamsEditor panel as a non-modal always-on-top window. |
PARAMS.SYNC | Command | Parameter editor commands | Copies current LIVE widget values back into the bound script variables. |
PARAMS.TAB | Function | Parameter editor functions | Adds a tab to a ParamsEditor panel and returns its zero-based index. |
PLOT.BAR | Command | Static plot statements | Creates a bar-chart image from newline-separated numeric values. |
PLOT.XY | Command | Static plot statements | Creates a chart image from newline-separated X,Y numeric pairs. |
PLOT.Y | Command | Static plot statements | Creates a chart image from newline-separated numeric Y values. |
PRINT | Command | Core statements | Writes the provided values to the log output. |
RECT.AREA | Function | Geometry functions | Returns w*h for valid rectangles, otherwise 0. |
RECT.CLIP | Function | Geometry functions | Clips a rectangle to image bounds [0,width) x [0,height). |
RECT.CREATE | Function | Geometry functions | Creates a half-open pixel rectangle represented by x,y,w,h. XEND is x+w and YEND is y+h. |
RECT.EMPTY | Function | Geometry functions | Returns TRUE when rect has zero/negative width or height. |
RECT.EQUAL | Function | Geometry functions | Returns TRUE when x,y,w,h are identical. |
RECT.FROM_TEXT | Function | Geometry functions | Reads a rectangle from RECT(x,y,w,h), RECT:x,y,w,h, or plain x,y,w,h text. |
RECT.H | Function | Geometry functions | Returns the rectangle height in pixels. |
RECT.INTERSECT | Function | Geometry functions | Returns the half-open intersection of two rectangles, or an empty rectangle when they do not overlap. |
RECT.TO_TEXT | Function | Geometry functions | Serializes a rectangle as RECT(x,y,w,h). |
RECT.UNION | Function | Geometry functions | Returns the smallest half-open rectangle containing both valid rectangles. |
RECT.VALID | Function | Geometry functions | Returns TRUE when rect has strictly positive width and height. |
RECT.W | Function | Geometry functions | Returns the rectangle width in pixels. |
RECT.X | Function | Geometry functions | Returns the first included X pixel coordinate. |
RECT.XEND | Function | Geometry functions | Returns the exclusive end X coordinate x+w. |
RECT.Y | Function | Geometry functions | Returns the first included Y pixel coordinate. |
RECT.YEND | Function | Geometry functions | Returns the exclusive end Y coordinate y+h. |
REM | Keyword | Language keywords | Starts a BASIC-style comment. Text after REM is ignored when REM is used as a standalone token. |
REPORT.ADD_CODE | Function | Report functions | Adds escaped preformatted code or log text. |
REPORT.ADD_DIVIDER | Function | Report functions | Adds a horizontal divider. |
REPORT.ADD_HTML | Function | Report functions | Returns a report with a raw HTML block appended. Use only for trusted/generated HTML. |
REPORT.ADD_IMAGE | Function | Report functions | Returns a report with an image embedded as PNG/base64. For stacks, frame selects the frame to embed. |
REPORT.ADD_IMAGE_FILE | Function | Report functions | Embeds an existing PNG/JPEG/GIF/WEBP/SVG image file as base64 in the report. |
REPORT.ADD_KV | Function | Report functions | Adds one key/value row as a compact table. |
REPORT.ADD_LIST | Function | Report functions | Adds a bullet list from a newline separated string or an array. |
REPORT.ADD_METRIC | Function | Report functions | Adds a metric card suitable for summaries and dashboards. |
REPORT.ADD_NOTE | Function | Report functions | Adds an emphasized note block. Kind may be INFO, SUCCESS, WARNING or DANGER. |
REPORT.ADD_SECTION | Function | Report functions | Returns a report with a section heading appended. Level is clamped to H2..H4. |
REPORT.ADD_TABLE | Function | Report functions | Returns a report with a 1D/2D ARRAY/TABLE rendered as an HTML table. Optional headers may be a comma/pipe separated string or a 1D array. |
REPORT.ADD_TABLE_HEADERS | Function | Report functions | Adds a table with explicit column headers. Headers may be a comma/pipe/semicolon separated string or an array. |
REPORT.ADD_TEXT | Function | Report functions | Returns a report with an escaped text paragraph appended. |
REPORT.CREATE | Function | Report functions | Creates a closed HTML report object represented as text. Use REPORT.ADD_* to append items and REPORT.SAVE_HTML to write it. |
REPORT.FROM_TEXT | Function | Report functions | Reads a report back from text, wrapping plain fragments in a valid report document if needed. |
REPORT.ITEM_COUNT | Function | Report functions | Returns the number of appended report items. |
REPORT.SAVE | Function | Report functions | Alias of REPORT.SAVE_HTML(report,path). |
REPORT.SAVE_HTML | Function | Report functions | Writes the closed report to a UTF-8 HTML file and returns TRUE on success. REPORT.SAVE is an alias. |
REPORT.TITLE | Function | Report functions | Returns the report title extracted from the H1 heading. |
REPORT.TO_TEXT | Function | Report functions | Serializes a report to text. In the current implementation the report is already an HTML text object. |
RETURN | Keyword | Language keywords | Exits the current SUB or returns expr from the current FUNCTION. |
ROI.AREA | Function | ROI functions | Returns the ROI area in pixels. |
ROI.CHANGE | Function | ROI functions | Returns the last ROI change kind, such as set, clear, from_desktop, explicit, create, move, resize or frame. For image objects this metadata remains readable after ROI.CLEAR. |
ROI.CLEAR | Function | ROI functions | Clears a programmatic image ROI, or clears a GUI window ROI when source is a title string. |
ROI.EXTRACT | Function | ROI functions | Extracts the stored, explicit or RECT-based ROI as a new single-image patch. Works with image objects and, when a GUI host exists, desktop window titles. |
ROI.FRAME | Function | ROI functions | Returns the frame index associated with the ROI. |
ROI.FROM_DESKTOP | Function | ROI functions | Copies the current interactive GUI ROI from a named window into an image/stack object. |
ROI.H | Function | ROI functions | Returns the ROI height in pixels. |
ROI.MAX | Function | ROI functions | Returns the maximum sample value inside a stored or temporary ROI. |
ROI.MEAN | Function | ROI functions | Returns the mean of all samples inside a stored or temporary ROI. |
ROI.MIN | Function | ROI functions | Returns the minimum sample value inside a stored or temporary ROI. |
ROI.RECT | Function | ROI functions | Returns the current or temporary ROI as a RECT-compatible value [x,y,w,h]. This closes the ROI/RECT geometry loop. |
ROI.REVISION | Function | ROI functions | Returns the monotonic ROI revision counter for stored programmatic/GUI ROIs. Explicit temporary ROIs return 0. For image objects this metadata remains readable after ROI.CLEAR. |
ROI.SET | Function | ROI functions | Stores a programmatic ROI inside an image/stack object and returns the same object. This is headless-safe. |
ROI.SET_RECT | Function | ROI functions | Stores a programmatic ROI using a RECT value returned by RECT.CREATE, RECT.FROM_TEXT, RECT.CLIP, RECT.INTERSECT or ROI.RECT. The RECT is clipped to image bounds and the same image object is returned. |
ROI.STDDEV | Function | ROI functions | Returns the standard deviation of all samples inside a stored or temporary ROI. |
ROI.SUM | Function | ROI functions | Returns the sum of all samples inside a stored or temporary ROI. |
ROI.VALID | Function | ROI functions | Returns TRUE if a ROI is available or if the explicit ROI coordinates are valid. Source may be an image/stack object or a GUI window title. |
ROI.W | Function | ROI functions | Returns the ROI width in pixels. |
ROI.X | Function | ROI functions | Returns the ROI left coordinate. |
ROI.X2 | Function | ROI functions | Returns the Qt-style inclusive right ROI coordinate. Prefer ROI.XEND for the half-open exclusive end coordinate. |
ROI.XEND | Function | ROI functions | Returns the exclusive half-open end coordinate x+w, aligned with RECT.XEND and OpenCV cv::Rect. |
ROI.Y | Function | ROI functions | Returns the ROI top coordinate. |
ROI.Y2 | Function | ROI functions | Returns the Qt-style inclusive bottom ROI coordinate. Prefer ROI.YEND for the half-open exclusive end coordinate. |
ROI.YEND | Function | ROI functions | Returns the exclusive half-open end coordinate y+h, aligned with RECT.YEND and OpenCV cv::Rect. |
SERIAL.ADD | Function | OpenCV / media functions | Library: Serial user library 1.0.0 Returns a + b. |
SERIAL.HELLO | Command | Other image / stack statements | Library: Serial user library 1.0.0 Prints a greeting from the DLL. |
SERIAL.VERSION | Function | OpenCV / media functions | Library: Serial user library 1.0.0 Returns the library version string. |
SIGNAL.SPECTRUM | Function | Signal functions | Computes a Hann-windowed DFT magnitude spectrum from a numeric signal. Returns an Nx2 array: frequency Hz, magnitude. |
STACK | Keyword | Language keywords | Logical type returned by TYPE(x) for frame stacks. |
STACK.ABSDIFF_PREV | Command | Stack / frame statements | Builds a stack of absolute differences between consecutive frames. Output frames = input frames - 1. |
STACK.APPEND | Command | Stack / frame statements | Appends one image or all frames from another stack to an existing stack. All frames must have the same size and OpenCV type. |
STACK.AVERAGE | Command | Stack / frame statements | Reduces a stack to a single average image. |
STACK.DELETE | Command | Stack / frame statements | Removes one zero-based frame and returns a new stack. The command refuses to produce an empty stack. |
STACK.FPS | Function | Stack / frame functions | FPS associated with the video stack. |
STACK.FRAME | Function | Stack / frame functions | Extracts a stack frame as a single image. |
STACK.FRAMES | Function | Stack / frame functions | Number of frames in the stack, or 1 for a single image. |
STACK.FROM_IMAGES | Command | Stack / frame statements | Creates a stack directly from images generated or loaded at runtime. All frames must have the same size and OpenCV type. |
STACK.INSERT | Command | Stack / frame statements | Inserts one image, or all frames from another stack, at zero-based index. Index 0 inserts before the first frame; index STACK.FRAMES(st) appends at the end. |
STACK.INTERPOLATE | Command | Stack / frame statements | Upsamples a stack by inserting interpolated frames between each original pair. Methods: LINEAR/BLEND or NEAREST. Output FPS is source FPS multiplied by factor when source FPS is known. |
STACK.MAX_IMAGE | Command | Stack / frame statements | Reduces a stack to a per-pixel temporal maximum image. |
STACK.MEAN_SIGNAL | Function | Stack / frame functions | Returns one temporal sample per frame, computed as frame mean. mode defaults to GRAY; also supports ALL, B, G, R and A. |
STACK.MEDIAN | Command | Stack / frame statements | Reduces a stack to a robust per-pixel median image. |
STACK.MIN_IMAGE | Command | Stack / frame statements | Reduces a stack to a per-pixel temporal minimum image. |
STACK.PIXEL_SERIES | Function | Stack / frame functions | Returns the temporal series of one pixel/channel as a numeric array. |
STACK.RANGE | Command | Stack / frame statements | Extracts a sub-stack starting at zero-based frame index first and containing up to count frames. |
STACK.RESAMPLE_FPS | Command | Stack / frame statements | Resamples a stack to a requested FPS using temporal interpolation. Requires a valid source FPS greater than zero. Methods: LINEAR/BLEND or NEAREST. |
STACK.SET_FPS | Command | Stack / frame statements | Sets FPS metadata on a stack without changing pixels. Useful for synthetic/image-sequence stacks before STACK.RESAMPLE_FPS. |
STACK.STABILIZE | Command | Stack / frame statements | Stabilizes all frames onto one reference frame. Methods: TRANSLATION, AFFINE, ORB_HOMOGRAPHY. A second output variable receives a transform table: frame, methodCode, quality, inliers, and 3x3 matrix coefficients. |
STACK.STDDEV_IMAGE | Command | Stack / frame statements | Reduces a stack to a 32/64-bit standard-deviation image that maps temporal variability per pixel. |
STACK.TEMPORAL_FILTER | Command | Stack / frame statements | Applies a centered temporal moving-window filter to each frame. Methods: MEAN/AVG, MEDIAN, MIN, MAX. Edges use the available clipped window. |
STEP | Keyword | Language keywords | Increment of the numeric FOR loop. |
SUB | Keyword | Language keywords | Starts a named subroutine block. The block is skipped during normal flow and executed only by CALL. |
SWITCH | Keyword | Language keywords | Starts a multi-branch selection block. The expression is evaluated once and compared with each CASE value, range or numeric comparison. |
SYS.ARG | Function | System functions | Returns one zero-based positional command-line argument, or an empty string when out of range. |
SYS.ARGC | Function | System functions | Returns the number of positional arguments passed after the script name on the command line. |
SYS.CWD | Function | System functions | Returns the current process working directory. |
SYS.GET | Function | System functions | Returns a named parameter passed with --set name=value; optional second argument is the default value. |
SYS.HAS | Function | System functions | TRUE if a named parameter was passed with --set name=value. |
SYS.SCRIPT_DIR | Function | System functions | Absolute directory containing the currently loaded .cvb script. |
SYS.SCRIPT_PATH | Function | System functions | Absolute path of the currently loaded .cvb script. |
TABLE.CELL | Function | Table functions | Reads one zero-based table cell. |
TABLE.COLS | Function | Table functions | Returns the number of columns in a 2D array table. |
TABLE.COLUMN | Function | Table functions | Alias of ARRAY.COLUMN for table-like 2D arrays. |
TABLE.ROW | Function | Table functions | Alias of ARRAY.ROW for table-like 2D arrays. |
TABLE.ROWS | Function | Table functions | Returns the number of rows in a 2D array table. |
TEXT.CONTAINS | Function | Text functions | Returns TRUE if value contains the requested text fragment. |
TEXT.INDEX_OF | Function | Text functions | Returns the zero-based index of fragment in value, or -1 when absent. |
TEXT.LEFT | Function | Text functions | Returns the first N characters. |
TEXT.LEN | Function | Text functions | Length of the value converted to text. |
TEXT.LINE_COUNT | Function | Text functions | Counts lines in a text block. Empty text returns 0; both LF and CRLF are supported. |
TEXT.LINE_ITEM | Function | Text functions | Returns one zero-based line from a text block. Out-of-range indices return an empty string. |
TEXT.LOWER | Function | Text functions | Converts text to lowercase. |
TEXT.MID | Function | Text functions | Extracts a substring starting at a given position. |
TEXT.REPLACE | Function | Text functions | Replaces one substring with another. |
TEXT.RIGHT | Function | Text functions | Returns the last N characters. |
TEXT.STR | Function | Text functions | Converts the value to string. |
TEXT.TRIM | Function | Text functions | Removes leading and trailing spaces. |
TEXT.UPPER | Function | Text functions | Converts text to uppercase. |
THEN | Keyword | Language keywords | Separates the condition from the true branch. A statement after THEN creates a one-line IF. |
TIME.DELAY_MS | Command | Time statements | Pauses script execution for the requested number of milliseconds while keeping STOP responsive. |
TIME.ELAPSED_MS | Function | Time functions | Returns monotonic milliseconds elapsed since TIMER_RESET was called for the named timer. |
TIME.TICK_MS | Function | Time functions | Returns monotonic milliseconds elapsed since the current script runtime started or was cleared. |
TIME.TIMER_RESET | Command | Time statements | Creates or resets a named monotonic timer inside the current script runtime. |
TO | Keyword | Language keywords | Specifies the final value of the FOR loop. |
TRUE | Keyword | Language keywords | Boolean true constant. |
TRY | Keyword | Language keywords | Starts a protected block. Runtime errors raised before CATCH are intercepted instead of stopping the script. |
USING | Keyword | Language keywords | Includes another cvBasic source file before execution. Relative paths are resolved from the current script or included file directory; recursive include cycles are rejected. INCLUDE is an exact alias of USING. Rev 10.0 also supports ':' between simple statements and '_' as a line-continuation marker. |
VEC.ANIM.CIRCLE | Command | Vector animation statements | Alias of VEC.ANIM.ORBIT. |
VEC.ANIM.MOVE | Command | Vector animation statements | Animates the item position. loops=1 runs once; loops=0 loops forever; yoyo=TRUE reverses every other loop. |
VEC.ANIM.OPACITY | Command | Vector animation statements | Animates item opacity between two values in range 0..1. |
VEC.ANIM.OPACITY_KEYFRAMES | Command | Vector animation statements | Animates item opacity using absolute time/value keyframes. This is useful for discrete states: switches, traffic lights, phase indicators, etc. loops=0 loops forever. |
VEC.ANIM.OPACITY_PATH | Command | Vector animation statements | Alias of VEC.ANIM.OPACITY_KEYFRAMES. |
VEC.ANIM.ORBIT | Command | Vector animation statements | Animates an item on a circular orbit around a center point. Alias: VEC.ANIM.CIRCLE. |
VEC.ANIM.PATH | Command | Vector animation statements | Animates an item along a polyline trajectory. Very useful for physics/mathematics demonstrations. Alias: VEC.ANIM.TRAJECTORY. |
VEC.ANIM.ROTATE | Command | Vector animation statements | Animates the item rotation in degrees. |
VEC.ANIM.ROTATE_PATH | Command | Vector animation statements | Animates item rotation through a list of angle keyframes. This is more useful than linear rotation for physics, because the angle can come from a numerical simulation. Alias: VEC.ANIM.ROTATION_PATH. |
VEC.ANIM.ROTATION_PATH | Command | Vector animation statements | Alias of VEC.ANIM.ROTATE_PATH. |
VEC.ANIM.SCALE | Command | Vector animation statements | Animates uniform scale, useful for pulsating markers or attention cues. |
VEC.ANIM.STATE | Command | Vector animation statements | Alias of VEC.ANIM.OPACITY_KEYFRAMES, intended for visibility/state timelines. |
VEC.ANIM.STOP | Command | Vector animation statements | Stops animations. Omit itemId or pass 0 to stop all animations on the canvas. |
VEC.ANIM.TRAJECTORY | Command | Vector animation statements | Alias of VEC.ANIM.PATH. |
VEC.ANIM.VISIBLE_TIMELINE | Command | Vector animation statements | Alias of VEC.ANIM.OPACITY_KEYFRAMES. |
VEC.ARROW | Command | Vector canvas statements | Adds a line with a simple arrow head, useful for annotations and motion/vector diagrams. |
VEC.ARROW_ID | Function | Vector canvas functions | Function form of VEC.ARROW. It returns the item id. |
VEC.AXES | Command | Vector canvas statements | Draws X/Y axes with optional ticks. This is intentionally simple and script-friendly. |
VEC.BATCH | Command | Vector canvas statements | Temporarily freezes viewport repaints/info-label updates while many vector items are created. Use VEC.BATCH v, TRUE before a heavy plot block and VEC.BATCH v, FALSE after it. Alias: VEC.FREEZE. |
VEC.BRUSH | Command | Vector canvas statements | Sets the fill brush for rectangles and ellipses. Use TRANSPARENT/NONE to draw outlines only. |
VEC.CAPTURE_AVI | Command | Vector export and capture statements | Captures the animated vector canvas directly to an AVI file. Default codec is MJPG; aliases: VEC.SAVE_AVI and VEC.EXPORT_AVI. |
VEC.CAPTURE_FRAMES | Command | Vector export and capture statements | Alias of VEC.CAPTURE_PNG. |
VEC.CAPTURE_PNG | Command | Vector export and capture statements | Captures a sequence of PNG frames from the current canvas while active animations are running. Aliases: VEC.CAPTURE_FRAMES and VEC.EXPORT_FRAMES. |
VEC.CAPTURE_STACK | Function | Vector canvas functions | Captures the animated vector canvas into a stack/image-sequence object that can be passed to GUI.SHOW or saved by the normal image/stack pipeline. Alias: VEC.STACK. |
VEC.CLEAR | Command | Vector canvas statements | Removes all vector items from the selected canvas without destroying the window. |
VEC.CLOSE | Command | Vector canvas statements | Closes a vector canvas window. |
VEC.CREATE | Function | Vector canvas functions | Creates an interactive vector canvas and returns a numeric handle. The canvas is a scriptable QGraphicsScene-based whiteboard that can be exported to SVG or rasterized back to a Mat. |
VEC.ELLIPSE | Command | Vector canvas statements | Adds an ellipse inscribed in the rectangle x,y,w,h using the current pen and brush. |
VEC.ELLIPSE_ID | Function | Vector canvas functions | Function form of VEC.ELLIPSE. It adds the ellipse and returns its item id. |
VEC.EXPORT_AVI | Command | Vector export and capture statements | Alias of VEC.CAPTURE_AVI. |
VEC.EXPORT_FRAMES | Command | Vector export and capture statements | Alias of VEC.CAPTURE_PNG. |
VEC.FLUSH | Command | Vector canvas statements | Alias of VEC.SYNC. |
VEC.FONT | Command | Vector canvas statements | Sets the current font used by VEC.TEXT. |
VEC.FRAME | Function | Vector canvas functions | Alias of VEC.MAT, named for animated/capture workflows: returns the current canvas frame as Mat. |
VEC.FRAME_PNG | Command | Vector export and capture statements | Alias of VEC.SAVE_FRAME. |
VEC.FREEZE | Command | Vector canvas statements | Alias of VEC.BATCH. |
VEC.GRID | Command | Vector canvas statements | Draws a lightweight grid as one vector item. It is useful as a plotting/geometry reference layer. |
VEC.IMAGE | Command | Vector canvas statements | Inserts the first frame of an image/stack into the vector canvas. If w and h are positive the image is scaled; opacity is 0..1. |
VEC.IMAGE_ID | Function | Vector canvas functions | Function form of VEC.IMAGE. It adds the image layer and returns its item id. |
VEC.ITEM.CENTER_X | Function | Vector item query functions | Returns the current scene-center x coordinate of a vector item. |
VEC.ITEM.CENTER_Y | Function | Vector item query functions | Returns the current scene-center y coordinate of a vector item. |
VEC.ITEM.DRAGGABLE | Command | Vector item statements | Alias of VEC.ITEM.MOVABLE. |
VEC.ITEM.MOVABLE | Command | Vector item statements | Makes an item draggable with the mouse inside the vector canvas. Movable items are also made selectable. Alias: VEC.ITEM.DRAGGABLE. |
VEC.ITEM.MOVE | Command | Vector item statements | Alias of VEC.ITEM.POS. |
VEC.ITEM.OPACITY | Command | Vector item statements | Sets opacity 0..1 for one existing item. |
VEC.ITEM.OPACITY_VALUE | Function | Vector item query functions | Returns the current opacity value of a vector item. |
VEC.ITEM.ORIGIN | Command | Vector item statements | Sets the local transform origin/pivot for rotation and scale. Alias: VEC.ITEM.PIVOT. This is important for physical systems such as pendulums, levers and rotating arms. |
VEC.ITEM.PIVOT | Command | Vector item statements | Alias of VEC.ITEM.ORIGIN. |
VEC.ITEM.POS | Command | Vector item statements | Sets the position transform of an existing vector item. Alias: VEC.ITEM.MOVE. |
VEC.ITEM.ROTATE | Command | Vector item statements | Rotates an existing vector item around its local bounding-box center. |
VEC.ITEM.ROTATION | Function | Vector item query functions | Returns the current rotation angle of a vector item in degrees. |
VEC.ITEM.SCALE | Command | Vector item statements | Scales an existing item around its local bounding-box center. If sy is omitted, sx is used for both axes. |
VEC.ITEM.SELECTABLE | Command | Vector item statements | Enables or disables mouse selection for an existing vector item. |
VEC.ITEM.X | Function | Vector item query functions | Returns the current x position transform of a vector item. |
VEC.ITEM.Y | Function | Vector item query functions | Returns the current y position transform of a vector item. |
VEC.ITEM.Z | Command | Vector item statements | Changes the z-order of an existing item. |
VEC.ITEM_COUNT | Function | Vector canvas functions | Returns the number of registered vector items in the canvas. |
VEC.LAST_ITEM | Function | Vector canvas functions | Returns the numeric id of the last vector item created on the canvas. This id can be used by VEC.ITEM.* and VEC.ANIM.* commands. |
VEC.LAYER | Command | Vector layer statements | Alias of VEC.LAYER.SELECT. |
VEC.LAYER.CLEAR | Command | Vector layer statements | Deletes all vector items assigned to the selected layer. Useful for interactive redraw loops where a dynamic overlay is recalculated. |
VEC.LAYER.SELECT | Command | Vector layer statements | Selects the current drawing layer. New vector items are assigned to that layer. The default layer is named default. |
VEC.LAYER.SHOW | Command | Vector layer statements | Alias of VEC.LAYER.VISIBLE. |
VEC.LAYER.VISIBLE | Command | Vector layer statements | Shows or hides all items belonging to a layer. Alias: VEC.LAYER.SHOW. |
VEC.LINE | Command | Vector canvas statements | Adds a line using the current pen. |
VEC.LINE_ID | Function | Vector canvas functions | Function form of VEC.LINE. It adds the line and returns its item id. |
VEC.MAT | Function | Vector canvas functions | Rasterizes the current vector canvas and returns it as an image/Mat value. By default it produces a normal 3-channel BGR Mat; with transparent=TRUE it keeps an alpha channel and makes the background transparent. |
VEC.NEW | Function | Vector canvas functions | Alias of VEC.CREATE. |
VEC.OPACITY | Command | Vector canvas statements | Sets the default opacity for following vector items. Opacity is 0..1. |
VEC.PEN | Command | Vector canvas statements | Sets the current stroke color, width and style for following vector primitives. Colors are Qt names or #RRGGBB. Styles: SOLID, DASH, DOT, DASHDOT, DASHDOTDOT, NONE. |
VEC.PLOT.AREA | Command | Vector plot statements | Draws a filled area under a data polyline down to a baseline. Use VEC.BRUSH before the command to choose the fill color; alias: VEC.PLOT.FILL. |
VEC.PLOT.AXES | Command | Vector plot statements | Draws a scientific plot frame in the given rectangle, including border, tick marks, optional grid and zero axes when visible in range. |
VEC.PLOT.BAR | Command | Vector plot statements | Alias of VEC.PLOT.BARS. |
VEC.PLOT.BARS | Command | Vector plot statements | Draws a categorical bar plot from a numeric list. The current brush fills the bars, and the current pen outlines them. |
VEC.PLOT.FILL | Command | Vector plot statements | Alias of VEC.PLOT.AREA. |
VEC.PLOT.FUNCTION | Command | Vector plot statements | Evaluates a function of x and plots it as a polyline. The expression can use normal math functions such as SIN, COS, EXP, SQRT, etc. When autoScale is TRUE the y range is estimated from the sampled values. |
VEC.PLOT.FUNCTION_ID | Function | Vector plot functions | Function form of VEC.PLOT.FUNCTION. It returns the created item id of the plotted curve. |
VEC.PLOT.HIST | Command | Vector plot statements | Alias of VEC.PLOT.HISTOGRAM. |
VEC.PLOT.HISTOGRAM | Command | Vector plot statements | Builds a histogram from a numeric list. If xMin=xMax the range is auto-estimated; if yMax<=0 the histogram height is auto-scaled. Alias: VEC.PLOT.HIST. |
VEC.PLOT.LABELS | Command | Vector plot statements | Adds title, X label and Y label to a plot rectangle. The Y label is rotated vertically. |
VEC.PLOT.LEGEND | Command | Vector plot statements | Draws a small legend box. Each item uses color|label syntax; comma is also accepted as separator. |
VEC.PLOT.PARAMETRIC | Command | Vector plot statements | Evaluates a parametric curve using variable t and plots it in the selected rectangle. Useful for circles, spirals, Lissajous figures and many mathematical curves. |
VEC.PLOT.PARAMETRIC_ID | Function | Vector plot functions | Function form of VEC.PLOT.PARAMETRIC. It returns the created item id of the plotted curve. |
VEC.PLOT.POINTS | Command | Vector plot statements | Alias of VEC.PLOT.XY. |
VEC.PLOT.SCATTER | Command | Vector plot statements | Plots a list of data-space points as vector point markers in the selected plot rectangle. |
VEC.PLOT.TICKS | Command | Vector plot statements | Adds numeric tick labels around a VEC.PLOT.AXES rectangle. decimals=-1 uses compact general formatting. |
VEC.PLOT.XY | Command | Vector plot statements | Plots a polyline from data-space points into the specified plot rectangle. Alias: VEC.PLOT.POINTS. |
VEC.PLOT.XY_ID | Function | Vector plot functions | Function form of VEC.PLOT.XY. It plots the data polyline and returns the created item id. |
VEC.PNG | Command | Vector export and capture statements | Alias of VEC.SAVE_PNG. |
VEC.POINT | Command | Vector canvas statements | Adds a small circular point marker using the current pen color. |
VEC.POINT_ID | Function | Vector canvas functions | Function form of VEC.POINT. It adds the point marker and returns its item id. |
VEC.POLYGON | Command | Vector canvas statements | Adds a closed polygon using the current pen and brush. |
VEC.POLYGON_ID | Function | Vector canvas functions | Function form of VEC.POLYGON. It returns the item id. |
VEC.POLYLINE | Command | Vector canvas statements | Adds an open polyline. The point list is a compact string using semicolon-separated x,y pairs. |
VEC.POLYLINE_ID | Function | Vector canvas functions | Function form of VEC.POLYLINE. It returns the item id. |
VEC.RECT | Command | Vector canvas statements | Adds a rectangle using the current pen and brush. |
VEC.RECT_ID | Function | Vector canvas functions | Function form of VEC.RECT. It adds the rectangle and returns its item id. |
VEC.SAVE_AVI | Command | Vector export and capture statements | Alias of VEC.CAPTURE_AVI. |
VEC.SAVE_FRAME | Command | Vector export and capture statements | Captures the current animated canvas state to a PNG frame. With transparent=TRUE the background is transparent. Alias: VEC.FRAME_PNG. |
VEC.SAVE_PNG | Command | Vector export and capture statements | Rasterizes and saves the current vector canvas as a PNG preview. |
VEC.SAVE_SVG | Command | Vector export and capture statements | Exports the vector canvas to SVG. This keeps vector primitives scalable and is ideal for reports/documentation. |
VEC.STACK | Function | Vector canvas functions | Alias of VEC.CAPTURE_STACK. |
VEC.SVG | Command | Vector export and capture statements | Alias of VEC.SAVE_SVG. |
VEC.SYNC | Command | Vector canvas statements | Processes pending Qt GUI events for a bounded time. Use it after heavy vector scene creation and before export/animation when a script builds many items continuously. maxMs is clamped to 1..250 ms. Alias: VEC.FLUSH. |
VEC.TEXT | Command | Vector canvas statements | Adds a text item using the current pen color and current font. |
VEC.TEXT_ID | Function | Vector canvas functions | Function form of VEC.TEXT. It adds the text and returns its item id. |
VEC.TO_MAT | Function | Vector canvas functions | Alias of VEC.MAT. |
VEC.Z | Command | Vector canvas statements | Sets the default z-order for following vector items. Higher values are drawn above lower values. |
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. |
WEND | Keyword | Language keywords | Closes the WHILE loop. |
WHILE | Keyword | Language keywords | Starts a conditional loop. |
expr AND expr
Logical AND operator.
IF NOT CV.IS_STACK(img) AND CV.WIDTH(img) > 0 THEN
PRINT "single image"
ENDIFAP.ABS dst, a
Absolute value.
AP.ABS aa, aAP.ADD dst, a, b
Adds AP operands and stores the result.
AP.ADD c, a, bAP.CBRT dst, a [, digits]
Computes the cube root.
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.CBRT r3, "3", 100AP.CEIL dst, a
Ceiling of an AP value.
AP.CEIL c, xAP.CLEAR
Deletes all AP variables from the current runtime.
AP.CLEARAP.COMPARE(a, b)
Compares two AP variables or literals. Returns -1, 0 or +1.
cmp = AP.COMPARE("a", "b")AP.COPY dst, src
Copies an AP variable or numeric literal into another AP variable.
AP.COPY backup, resultAP.COS dst, a [, digits]
Computes cosine.
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.COS c, pi, 120AP.COUNT()
Returns how many AP variables are currently stored.
PRINT AP.COUNT()AP.DELETE name
Deletes one AP variable.
AP.DELETE tmpAP.DIGITS(name)
Returns the number of significant digits currently stored in the AP value.
PRINT AP.DIGITS("x")AP.DIV dst, a, b [, digits]
Divides a by b using the given digit precision, or the current AP.PRECISION setting.
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.DIV q, one, seven, 120AP.DOUBLE(name)
Converts an AP value to a normal Basic double. This is an explicit lossy bridge back to ordinary expressions.
x = AP.DOUBLE("result")AP.E dst
Stores Euler's number into an AP variable.
AP.E eAP.EVAL dst, "expression"
Evaluates a compact arbitrary-precision expression inside the AP world. Supports AP variables, numeric literals, pi/e, + - * / ^, parentheses and functions such as sqrt, sin, cos, log, exp, pow, fact, gcd, mod. AP.LET is the friendly alias.
AP.EVAL y, "sin(pi/7)^2 + cos(pi/7)^2"
PRINT AP.STR("y", 100)AP.EXISTS(name)
Returns TRUE if an AP variable exists.
IF AP.EXISTS("c") THEN PRINT AP.STR("c")AP.EXP dst, a [, digits]
Computes e^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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.EXP ex, x, 100AP.EXPONENT(name)
Returns the MAPM decimal exponent of the AP value.
PRINT AP.EXPONENT("x")AP.FACT dst, a
Computes factorial for integer AP values. AP.FACTORIAL is the long alias.
AP.FACT f100, "100"AP.FACTORIAL dst, a
Long alias of AP.FACT.
AP.FACTORIAL f100, "100"AP.FIXED(name [, decimals])
Returns an AP value as fixed-point decimal text.
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 |
|---|---|
decimals | Optional parameter. If omitted, the command uses its internal default. |
PRINT AP.FIXED("pi", 80)AP.FLOOR dst, a
Floor of an AP value.
AP.FLOOR f, xAP.GCD dst, a, b
Greatest common divisor for integer AP values.
AP.GCD g, a, bAP.IDIV dst, a, b
Integer division quotient.
AP.IDIV q, a, bAP.INTSTR(name)
Returns the integer part as a string.
PRINT AP.INTSTR("f100")AP.IPOW dst, a, integerExponent [, digits]
Computes an integer exponent power. Useful for exact or near-exact high-precision power series tests.
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.IPOW p, x, 12AP.LCM dst, a, b
Least common multiple for integer AP values.
AP.LCM l, a, bAP.LET dst, "expression"
Alias of AP.EVAL, useful when the AP expression reads like an assignment into the AP variable table.
AP.LET r, "(sqrt(2)+sqrt(3))^2"AP.LOG dst, a [, digits]
Computes the natural logarithm.
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.LOG lx, x, 100AP.LOG10 dst, a [, digits]
Computes the base-10 logarithm.
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.LOG10 l10, x, 100AP.MOD dst, a, b
Integer remainder.
AP.MOD r, a, bAP.MUL dst, a, b
Multiplies AP operands and stores the result.
AP.MUL p, a, bAP.NEG dst, a
Changes sign of an AP value.
AP.NEG n, aAP.PI dst
Stores pi into an AP variable.
AP.PI piAP.POW dst, a, b [, digits]
Computes a raised to b with arbitrary precision.
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.POW y, x, "0.5", 100AP.PRECISION digits
Sets the global decimal digit precision used by AP arithmetic. AP variables live in a separate namespace and are not normal Basic numeric variables.
AP.PRECISION 120AP.PRECISION_VALUE()
Returns the current AP precision setting.
PRINT AP.PRECISION_VALUE()AP.PROD dst, index, start, end, "expression" [, step]
Evaluates an AP expression repeatedly while index is an AP integer variable, accumulating the product.
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 |
|---|---|
step | Optional parameter. If omitted, the command uses its internal default. |
AP.PROD p, k, 1, 20, "1 + 1 / k^2"
PRINT AP.STR("p", 80)AP.RANDOM dst
Stores a MAPM random value in [0,1).
AP.RANDOM rndAP.ROUND dst, a, digits
Rounds an AP value.
AP.ROUND r, pi, 40AP.SET name, value
Creates or replaces an arbitrary-precision variable. Prefer quoted numeric strings for exact decimal input; numeric Basic values already have double precision.
AP.SET a, "0.1"
AP.SET b, "0.2"AP.SIGN(name)
Returns -1, 0 or +1 depending on the AP value sign.
PRINT AP.SIGN("x")AP.SIN dst, a [, digits]
Computes sine.
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.SIN s, pi, 120AP.SQRT dst, a [, digits]
Computes the square root.
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.SQRT r2, "2", 120AP.STR(name [, digits])
Returns an AP value as a string. In expressions, pass the AP variable name as a string, for example AP.STR("c", 80).
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
PRINT AP.STR("c", 80)AP.SUB dst, a, b
Subtracts b from a and stores the result.
AP.SUB d, a, bAP.SUM dst, index, start, end, "expression" [, step]
Evaluates an AP expression repeatedly while index is an AP integer variable, accumulating the sum. The previous index variable is restored after the loop.
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 |
|---|---|
step | Optional parameter. If omitted, the command uses its internal default. |
AP.PRECISION 120
AP.SUM eApprox, k, 0, 80, "1 / fact(k)"
PRINT AP.STR("eApprox", 100)AP.TAN dst, a [, digits]
Computes tangent.
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 |
|---|---|
digits | Optional parameter. If omitted, the command uses its internal default. |
AP.TAN t, angle, 100AP.VERSION()
Returns the underlying MAPM library version.
PRINT AP.VERSION()ARRAY
Logical type returned by TYPE(x) for arrays.
ARRAYARRAY.COLUMN(array2d, column)
Extracts one column from a 2D array and returns a 1D array.
x = ARRAY.COLUMN(points, 0)ARRAY.DIMS(array)
Returns the number of dimensions.
value = ARRAY.DIMS(array)ARRAY.DIMSIZE(array, dimension)
Returns the size of one zero-based dimension.
value = ARRAY.DIMSIZE(array, dimension)ARRAY.EQUAL(a, b [, eps])
Returns TRUE when two arrays have the same shape and equal values, with optional numeric tolerance.
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 |
|---|---|
eps | Optional parameter. If omitted, the command uses its internal default. |
value = ARRAY.EQUAL(a, b [, eps])ARRAY.FROM_TEXT(text [, delimiter [, numeric]])
Reads an array from ARRAY.TO_TEXT output or plain delimited rows.
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 |
|---|---|
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
numeric | When true, forces numeric conversion of CSV values. |
b = ARRAY.FROM_TEXT(ARRAY.TO_TEXT(a))ARRAY.GET(array, indexOrRow [, column]) or array[indexOrRow[,column]]
Reads an array element. For vector-like 2D arrays n x 1 or 1 x n, one-index access is accepted: v[0] or ARRAY.GET(v,0).
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 |
|---|---|
column | Optional parameter. If omitted, the command uses its internal default. |
indexOrRow | Optional parameter. If omitted, the command uses its internal default. |
value = ARRAY.GET(array, indexOrRow [, column]) or array[indexOrRow[,column]]ARRAY.IS_ARRAY(value)
Returns TRUE when the value is a script array.
value = ARRAY.IS_ARRAY(value)ARRAY.MAX(array)
Returns the maximum numeric element.
value = ARRAY.MAX(array)ARRAY.MEAN(array)
Returns the mean of all numeric elements in the array.
value = ARRAY.MEAN(array)ARRAY.MIN(array)
Returns the minimum numeric element.
value = ARRAY.MIN(array)ARRAY.ROW(array2d, row)
Extracts one row from a 2D array and returns a 1D array.
value = ARRAY.ROW(array2d, row)ARRAY.SET(array, index, value) or ARRAY.SET(array, row, column, value)
Writes an array element and returns the same array object. Vector-like 2D arrays n x 1 or 1 x n also accept one-index writes.
value = ARRAY.SET(array, index, value) or ARRAY.SET(array, row, column, value)ARRAY.SIZE(array)
Returns the total number of elements.
value = ARRAY.SIZE(array)ARRAY.STDDEV(array)
Returns the population standard deviation of all numeric elements.
value = ARRAY.STDDEV(array)ARRAY.SUM(array)
Returns the sum of all numeric elements in the array.
value = ARRAY.SUM(array)ARRAY.TO_TEXT(array [, delimiter])
Serializes a 1D/2D array to a compact CVB_ARRAY text block.
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 |
|---|---|
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
value = ARRAY.TO_TEXT(array [, delimiter])... AS name
Assigns the result of a command to a variable, or names the local return variable in FUNCTION ... AS result.
CV.GRAY img AS grayASSERT condition [, message]
Stops the script with a clear error if condition is false. Useful for diagnostic and regression scripts.
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 |
|---|---|
message | Optional parameter. If omitted, the command uses its internal default. |
ASSERT CV.WIDTH(img) = 64, "Unexpected image width"CALL name([arg1 [, arg2 ...]])
Executes a SUB block. Simple variable arguments are copied back after the call.
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 |
|---|---|
arg1 | Optional parameter. If omitted, the command uses its internal default. |
arg2 | Optional parameter. If omitted, the command uses its internal default. |
SUB PROCESS_IMAGE(src, dst)
CV.GRAY src AS g
CV.CLAHE g, 2.0, 8 AS dst
ENDSUB
CALL PROCESS_IMAGE(img, enhanced)
FUNCTION DOUBLE_VALUE(x)
RETURN x * 2
ENDFUNCTIONCASE expression [, expression ...] | CASE low TO high | CASE > expr
Introduces one SWITCH branch. Multiple comma-separated values are allowed. Numeric ranges and comparisons are supported. Only the first matching branch is executed.
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 |
|---|---|
expression | Optional parameter. If omitted, the command uses its internal default. |
SWITCH score
CASE 0 TO 30
PRINT "low"
CASE 31 TO 70
PRINT "medium"
CASE > 70
PRINT "high"
DEFAULT
PRINT "invalid"
ENDSWITCHCATCH [errVar [, lineVar]]
Handles a runtime error from the preceding TRY block. Optional variables receive the message and source line.
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 |
|---|---|
errVar | Optional parameter. If omitted, the command uses its internal default. |
lineVar | Optional parameter. If omitted, the command uses its internal default. |
TRY
IO.LOAD "missing.png" AS img
CATCH err, line
PRINT "Error at line "; line; ": "; err
ENDTRYMASK.COUNT_NONZERO(mask)
Compatibility alias for COUNT_NONZERO / MASK.COUNT.
n = MASK.COUNT_NONZERO(mask)CV.ABSDIFF left, right AS dst
Computes the absolute difference between two images or stacks.
CV.ABSDIFF left, right AS dstCV.ADAPTIVE_THRESHOLD src [, blockSize [, c]] AS dst
Applies an adaptive threshold frame-by-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 |
|---|---|
blockSize | Local analysis window size used by the algorithm. |
c | Optional parameter. If omitted, the command uses its internal default. |
CV.ADAPTIVE_THRESHOLD src [, blockSize [, c]] AS dstCV.ADD left, right AS dst
Adds two images or stacks. A single image can be broadcast across a stack.
CV.ADD left, right AS dstCV.ADDS src, scalar AS dst
Adds a scalar value to every pixel.
CV.ADDS src, scalar AS dstCV.ADJUST_COLOR src, brightness, contrastPercent, hueShift, saturationPercent AS dst
Applies brightness/contrast in BGR and hue/saturation in HSV; useful with GUI trackbars in live webcam demos.
CV.ADJUST_COLOR frame, brightness, contrast, hue, saturation AS tunedCV.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.BG_SUBTRACT stack, method [, history [, varThreshold]] AS dst
Applies MOG2 or KNN background subtraction to a video/stack and returns an 8-bit foreground-mask stack. method can be "MOG2" or "KNN".
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 |
|---|---|
history | Optional parameter. If omitted, the command uses its internal default. |
varThreshold | Optional parameter. If omitted, the command uses its internal default. |
IO.LOAD "input.avi" AS st
CV.BG_SUBTRACT st, "MOG2", 80, 16 AS fgCV.BILATERAL src [, d [, sigmaColor [, sigmaSpace]]] AS dst
Applies bilateral edge-preserving smoothing frame-by-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 |
|---|---|
d | Bilateral filter neighborhood diameter. |
sigmaColor | Bilateral filter sigma in color/intensity space. |
sigmaSpace | Bilateral filter sigma in coordinate space. |
CV.BILATERAL img, 9, 75, 75 AS denCV.BITAND left, right AS dst
Computes the bitwise AND of two images or stacks. A single-channel mask can be broadcast to match a multi-channel image when size and depth already match.
CV.BITAND left, right AS dstCV.BITNOT src AS dst
Computes the bitwise NOT of the source image or stack.
CV.BITNOT src AS dstCV.BITOR left, right AS dst
Computes the bitwise OR of two images or stacks. A single-channel operand can be broadcast to match a multi-channel image when size and depth already match.
CV.BITOR left, right AS dstCV.BITXOR left, right AS dst
Computes the bitwise XOR of two images or stacks. A single-channel operand can be broadcast to match a multi-channel image when size and depth already match.
CV.BITXOR left, right AS dstCV.BLACKHAT src [, radius [, shape [, iterations]]] AS dst
Computes the black-hat transform frame-by-frame with selectable kernel shape.
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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
shape | Optional parameter. If omitted, the command uses its internal default. |
iterations | Number of repeated passes applied by the operation. |
CV.BLACKHAT gray, 4, RECT, 1 AS blackhatMapCV.BLUR src [, radius] AS dst
Applies a simple blur frame-by-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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
CV.BLUR src [, radius] AS dstCV.CAMSHIFT src, roi [, hBins [, sBins [, maxIter [, epsilon]]]] AS rects[, preview]
Tracks the ROI color model with HSV backprojection and OpenCV CamShift, returning both the bounding rect and rotated box geometry in the N x 11 rects table. The optional preview draws rect and rotated box.
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 |
|---|---|
hBins | Optional parameter. If omitted, the command uses its internal default. |
sBins | Optional parameter. If omitted, the command uses its internal default. |
maxIter | Optional parameter. If omitted, the command uses its internal default. |
epsilon | Optional parameter. If omitted, the command uses its internal default. |
preview | Optional parameter. If omitted, the command uses its internal default. |
CV.CAMSHIFT st, rect, 30, 32, 20, 1.0 AS rects, previewCV.CANNY src, low, high AS dst
Runs Canny edge detection frame-by-frame.
CV.CANNY src, low, high AS dstCV.CANVAS width, height [, channels [, background]] AS dst
Creates a new 8-bit canvas image with 1 to 4 channels and a constant background value.
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 |
|---|---|
channels | Number of channels to create or process. |
background | Initial canvas background value. |
CV.CANVAS width, height [, channels [, background]] AS dstCV.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.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.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.CHANNEL src, index AS dst
Extracts one channel as a single-channel image or stack.
CV.CHANNEL src, index AS dstCV.CHANNELS(image)
Number of channels in the image or stack frames.
value = CV.CHANNELS(image)CV.CIRCLE_MASK width, height, cx, cy, radius [, value] AS dst
Creates a single-channel circular mask.
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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
CV.CIRCLE_MASK 80, 60, 40, 30, 12 AS maskCV.CIRCULARITY(mask)
Circularity of the largest contour, computed as 4*pi*area / perimeter^2.
value = CV.CIRCULARITY(mask)CV.CLAHE src [, clipLimit [, tiles]] AS dst
Applies contrast-limited adaptive histogram equalization. On color images it works on the L channel in Lab.
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 |
|---|---|
clipLimit | CLAHE contrast clipping limit. |
tiles | CLAHE tile grid size; one value creates a square grid. |
CV.CLAHE src [, clipLimit [, tiles]] AS dstCV.CLONE src AS dst
Duplicates the image or stack object.
CV.CLONE src AS dstCV.COLOR src, mode AS dst
Converts between common color spaces such as BGR, HSV, Lab, and gray.
CV.COLOR src, mode AS dstCV.COMPARE src, op, value AS dst
Creates a mask by comparing pixels with a scalar value. Operators: >, >=, <, <=, ==, !=.
CV.COMPARE img, ">", 128 AS maskCV.COMPLEX_CONJ complexImage AS dst
Computes the complex conjugate of a complex image by negating the imaginary channel.
CV.COMPLEX_CONJ complexImage AS dstCV.COMPLEX_MAGNITUDE complexImage AS magnitudeImage
Computes per-pixel magnitude sqrt(re^2 + im^2) from a complex image.
CV.COMPLEX_MAGNITUDE complexImage AS magnitudeImageCV.COMPLEX_PHASE complexImage AS phaseImage
Computes per-pixel phase angle atan2(im,re), in radians, from a complex image.
CV.COMPLEX_PHASE complexImage AS phaseImageCV.CONNECTED_COMPONENTS src [, connectivity] AS dst
Labels foreground connected components in a binary mask derived from non-zero pixels.
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 |
|---|---|
connectivity | Connected-component connectivity, normally 4 or 8. |
CV.CONNECTED_COMPONENTS src [, connectivity] AS dstCV.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.CONTOURS mask [, mode [, approx]] AS points, info
Extracts contours as numeric arrays. points columns: contourId, pointIndex, x, y. info columns: contourId, area, perimeter, x, y, w, h, pointCount. Modes: EXTERNAL, ALL/LIST, TREE, CCOMP. Approximation: SIMPLE or NONE.
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. |
approx | Optional parameter. If omitted, the command uses its internal default. |
CV.CONTOURS mask, EXTERNAL, SIMPLE AS contourPts, contourInfo
PRINT ARRAY.DIMSIZE(contourInfo, 0)CV.CONVERT src, depth [, alpha [, beta]] AS dst
Converts OpenCV depth with optional scale and offset. Depth tokens include 8U, 16U, 32F, 64F and SAME.
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 |
|---|---|
alpha | Multiplicative scale factor. |
beta | Additive offset after scaling. |
CV.CONVERT img, "32F", 1.0 / 255.0 AS fCV.CORNER_SUBPIX src, points [, winSize [, maxIter [, epsilon]]] AS refinedPoints
Refines an Nx2 or Nx>=2 point array with OpenCV cornerSubPix and returns a refined Nx2 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 |
|---|---|
winSize | Optical-flow averaging window size; larger values are smoother and less local. |
maxIter | Optional parameter. If omitted, the command uses its internal default. |
epsilon | Optional parameter. If omitted, the command uses its internal default. |
CV.GOOD_FEATURES_POINTS img, 80, 0.01, 10 AS pts
CV.CORNER_SUBPIX img, pts, 5, 40, 0.001 AS refinedCV.COUNT_NONZERO(mask)
Compatibility alias for COUNT_NONZERO / MASK.COUNT.
n = CV.COUNT_NONZERO(mask)CV.CROP src, x, y, w, h AS dst
Crops a ROI from the image or from all frames in the stack.
CV.CROP src, x, y, w, h AS dstCV.CROP_RECT src, rect AS dst
Crops a half-open RECT geometry from an image or from every frame in a stack. rect can be returned by RECT.CREATE, RECT.FROM_TEXT, RECT.CLIP, RECT.INTERSECT or ROI.RECT.
r = RECT.CREATE(10, 20, 30, 40)
CV.CROP_RECT img, r AS patchCV.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])CV.DETECT_OBJECTS src, cascadeFile [, scaleFactor [, minNeighbors [, minSizeW [, minSizeH]]]] AS rects[, preview]
Runs an OpenCV Haar/LBP cascade over an image or stack. rects columns: frameIndex, detectionIndex, x, y, w, h, score, classId. A sentinel row frameIndex=-1 means no detections. The optional preview draws rectangles.
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 |
|---|---|
scaleFactor | Optional parameter. If omitted, the command uses its internal default. |
minNeighbors | Optional parameter. If omitted, the command uses its internal default. |
minSizeW | Optional parameter. If omitted, the command uses its internal default. |
minSizeH | Optional parameter. If omitted, the command uses its internal default. |
preview | Optional parameter. If omitted, the command uses its internal default. |
CV.DETECT_OBJECTS img, "haarcascade_frontalface_default.xml", 1.1, 4 AS faces, previewCV.DFT_COMPLEX src AS spectrum
Computes a complex 2D DFT. A real single-channel input becomes CV_32FC2; a complex two-channel input is transformed as complex data.
CV.DFT_COMPLEX src AS specCV.DFT_MAGNITUDE src [, logScale] AS dst
Computes a centered 2D DFT magnitude map from the grayscale source, normalized to 0..255 as 32F.
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 |
|---|---|
logScale | When true, applies logarithmic visualization scaling to spectral magnitude/power. |
CV.DFT_MAGNITUDE img, TRUE AS specCV.DFT_SHIFT spectrum AS centered
Circularly shifts a real or complex spectrum so the DC component is at the image center. Dimensions are preserved, including odd sizes.
CV.DFT_SHIFT spectrum AS centeredCV.DILATE src [, radius [, shape [, iterations]]] AS dst
Applies morphological dilation frame-by-frame. shape can be ELLIPSE, RECT, or CROSS. The old numeric third parameter is still accepted as iterations.
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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
shape | Optional parameter. If omitted, the command uses its internal default. |
iterations | Number of repeated passes applied by the operation. |
CV.DILATE mask, 2, CROSS, 1 AS dilatedCV.DISTANCE src [, distanceType [, maskSize]] AS dst
Computes the distance transform of a binary mask derived from non-zero pixels.
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 |
|---|---|
distanceType | Distance-transform metric selector. |
maskSize | Distance-transform mask size. |
CV.DISTANCE src [, distanceType [, maskSize]] AS dstCV.DISTANCE_TRANSFORM mask [, distanceType [, maskSize [, normalize]]] AS dst
Computes a distance transform from a binary/non-zero mask. distanceType can be L1, L2 or C; maskSize can be 0, 3 or 5. normalize=TRUE scales the map to 0..255 as 32F.
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 |
|---|---|
distanceType | Distance-transform metric selector. |
maskSize | Distance-transform mask size. |
normalize | Optional parameter. If omitted, the command uses its internal default. |
CV.DISTANCE_TRANSFORM mask, L2, 5, TRUE AS distMapCV.DIV left, right AS dst
Performs pixel-wise division between two images or stacks.
CV.DIV left, right AS dstCV.DIVS src, scalar AS dst
Divides every pixel/channel of an image or stack by a non-zero scalar. This is clearer than CV.MULS src, 1/scalar.
CV.DIVS img, 2.0 AS halfCV.DRAW_BBOX src, mask [, value [, thickness]] AS dst
Draws the bounding box of the largest mask contour over the source image or 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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
thickness | Optional parameter. If omitted, the command uses its internal default. |
CV.DRAW_BBOX img, mask, 255, 2 AS boxedCV.DRAW_CONTOURS src, mask [, value [, thickness]] AS dst
Draws external contours extracted from a binary mask over the source image or 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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
thickness | Optional parameter. If omitted, the command uses its internal default. |
CV.DRAW_CONTOURS img, mask, 255, 1 AS overlayCV.DRAW_FLOW_ARROWS src, flow [, step [, scale [, minMag [, b [, g [, r [, thickness]]]]]]] AS dst
Draws optical-flow vectors as arrows over an image. The flow input must be generated by CV.FARNEBACK mode FLOW. Color uses OpenCV B,G,R order.
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 |
|---|---|
step | Optional parameter. If omitted, the command uses its internal default. |
scale | Multiplicative scale factor; for geometric transforms it may mean image scale around the center. |
minMag | Optional parameter. If omitted, the command uses its internal default. |
b | Optional parameter. If omitted, the command uses its internal default. |
g | Optional parameter. If omitted, the command uses its internal default. |
r | Optional parameter. If omitted, the command uses its internal default. |
thickness | Optional parameter. If omitted, the command uses its internal default. |
CV.DRAW_FLOW_ARROWS frame, flow, 24, 4.0, 0.6, 0, 255, 255, 1 AS arrowsCV.DRAW_MATCHES img1, kp1, img2, kp2, desc1, desc2 [, maxDistance] AS dst
Matches ORB descriptors with a Hamming BFMatcher and draws the selected matches between two images. Kept for compatibility; use CV.MATCH_ORB + CV.DRAW_MATCHES_DATA when the match list must be reused.
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 |
|---|---|
maxDistance | Optional parameter. If omitted, the command uses its internal default. |
CV.DRAW_MATCHES imgA, kpA, imgB, kpB, descA, descB, 64 AS matchesPreviewCV.DRAW_MATCHES_DATA img1, kp1, img2, kp2, matches [, maxDraw] AS dst
Draws matches from a numeric matches/inliers array, useful after CV.FIND_HOMOGRAPHY RANSAC filtering.
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 |
|---|---|
maxDraw | Optional parameter. If omitted, the command uses its internal default. |
CV.DRAW_MATCHES_DATA imgA, kpA, imgB, kpB, inliers, 100 AS inlierPreviewCV.EDGES src AS dst
Computes an edge map frame-by-frame.
CV.EDGES src AS dstCV.EQUALIZE src AS dst
Equalizes the histogram frame-by-frame.
CV.EQUALIZE src AS dstCV.ERODE src [, radius [, shape [, iterations]]] AS dst
Applies morphological erosion frame-by-frame. shape can be ELLIPSE, RECT, or CROSS. The old numeric third parameter is still accepted as iterations.
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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
shape | Optional parameter. If omitted, the command uses its internal default. |
iterations | Number of repeated passes applied by the operation. |
CV.ERODE mask, 2, RECT, 1 AS erodedCV.EXTENT(mask)
Largest contour area divided by its bounding-rectangle area.
value = CV.EXTENT(mask)CV.FARNEBACK stack [, mode [, pyrScale [, levels [, winsize [, iterations [, polyN [, polySigma]]]]]]] AS dst OR CV.FARNEBACK prev, next [, mode [, pyrScale [, levels [, winsize [, iterations [, polyN [, polySigma]]]]]]] AS dst (robust defaults: pyrScale=0.5, levels=5, winsize=25, iterations=5, polyN=7, polySigma=1.5)
Computes dense Farneback optical flow either between consecutive frames of a stack or between two images/two stacks, returning raw flow, magnitude, angle, or a color visualization. Uses robust defaults and the Gaussian Farneback window for more stable video results.
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. |
pyrScale | Farneback pyramid scale between image levels. |
levels | Number of pyramid levels used by the optical-flow algorithm. |
winsize | Optical-flow averaging window size; larger values are smoother and less local. |
iterations | Number of repeated passes applied by the operation. |
polyN | Farneback polynomial neighborhood size. |
polySigma | Farneback Gaussian smoothing sigma for polynomial expansion. |
CV.FARNEBACK stack [, mode [, pyrScale [, levels [, winsize [, iterations [, polyN [, polySigma]]]]]]] AS dst OR CV.FARNEBACK prev, next [, mode [, pyrScale [, levels [, winsize [, iterations [, polyN [, polySigma]]]]]]] AS dst (robust defaults: pyrScale=0.5, levels=5, winsize=25, iterations=5, polyN=7, polySigma=1.5)CV.FILL_HOLES mask AS dst
Fills internal holes of a binary mask derived from non-zero pixels.
CV.FILL_HOLES mask AS filledCV.FILTER2D src, kernelText [, scale [, delta]] AS dst
Applies a custom 2D convolution kernel. Kernel rows are separated by semicolons; values by spaces or commas.
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 |
|---|---|
scale | Multiplicative scale factor; for geometric transforms it may mean image scale around the center. |
delta | Optional parameter. If omitted, the command uses its internal default. |
CV.FILTER2D img, "0 -1 0; -1 5 -1; 0 -1 0" AS sharpCV.FIND_HOMOGRAPHY kp1, kp2, matches [, ransacThreshold] AS H, inliers
Estimates a 3x3 homography with RANSAC. H maps image-2/keypoints-2 coordinates onto image-1/keypoints-1 coordinates. inliers columns are queryIdx, trainIdx, distance, sourceMatchIndex.
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 |
|---|---|
ransacThreshold | Optional parameter. If omitted, the command uses its internal default. |
CV.FIND_HOMOGRAPHY kpA, kpB, matches, 3.0 AS H, inliersCV.FLIP src, mode AS dst
Flips an image or every stack frame. Modes: H/X horizontal, V/Y vertical, BOTH/XY both axes, or numeric OpenCV flipCode -1/0/1.
CV.FLIP img, "H" AS flippedCV.FLOW_COLOR flow [, border] AS dst
Converts a 2-channel CV.FARNEBACK FLOW map to a BGR color visualization: hue is direction and brightness is motion magnitude.
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 |
|---|---|
border | Optional parameter. If omitted, the command uses its internal default. |
CV.FARNEBACK prevGray, gray, "FLOW" AS flow
CV.FLOW_COLOR flow AS flowColorCV.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.FREQ_BAND_PASS centeredSpectrum, innerRadius, outerRadius AS filteredSpectrum
Keeps a centered annular frequency band and rejects frequencies outside the selected radii.
CV.FREQ_BAND_PASS centeredSpectrum, innerRadius, outerRadius AS filteredSpectrumCV.FREQ_GAUSSIAN_HIGH_PASS centeredSpectrum, sigma AS filteredSpectrum
Applies a smooth Gaussian high-pass mask to a centered complex spectrum.
CV.FREQ_GAUSSIAN_HIGH_PASS centeredSpectrum, sigma AS filteredSpectrumCV.FREQ_GAUSSIAN_LOW_PASS centeredSpectrum, sigma AS filteredSpectrum
Applies a smooth Gaussian low-pass mask to a centered complex spectrum.
CV.FREQ_GAUSSIAN_LOW_PASS centeredSpectrum, sigma AS filteredSpectrumCV.FREQ_HIGH_PASS centeredSpectrum, radius AS filteredSpectrum
Applies an ideal circular high-pass mask to a centered complex spectrum.
CV.FREQ_HIGH_PASS centeredSpectrum, radius AS filteredSpectrumCV.FREQ_LOW_PASS centeredSpectrum, radius AS filteredSpectrum
Applies an ideal circular low-pass mask to a centered complex spectrum.
CV.FREQ_LOW_PASS centeredSpectrum, radius AS filteredSpectrumCV.FREQ_NOTCH centeredSpectrum, offsetX, offsetY, radius [, mirror] AS filteredSpectrum
Suppresses a circular notch at the offset from the centered DC component. mirror=TRUE also suppresses the symmetric notch.
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 |
|---|---|
mirror | Optional parameter. If omitted, the command uses its internal default. |
CV.FREQ_NOTCH centeredSpectrum, offsetX, offsetY, radius [, mirror] AS filteredSpectrumCV.GAMMA src, CV.GAMMA AS dst
Applies gamma correction frame-by-frame.
CV.GAMMA src, CV.GAMMA AS dstCV.GAUSSIAN src [, radius] AS dst
Applies a Gaussian blur frame-by-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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
CV.GAUSSIAN src [, radius] AS dstCV.GOOD_FEATURES src [, maxCorners [, quality [, minDistance [, value]]]] AS dst
Draws Shi-Tomasi goodFeaturesToTrack points over an 8-bit BGR diagnostic image.
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 |
|---|---|
maxCorners | Maximum number of features/corners to keep. |
quality | Relative quality threshold used by feature selection. |
minDistance | Minimum distance between accepted features. |
value | Scalar value written, drawn, or used as foreground/background according to the command. |
CV.GOOD_FEATURES img, 100, 0.01, 8 AS ptsCV.GOOD_FEATURES_POINTS src [, maxCorners [, quality [, minDistance]]] AS points
Returns Shi-Tomasi corner coordinates as an Nx2 numeric array: x,y. This is the data-producing companion of CV.GOOD_FEATURES.
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 |
|---|---|
maxCorners | Maximum number of features/corners to keep. |
quality | Relative quality threshold used by feature selection. |
minDistance | Minimum distance between accepted features. |
CV.GOOD_FEATURES_POINTS img, 100, 0.01, 10 AS ptsCV.GRAY src AS dst
Converts to grayscale; on stacks it operates frame-by-frame.
CV.GRAY src AS dstCV.HARRIS src [, blockSize [, ksize [, k]]] AS dst
Computes a normalized Harris corner response map.
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 |
|---|---|
blockSize | Local analysis window size used by the algorithm. |
ksize | Derivative/kernel aperture size. |
k | Algorithm coefficient, for example the Harris detector free parameter. |
CV.HARRIS img, 2, 3, 0.04 AS cornersCV.HEIGHT(image)
Height of an image or stack.
value = CV.HEIGHT(image)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.HIST_BACKPROJECT src, roi [, hBins [, sBins]] AS dst
Builds an HSV hue/saturation histogram from the ROI on the first frame, then returns a probability/backprojection map for the image or every frame of the 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 |
|---|---|
hBins | Optional parameter. If omitted, the command uses its internal default. |
sBins | Optional parameter. If omitted, the command uses its internal default. |
rect = RECT.CREATE(70, 60, 80, 80)
CV.HIST_BACKPROJECT img, rect, 30, 32 AS prob
GUI.SHOW prob, "backprojection"CV.HOG_DETECT_PEOPLE src [, hitThreshold [, scale [, finalThreshold]]] AS rects[, preview]
Runs OpenCV HOG people detection over an image or stack. rects columns: frameIndex, detectionIndex, x, y, w, h, score, classId. A sentinel row frameIndex=-1 means no detections. The optional preview draws rectangles.
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 |
|---|---|
hitThreshold | Optional parameter. If omitted, the command uses its internal default. |
scale | Multiplicative scale factor; for geometric transforms it may mean image scale around the center. |
finalThreshold | Optional parameter. If omitted, the command uses its internal default. |
preview | Optional parameter. If omitted, the command uses its internal default. |
CV.HOG_DETECT_PEOPLE frame, 0.0, 1.05, 2.0 AS people, previewCV.HOUGH_CIRCLES src [, dp [, minDist [, param1 [, param2 [, minRadius [, maxRadius [, value]]]]]]] AS dst
Detects circular structures with HoughCircles and draws the result over a diagnostic image.
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 |
|---|---|
dp | Inverse accumulator resolution ratio used by HoughCircles. |
minDist | Minimum distance between detected circle centers. |
param1 | First algorithm-specific tuning parameter. |
param2 | Second algorithm-specific tuning parameter. |
minRadius | Minimum circle radius to detect. |
maxRadius | Maximum circle radius to detect; zero may let OpenCV choose automatically. |
value | Scalar value written, drawn, or used as foreground/background according to the command. |
CV.HOUGH_CIRCLES img, 1.2, 20, 100, 30, 5, 80 AS circlesCV.HOUGH_LINES src [, rho [, thetaDeg [, threshold [, value]]]] AS dst
Detects Hough lines from a Canny edge map and draws them over a diagnostic image.
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 |
|---|---|
rho | Hough-line distance resolution in pixels. |
thetaDeg | Hough-line angular resolution in degrees. |
threshold | Detection or segmentation threshold used by the command. |
value | Scalar value written, drawn, or used as foreground/background according to the command. |
CV.HOUGH_LINES img, 1, 1, 50 AS linesCV.IDFT_COMPLEX spectrum AS complexImage
Computes the inverse complex DFT with scaling. The output remains a complex image; split it to inspect real and imaginary residuals.
CV.IDFT_COMPLEX spec AS recon
CV.SPLIT_COMPLEX recon AS real, imagCV.IDFT_SHIFT centered AS spectrum
Inverse circular shift for a spectrum previously centered with CV.DFT_SHIFT.
CV.IDFT_SHIFT centered AS spectrumCV.INPAINT src, mask [, radius [, method]] AS dst
Fills/restores masked pixels using OpenCV inpainting. method can be TELEA or NS; the source must be 8-bit single-channel or 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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
method | OpenCV method selector accepted by the command. |
CV.INPAINT damaged, mask, 3, TELEA AS repairedCV.INRANGE src, low, high AS dst
Segments pixels whose values fall inside a scalar range; the range is applied to all channels.
CV.INRANGE src, low, high AS dstCV.INRANGE_COLOR src, low0, low1, low2, high0, high1, high2 AS dst
Creates a 3-channel scalar range mask, useful after HSV/Lab conversion.
CV.COLOR img, "BGR2HSV" AS hsv
CV.INRANGE_COLOR hsv, 20, 60, 60, 40, 255, 255 AS maskCV.INVERT src AS dst
Inverts pixel intensity; on stacks it operates frame-by-frame.
CV.INVERT src AS dstCV.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.KEEP_LARGEST mask AS dst
Keeps only the largest connected foreground component of a binary mask.
CV.KEEP_LARGEST mask AS mainObjCV.KMEANS src, k AS quantized
Quantizes an image or each frame of a stack with k-means clustering in channel space.
CV.KMEANS img, 4 AS quantizedCV.KMEANS_CENTERS src, k AS centersArray
Returns the k-means centers of the first frame as a numeric K x channels array. Channel order follows OpenCV, so color images are B,G,R.
CV.KMEANS_CENTERS img, 4 AS centersCV.LABELS_COLOR labels AS dst
Converts a label image, or a binary mask converted to connected components, into a deterministic color visualization.
CV.CONNECTED_COMPONENTS mask AS labels
CV.LABELS_COLOR labels AS colorLabelsCV.LAPLACIAN src AS dst
Computes the Laplacian frame-by-frame.
CV.LAPLACIAN src AS dstCV.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.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.MATCH_ORB desc1, desc2 [, maxDistance [, maxMatches]] AS matches
Matches two ORB descriptor matrices with Hamming distance and cross-check. Output columns are queryIdx, trainIdx, distance, matchRank.
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 |
|---|---|
maxDistance | Optional parameter. If omitted, the command uses its internal default. |
maxMatches | Optional parameter. If omitted, the command uses its internal default. |
CV.MATCH_ORB descA, descB, 64, 200 AS matchesCV.MATCH_TEMPLATE src, templ [, method] AS dst
Computes an OpenCV template-matching response map. Source/template pairs may be broadcast across stacks.
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 |
|---|---|
method | OpenCV method selector accepted by the command. |
CV.MATCH_TEMPLATE src, templ [, method] AS dstCV.MAXIMUM left, right AS dst
Computes the per-pixel maximum of two images or stacks.
CV.MAXIMUM left, right AS dstCV.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.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.MEANSHIFT src, roi [, hBins [, sBins [, maxIter [, epsilon]]]] AS rects[, preview]
Tracks the ROI color model with HSV backprojection and OpenCV meanShift. rects is an N x 11 table: frame,x,y,w,h,cx,cy,boxW,boxH,angle,score/iterations. The optional preview draws the tracked window.
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 |
|---|---|
hBins | Optional parameter. If omitted, the command uses its internal default. |
sBins | Optional parameter. If omitted, the command uses its internal default. |
maxIter | Optional parameter. If omitted, the command uses its internal default. |
epsilon | Optional parameter. If omitted, the command uses its internal default. |
preview | Optional parameter. If omitted, the command uses its internal default. |
CV.MEANSHIFT st, rect, 30, 32, 20, 1.0 AS rects, previewCV.MEDIAN src [, radius] AS dst
Applies a median filter frame-by-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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
CV.MEDIAN src [, radius] AS dstCV.MERGE ch0, ch1 [, ch2 [, ch3]] AS dst
Merges one to four single-channel images/stacks into a multi-channel result.
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 |
|---|---|
ch2 | Optional parameter. If omitted, the command uses its internal default. |
ch3 | Optional parameter. If omitted, the command uses its internal default. |
CV.MERGE ch0, ch1 [, ch2 [, ch3]] AS dstCV.MERGE_COMPLEX realImage, imagImage AS complexImage
Merges two same-size single-channel images into a CV_32FC2 complex image: channel 0 is real, channel 1 is imaginary.
CV.MERGE_COMPLEX re, im AS zimgCV.MINIMUM left, right AS dst
Computes the per-pixel minimum of two images or stacks.
CV.MINIMUM left, right AS dstCV.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.MINVAL(media)
Minimum sample value across all pixels, channels, and frames.
value = CV.MINVAL(media)CV.MORPH_CLOSE src [, radius [, shape [, iterations]]] AS dst
Applies morphological closing frame-by-frame with selectable kernel shape.
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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
shape | Optional parameter. If omitted, the command uses its internal default. |
iterations | Number of repeated passes applied by the operation. |
CV.MORPH_CLOSE mask, 3, RECT, 1 AS closedCV.MORPH_EX src, operation, kernelType, width, height [, iterations] AS dst
Applies a selectable morphological operation. operation: OPEN, CLOSE, GRADIENT, TOPHAT, BLACKHAT, ERODE, DILATE. kernelType: ELLIPSE, RECT, CROSS.
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 |
|---|---|
iterations | Number of repeated passes applied by the operation. |
CV.MORPH_EX mask, CLOSE, RECT, 15, 5, 1 AS closedHorizontalCV.MORPH_GRADIENT src [, radius [, shape [, iterations]]] AS dst
Computes a morphological gradient frame-by-frame with selectable kernel shape.
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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
shape | Optional parameter. If omitted, the command uses its internal default. |
iterations | Number of repeated passes applied by the operation. |
CV.MORPH_GRADIENT mask, 2, CROSS, 1 AS gradCV.MORPH_OPEN src [, radius [, shape [, iterations]]] AS dst
Applies morphological opening frame-by-frame with selectable kernel shape.
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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
shape | Optional parameter. If omitted, the command uses its internal default. |
iterations | Number of repeated passes applied by the operation. |
CV.MORPH_OPEN mask, 2, ELLIPSE, 1 AS openedCV.MUL left, right AS dst
Performs pixel-wise multiplication between two images or stacks.
CV.MUL left, right AS dstCV.MULS src, scalar AS dst
Multiplies every pixel by a scalar value.
CV.MULS src, scalar AS dstCV.NLMEANS src [, h [, templateWindow [, searchWindow]]] AS dst
Applies OpenCV fast non-local means denoising. Output is 8-bit grayscale/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 |
|---|---|
h | Optional output height, or ROI height when part of x,y,w,h. |
templateWindow | Non-local-means template patch size. |
searchWindow | Non-local-means search window size. |
CV.NLMEANS img, 10, 7, 21 AS denCV.NORM(media)
Global L2 norm across all pixels, channels, and frames.
value = CV.NORM(media)CV.NORMALIZE src [, newMin [, newMax]] AS dst
Normalizes the source range into a target range using OpenCV NORM_MINMAX.
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 |
|---|---|
newMin | Output minimum used by normalization. |
newMax | Output maximum used by normalization. |
CV.NORMALIZE src [, newMin [, newMax]] AS dstCV.ORB_DETECT src, nfeatures AS keypoints, descriptors
Detects ORB keypoints on the first frame. keypoints is an Nx7 array: x,y,size,angle,response,octave,class_id; descriptors is a CV_8U matrix.
CV.ORB_DETECT img, 800 AS kp, descCV.OTSU src AS dst
Computes an automatic Otsu threshold on the grayscale source.
CV.OTSU src AS dstCV.PAD src, top, bottom, left, right [, value] AS dst
Adds a constant border around an image or every stack 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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
CV.PAD img, 10, 10, 20, 20, 0 AS paddedCV.PALETTE src, paletteFile AS dst OR CV.PALETTE var, paletteFile
Applies a .map RGB palette to a grayscale image/stack and returns a BGR color visualization. If paletteFile is not an absolute path, ./sys/palette is searched; the .map extension is optional.
img = CV.DESKTOP_IMAGE()
CV.PALETTE img, "thermal.map" AS colorImg
GUI.SHOW colorImgCV.PASTE base, patch, x, y AS dst
Pastes a patch image or patch stack into a base image/stack at x,y. Partial out-of-bounds pastes are clipped; single images broadcast across stacks.
CV.PASTE base, patch, 10, 20 AS outCV.PASTE_RECT base, patch, rect AS dst
Pastes a patch into a destination RECT. The patch is resized to RECT.W/H when needed, then clipped to the base image bounds. Works frame-by-frame on compatible stacks.
r = RECT.CREATE(10, 20, 30, 40)
CV.PASTE_RECT base, patch, r AS outCV.PERIMETER(mask)
Total contour perimeter of a binary mask across all frames.
value = CV.PERIMETER(mask)CV.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.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.POWER_SPECTRUM src [, logScale] AS dst
Computes a centered power spectrum map from the grayscale source, normalized to 0..255 as 32F.
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 |
|---|---|
logScale | When true, applies logarithmic visualization scaling to spectral magnitude/power. |
CV.POWER_SPECTRUM img, TRUE AS powCV.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.QR_DETECT src AS text
Detects and decodes the first QR code payload found in an image or stack. Returns an empty string if no QR code is decoded.
CV.QR_DETECT img AS qrText
IF qrText <> "" THEN
PRINT "QR=" + qrText
ENDIFCV.RECT_MASK width, height, x, y, w, h [, value] AS dst
Creates a single-channel rectangular mask. Legacy command equivalent to MASK.RECT with explicit coordinates.
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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
CV.RECT_MASK 80, 60, 10, 12, 20, 15 AS maskCV.REMAP src, flow AS dst OR CV.REMAP src, flowX, flowY AS dst
Warps an image or stack using optical-flow displacement maps. It accepts either a 2-channel FLOW map or separate flowX/flowY maps. When used with a stack and a sequential FARNEBACK flow stack that has one fewer frame, the first frame is copied unchanged and the remaining frames are remapped with the corresponding flow maps.
CV.REMAP src, flow AS dst OR CV.REMAP src, flowX, flowY AS dstCV.RESIZE src, w, h AS dst
Resizes the image or all frames in the stack.
CV.RESIZE src, w, h AS dstCV.ROTATE src, angle [, scale [, borderValue]] AS dst
Rotates around the image center using affine interpolation and a constant border value.
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 |
|---|---|
scale | Multiplicative scale factor; for geometric transforms it may mean image scale around the center. |
borderValue | Constant value used to fill pixels outside the source image after a transform. |
CV.ROTATE img, 12.5, 1.0, 0 AS rotCV.ROTATE90 src, code AS dst
Rotates by exact right angles without interpolation. Codes: 90/CW, 180, 270/CCW.
CV.ROTATE90 img, 90 AS rotCV.SCALE_ABS src [, alpha [, beta]] AS dst
Applies OpenCV convertScaleAbs, useful for visualizing gradients and signed/float maps.
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 |
|---|---|
alpha | Multiplicative scale factor. |
beta | Additive offset after scaling. |
CV.SCALE_ABS grad, 2.0 AS visCV.SCHARR src [, dx [, dy]] AS dst
Computes Scharr gradients. Without dx/dy it returns a combined gradient image.
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 |
|---|---|
dx | Derivative order or X displacement, depending on the command. |
dy | Derivative order or Y displacement, depending on the command. |
CV.SCHARR img AS gradCV.SET_PIXEL src, x, y, value [, channel [, frame]] AS dst
Returns a copy where one pixel sample has been written. channel=-1 writes all channels; frame=-1 writes all frames.
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. |
CV.SET_PIXEL img, 10, 10, 255 AS marked
CV.SET_PIXEL img, 10, 10, 128, 1 AS greenOnlyCV.SET_PIXEL3 src, x, y, v0, v1, v2 [, frame] AS dst
Returns a copy where channels 0..2 of one pixel have been written. OpenCV color order is B,G,R.
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. |
CV.SET_PIXEL3 colorImg, 20, 20, 0, 0, 255 AS redPixelCV.SET_PIXEL4 src, x, y, v0, v1, v2, v3 [, frame] AS dst
Returns a copy where channels 0..3 of one pixel have been written. OpenCV color order is B,G,R,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 |
|---|---|
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
CV.SET_PIXEL4 rgbaImg, 20, 20, 0, 0, 255, 255 AS redPixelCV.SHOW imageOrStack [, title]
Compatibility alias of SHOW.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
CV.SHOWCV.SOBEL src AS dst
Computes the Sobel gradient frame-by-frame.
CV.SOBEL src AS dstCV.SPECTRUM_LOG_MAG spectrum [, normalize] AS logMagnitudeImage
Computes log(1+magnitude) from a complex spectrum, optionally normalized for display.
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 |
|---|---|
normalize | Optional parameter. If omitted, the command uses its internal default. |
CV.SPECTRUM_LOG_MAG centered, TRUE AS view
GUI.SHOW view, "log spectrum"CV.SPECTRUM_MAGNITUDE spectrum [, normalize] AS magImage
Computes magnitude from a complex spectrum. With normalize=TRUE the result is scaled to 0..255 for display.
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 |
|---|---|
normalize | Optional parameter. If omitted, the command uses its internal default. |
CV.SPECTRUM_MAGNITUDE spectrum [, normalize] AS magImageCV.SPECTRUM_PHASE spectrum [, normalize] AS phaseImage
Computes phase from a complex spectrum. Without normalization the result is in radians; normalized output is intended for GUI display.
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 |
|---|---|
normalize | Optional parameter. If omitted, the command uses its internal default. |
CV.SPECTRUM_PHASE spectrum [, normalize] AS phaseImageCV.SPECTRUM_POWER spectrum [, logScale [, normalize]] AS powerImage
Computes power re^2+im^2 from a complex spectrum, optionally applying log(1+x) and normalization for display.
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 |
|---|---|
logScale | When true, applies logarithmic visualization scaling to spectral magnitude/power. |
normalize | Optional parameter. If omitted, the command uses its internal default. |
CV.SPECTRUM_POWER spectrum [, logScale [, normalize]] AS powerImageCV.SPLIT_COMPLEX complexImage AS realImage, imagImage
Splits a CV_32FC2/CV_64FC2 complex image into real and imaginary single-channel images.
CV.SPLIT_COMPLEX zimg AS re, imCV.STDDEV(media)
Standard deviation across all pixels, channels, and frames.
value = CV.STDDEV(media)CV.SUB name([param1 [, param2 ...]])
Starts a named subroutine block. The block is skipped during normal flow and executed only by CALL.
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 |
|---|---|
param1 | First algorithm-specific tuning parameter. |
param2 | Second algorithm-specific tuning parameter. |
CV.SUBCV.SUBS src, scalar AS dst
Subtracts a scalar from every pixel/channel of an image or stack. This is clearer than CV.ADDS src, -scalar.
CV.SUBS img, 25 AS darkerCV.SUM(media)
Sum of all pixels, channels, and frames.
value = CV.SUM(media)CV.THRESHOLD src, CV.THRESHOLD AS dst
Applies a fixed threshold frame-by-frame.
CV.THRESHOLD src, CV.THRESHOLD AS dstCV.TO32F src [, scale [, beta]] AS dst
Converts to 32-bit float using optional scale and offset.
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 |
|---|---|
scale | Multiplicative scale factor; for geometric transforms it may mean image scale around the center. |
beta | Additive offset after scaling. |
CV.TO32F img, 1.0 / 255.0 AS fCV.TO8U src [, alpha [, beta]] AS dst
Converts to 8-bit unsigned using optional alpha and beta.
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 |
|---|---|
alpha | Multiplicative scale factor. |
beta | Additive offset after scaling. |
CV.TO8U f, 255.0 AS u8CV.TOPHAT src [, radius [, shape [, iterations]]] AS dst
Computes the top-hat transform frame-by-frame with selectable kernel shape.
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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
shape | Optional parameter. If omitted, the command uses its internal default. |
iterations | Number of repeated passes applied by the operation. |
CV.TOPHAT gray, 4, ELLIPSE, 1 AS tophatMapCV.TRANSLATE src, dx, dy [, borderValue] AS dst
Translates image content by dx,dy pixels using a constant border value.
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 |
|---|---|
borderValue | Constant value used to fill pixels outside the source image after a transform. |
CV.TRANSLATE img, 4, -2 AS shiftedCV.TYPE(value)
Returns NUMBER, BOOL, STRING, IMAGE, STACK, ARRAY or NULL.
value = CV.TYPE(value)CV.UNSHARP src [, amount [, radius]] AS dst
Applies unsharp masking using a Gaussian blur and weighted recombination.
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 |
|---|---|
amount | Strength of the effect. |
radius | Kernel radius or neighborhood radius used by the filter. |
CV.UNSHARP img, 0.8, 2 AS sharpCV.WARP_AFFINE src, a00, a01, a02, a10, a11, a12 [, w [, h [, borderValue]]] AS dst
Applies a 2x3 affine transform matrix with optional output size and constant border value.
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 |
|---|---|
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
borderValue | Constant value used to fill pixels outside the source image after a transform. |
CV.WARP_AFFINE img, 1, 0, 8, 0, 1, 4 AS shiftedCV.WARP_HOMOGRAPHY src, H [, w [, h [, borderValue]]] AS dst
Applies a 3x3 homography stored in a ScriptArray. This is the array-based companion of CV.WARP_PERSPECTIVE and works frame-by-frame on stacks.
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 |
|---|---|
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
borderValue | Constant value used to fill pixels outside the source image after a transform. |
CV.FIND_HOMOGRAPHY kpA, kpB, matches, 3.0 AS H, inliers
CV.WARP_HOMOGRAPHY imgB, H AS alignedCV.WARP_PERSPECTIVE src, a00, a01, a02, a10, a11, a12, a20, a21, a22 [, w [, h [, borderValue]]] AS dst
Applies a 3x3 homography/perspective transform matrix with optional output size and constant border value. On stacks it operates frame-by-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 |
|---|---|
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
borderValue | Constant value used to fill pixels outside the source image after a transform. |
CV.WARP_PERSPECTIVE img, 1, 0.15, -18, 0.05, 1, -8, 0.0006, 0.0009, 1, 320, 240, 0 AS warpedCV.WATERSHED src, markers AS labels[, colored]
Runs marker-based watershed. markers must have the same size as src and contain positive labels for seed regions; zero means unknown. labels is CV_32S; colored is an optional visualization.
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 |
|---|---|
colored | Optional parameter. If omitted, the command uses its internal default. |
CV.WATERSHED img, markers AS labels, colored
GUI.SHOW colored, "watershed"CV.WATERSHED_AUTO src [, blurRadius [, distThreshold [, invert]]] AS labels[, colored]
Automatically builds watershed markers using Otsu thresholding, morphology, distance transform and connected components. distThreshold is typically 0.30..0.60; invert=TRUE is useful for dark objects on bright background.
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 |
|---|---|
blurRadius | Optional parameter. If omitted, the command uses its internal default. |
distThreshold | Optional parameter. If omitted, the command uses its internal default. |
invert | Optional parameter. If omitted, the command uses its internal default. |
colored | Optional parameter. If omitted, the command uses its internal default. |
CV.WATERSHED_AUTO img, 1, 0.40 AS labels, colored
GUI.SHOW colored, "auto watershed"CV.WIDTH(image)
Width of an image or stack.
value = CV.WIDTH(image)CX.ABS result, z
Stores the modulus |z| in a normal numeric variable.
CX.ABS r, zCX.ADD dst, a, b
Computes dst = a + b for two scalar complex variables.
CX.ADDCX.ADD_REAL dst, z, x
Computes dst = z + x where x is a normal real expression.
CX.ADD_REALCX.ARG result, z
Stores the phase angle arg(z), in radians, in a normal numeric variable.
CX.ARG phi, zCX.CLEAR
Clears all scalar complex variables stored in the CX runtime table.
CX.CLEARCX.CONJ dst, z
Computes the complex conjugate of z.
CX.CONJ zc, z
CX.MUL power, z, zcCX.COPY dst, src
Copies a scalar complex variable.
CX.COPY z2, zCX.COS dst, z
Computes the complex cosine.
CX.COSCX.DELETE name
Deletes one scalar complex variable if it exists.
CX.DELETECX.DIV dst, a, b
Computes dst = a / b for two scalar complex variables. Division by a zero complex value is rejected.
CX.DIVCX.DIV_REAL dst, z, x
Computes dst = z / x where x is a normal real expression. Division by zero is rejected.
CX.DIV_REALCX.EXISTS name, result
Writes 1 to result when the named scalar complex variable exists, otherwise 0.
CX.EXISTS z, ok
ASSERT ok = 1CX.EXP dst, z
Computes the complex exponential exp(z).
CX.SET ipi, 0, 3.141592653589793
CX.EXP euler, ipiCX.FROM_POLAR dst, radius, angle
Creates a scalar complex variable from polar coordinates. The radius must be non-negative and the angle is in radians.
CX.FROM_POLAR z, 5, 0.927295218CX.FROM_RE_IM dst, re, im
Creates a scalar complex variable from rectangular coordinates. Alias-friendly companion of CX.SET.
CX.FROM_RE_IM z, 3, 4CX.IM result, z
Stores the imaginary part of z in a normal numeric variable.
CX.IM im, zCX.INV dst, z
Computes dst = 1/z. Division by a zero complex value is rejected.
CX.INVCX.LIST
Prints all scalar complex variables currently stored in the CX runtime table.
CX.LISTCX.LOG dst, z
Computes the principal complex logarithm log(z).
CX.LOGCX.MUL dst, a, b
Computes dst = a * b for two scalar complex variables.
CX.MUL p, z, zcCX.MUL_REAL dst, z, x
Computes dst = z * x where x is a normal real expression.
CX.MUL_REALCX.NEG dst, z
Computes dst = -z.
CX.NEGCX.NORM result, z
Stores squared modulus re*re + im*im in a normal numeric variable.
CX.NORM n2, zCX.POLAR dst, radius, angle
Alias of CX.FROM_POLAR.
CX.POLAR z, 5, 0.927295218CX.POW_REAL dst, z, exponent
Raises z to a real-valued exponent. Complex exponents are intentionally not parsed in this first CX layer.
CX.POW_REALCX.PRINT name
Prints a scalar complex variable in readable real/imaginary form.
CX.SET z, 3, 4
CX.PRINT zCX.RE result, z
Stores the real part of z in a normal numeric variable.
CX.RE re, zCX.SET name, re, im
Creates or replaces a scalar complex variable from real and imaginary parts.
CX.SET z, 3, 4
CX.PRINT zCX.SIN dst, z
Computes the complex sine.
CX.SINCX.SQRT dst, z
Computes the principal complex square root.
CX.SET z, 3, 4
CX.SQRT root, zCX.SUB dst, a, b
Computes dst = a - b for two scalar complex variables.
CX.SUBCX.SUB_REAL dst, z, x
Computes dst = z - x where x is a normal real expression.
CX.SUB_REALCX.TAN dst, z
Computes the complex tangent.
CX.TANCX.TO_POLAR z, radiusResult, angleResult
Stores modulus and phase angle, in radians, in two normal numeric variables.
CX.TO_POLAR z, r, phiCX.TO_RE_IM z, reResult, imResult
Stores real and imaginary parts of z in two normal numeric variables.
CX.TO_RE_IM z, re, imDEBUG.EXPR_CACHE_COMPILE_ATTEMPTS()
Public cvBasic function exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
value = DEBUG.EXPR_CACHE_COMPILE_ATTEMPTS()DEBUG.EXPR_CACHE_COMPILE_FAILURES()
Public cvBasic function exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
value = DEBUG.EXPR_CACHE_COMPILE_FAILURES()DEBUG.EXPR_CACHE_COMPILED()
Public cvBasic function exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
value = DEBUG.EXPR_CACHE_COMPILED()DEBUG.EXPR_CACHE_EVALS()
Public cvBasic function exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
value = DEBUG.EXPR_CACHE_EVALS()DEBUG.EXPR_CACHE_FALLBACKS()
Returns how many expression evaluations fell back to the classic ExpressionParser.
value = DEBUG.EXPR_CACHE_FALLBACKS()DEBUG.EXPR_CACHE_HIT_RATE()
Returns the expression-cache hit rate as a percentage over hits + misses.
value = DEBUG.EXPR_CACHE_HIT_RATE()DEBUG.EXPR_CACHE_HITS()
Returns the number of expression-cache hits in the current run since the last reset.
value = DEBUG.EXPR_CACHE_HITS()DEBUG.EXPR_CACHE_LIMIT_CLEARS()
Public cvBasic function exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
value = DEBUG.EXPR_CACHE_LIMIT_CLEARS()DEBUG.EXPR_CACHE_MISSES()
Returns the number of expression-cache misses in the current run since the last reset.
value = DEBUG.EXPR_CACHE_MISSES()DEBUG.EXPR_CACHE_RESET_STATS
Resets the expression-cache diagnostic counters without clearing the cached expression tree.
DEBUG.EXPR_CACHE_RESET_STATSDEBUG.EXPR_CACHE_SIZE()
Returns the current number of compiled expressions stored in the cache.
value = DEBUG.EXPR_CACHE_SIZE()DEBUG.EXPR_CACHE_SUMMARY()
Returns a compact string with expression-cache size, evaluations, hits, misses, compiled expressions, fallbacks and limit clears.
PRINT DEBUG.EXPR_CACHE_SUMMARY()DEFAULT
Optional fallback branch of a SWITCH block. It must appear after all CASE branches.
SWITCH score
CASE 0 TO 30
PRINT "low"
CASE 31 TO 70
PRINT "medium"
CASE > 70
PRINT "high"
DEFAULT
PRINT "invalid"
ENDSWITCHDEMO.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.HELLO [name]
Library: DemoStats user library 2.0.0 Prints a greeting from the DLL.
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 |
|---|---|
name | Optional parameter. If omitted, the command uses its internal default. |
DEMO.HELLODEMO.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.TYPES
Library: DemoStats user library 2.0.0 Prints the SDK data types supported by this demo library.
DEMO.TYPESDEMO.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()DIM name(size1 [, size2 ...])
Declares a zero-based one or multi-dimensional array. Variable names are case-insensitive, so DIM v(10) and later V refer to the same variable. Compact literals are also supported: v = [1,2,3] and A = [[1,2],[3,4]].
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 |
|---|---|
size2 | Optional parameter. If omitted, the command uses its internal default. |
v = [10, 20, 30]
A = [[1, 2], [3, 4]]
PRINT v[1], A[1,0]DIM name(size1 [, size2 ...])
Declares a zero-based one or multi-dimensional array. Variable names are case-insensitive, so DIM v(10) and later V refer to the same variable. Compact literals are also supported: v = [1,2,3] and A = [[1,2],[3,4]].
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 |
|---|---|
size2 | Optional parameter. If omitted, the command uses its internal default. |
v = [10, 20, 30]
A = [[1, 2], [3, 4]]
PRINT v[1], A[1,0]DPLOT.ADDXY handle, channelName, xValues, yValues [, color]
Adds an X/Y numeric channel to an interactive DataPlot window. xValues and yValues can be arrays or numeric text lists and must have the same length.
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 |
|---|---|
color | Optional plot/drawing color value. |
DIM x(100)
DIM y(100)
FOR i = 0 TO 99
x(i) = i * 0.05
y(i) = MATH.EXP(-x(i) * 0.05) * MATH.SIN(x(i))
NEXT
p = DPLOT.CREATE("XY signal")
DPLOT.ADDXY p, "damped sine", x, yDPLOT.ADDY handle, channelName, yValues [, color]
Adds a Y-only numeric channel to an interactive DataPlot window. The X axis is generated as 0..N-1. yValues can be an array, numeric text list, or single numeric value.
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 |
|---|---|
color | Optional plot/drawing color value. |
DIM y(100)
FOR i = 0 TO 99
y(i) = MATH.SIN(i * 0.1)
NEXT
p = DPLOT.CREATE("Y signal")
DPLOT.ADDY p, "sin(i)", y, "#ff0000"DPLOT.BINS handle, bins
Changes the number of bins used by the DataPlot histogram panel.
DPLOT.BINS p, 256DPLOT.CLEAR handle
Removes all channels from an interactive DataPlot window.
DPLOT.CLEAR pDPLOT.COMMON_RANGE handle, enabled
Enables or disables a common histogram range across all DataPlot channels.
DPLOT.COMMON_RANGE p, 1DPLOT.CREATE(title [, bins [, normalize [, commonRange]]])
Creates an interactive DataPlot MDI window and returns a numeric handle used by DPLOT.ADDY, DPLOT.ADDXY and the other DPLOT commands.
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. |
normalize | Optional parameter. If omitted, the command uses its internal default. |
commonRange | Optional parameter. If omitted, the command uses its internal default. |
p = DPLOT.CREATE("Interactive signal", 128, 0, 1)DPLOT.MODE handle, mode
Sets the interactive DataPlot mode: READOUT, ZOOM, or PAN.
DPLOT.MODE p, "READOUT"DPLOT.NORMALIZE handle, enabled
Enables or disables normalized histogram display in a DataPlot window.
DPLOT.NORMALIZE p, 1DRAW.CIRCLE src, cx, cy, radius [, value [, thickness]] AS dst
Draws or fills a circle over an image or 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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
thickness | Optional parameter. If omitted, the command uses its internal default. |
DRAW.CIRCLE src, cx, cy, radius [, value [, thickness]] AS dstDRAW.LINE src, x1, y1, x2, y2 [, value [, thickness]] AS dst
Draws a line over an image or over every frame of a stack and returns the modified 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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
thickness | Optional parameter. If omitted, the command uses its internal default. |
DRAW.LINE src, x1, y1, x2, y2 [, value [, thickness]] AS dstDRAW.RECT src, x, y, w, h [, value [, thickness]] AS dst
Draws or fills a rectangle over an image or 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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
thickness | Optional parameter. If omitted, the command uses its internal default. |
DRAW.RECT src, x, y, w, h [, value [, thickness]] AS dstDRAW.TEXT src, x, y, text [, value [, scale [, thickness]]] AS dst
Draws text using an OpenCV Hershey font over an image or 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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
scale | Multiplicative scale factor; for geometric transforms it may mean image scale around the center. |
thickness | Optional parameter. If omitted, the command uses its internal default. |
DRAW.TEXT src, x, y, text [, value [, scale [, thickness]]] AS dstELSE
Alternative branch of an IF block.
IF CV.WIDTH(img) > 512 THEN
PRINT "large image"
ELSE
PRINT "small image"
ENDIFENDFUNCTION
Closes a FUNCTION block.
FUNCTION CONTRAST_SCORE(img)
RETURN CV.STDDEV(img)
ENDFUNCTION
score = CONTRAST_SCORE(gray)ENDIF
Closes the IF block.
IF CV.WIDTH(img) > 512 THEN
PRINT "large image"
ELSE
PRINT "small image"
ENDIFENDSUB
Closes a SUB block.
SUB PROCESS_IMAGE(src, dst)
CV.GRAY src AS g
CV.CLAHE g, 2.0, 8 AS dst
ENDSUB
CALL PROCESS_IMAGE(img, enhanced)
FUNCTION DOUBLE_VALUE(x)
RETURN x * 2
ENDFUNCTIONENDSWITCH
Closes a SWITCH block.
SWITCH score
CASE 0 TO 30
PRINT "low"
CASE 31 TO 70
PRINT "medium"
CASE > 70
PRINT "high"
DEFAULT
PRINT "invalid"
ENDSWITCHENDTRY
Closes a TRY/CATCH block.
TRY
IO.LOAD "missing.png" AS img
CATCH err, line
PRINT "Error at line "; line; ": "; err
ENDTRYEXIT
Terminates the current script cleanly. Useful in interactive scripts after a cancelled dialog or an explicit user choice.
path = GUI.GET_OPEN_FILE_NAME("Open image")
IF path = "" THEN
EXIT
ENDIFFALSE
Boolean false constant.
FALSEFOR var = start TO end [STEP step] | FOR elem IN arrayExpr
Starts either a numeric loop or a FOR IN iteration over all elements of an array/string.
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 |
|---|---|
STEP | Optional parameter. If omitted, the command uses its internal default. |
FOR i = 0 TO 9 STEP 1
PRINT i
NEXT
FOR value IN samples
PRINT value
NEXTFUNCTION name([param1 [, param2 ...]]) [AS returnVar]
Starts a user-defined function block. The function can be used inside expressions and returns either RETURN expr or the AS return variable.
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 |
|---|---|
param1 | First algorithm-specific tuning parameter. |
param2 | Second algorithm-specific tuning parameter. |
returnVar | Optional parameter. If omitted, the command uses its internal default. |
FUNCTION CONTRAST_SCORE(img)
RETURN CV.STDDEV(img)
ENDFUNCTION
score = CONTRAST_SCORE(gray)GL.ARROW handle, x, y, z, dx, dy, dz [, color [, width [, headScale]]]
Adds a 3D vector arrow starting at x,y,z and pointing by dx,dy,dz.
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 |
|---|---|
color | Optional plot/drawing color value. |
width | Optional parameter. If omitted, the command uses its internal default. |
headScale | Optional parameter. If omitted, the command uses its internal default. |
GL.ARROW g, 0, 0, 0, 0, 50, 0, "#50dcff", 2, 0.18GL.AUTOROTATE handle [, enabled]
Starts or stops the GL viewer internal autorotation timer.
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 |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
GL.AUTOROTATE g, TRUEGL.AXES handle [, length [, width]]
Adds RGB XYZ axes: X red, Y green, Z blue.
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 |
|---|---|
length | Optional parameter. If omitted, the command uses its internal default. |
width | Optional parameter. If omitted, the command uses its internal default. |
GL.AXES g, 100, 2GL.BACKGROUND handle [, color]
Sets the GL viewer background color. Accepts Qt color names or #RRGGBB values.
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 |
|---|---|
color | Optional plot/drawing color value. |
GL.BACKGROUND g, "#101018"GL.BOUNDS(handle)
Returns scene bounds as minX,minY,minZ;maxX,maxY,maxZ, useful for reports and sanity checks.
PRINT GL.BOUNDS(g)GL.CAPTION handle, caption
Sets a scene caption shown in the GL overlay and included in GL.INFO/GL.REPORT.
GL.CAPTION g, "Potential field with diagnostic bounds"GL.CAPTURE handle, pathPattern [, frameIndex]
Alias of GL.CAPTURE_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 |
|---|---|
frameIndex | Optional parameter. If omitted, the command uses its internal default. |
GL.CAPTUREGL.CAPTURE_FRAME handle, pathPattern [, frameIndex]
Saves a frame snapshot. pathPattern may contain %04d, %03d, %02d, %d or {frame}. Alias: GL.CAPTURE.
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 |
|---|---|
frameIndex | Optional parameter. If omitted, the command uses its internal default. |
GL.CAPTURE_FRAME g, "frames/orbit_%04d.png", frameGL.CENTER handle
Recenters the camera on current bounds without changing rotation.
GL.CENTER gGL.CLEAR handle
Removes all geometry from a GL scene and resets its automatic bounds.
GL.CLEAR gGL.CLOSE handle
Closes a GL viewer by handle.
GL.CLOSE gGL.SET_COLOR handle, objectId, color
Changes object color. For gradient surfaces this switches the object to a flat color.
GL.COLORGL.COLORMAP handle, mode
Applies a preview colormap to all gradient GL.SURFACE/GL.HEIGHTFIELD objects. Supported modes: gray, hot, blue-red, jet, viridis, thermal, custom.
GL.COLORMAP g, "viridis"GL.CREATE([title [, width [, height [, background]]]])
Creates an interactive OpenGL MDI viewer for scientific 3D geometry and returns a numeric handle. The viewer supports mouse/keyboard rotation, pan, zoom, fit, grid/axes toggle and snapshot.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
width | Optional parameter. If omitted, the command uses its internal default. |
height | Optional parameter. If omitted, the command uses its internal default. |
background | Initial canvas background value. |
g = GL.CREATE("3D scene", 900, 700, "#101018")GL.DELETE handle, objectId
Deletes a GL object previously identified through GL.LAST_ID.
GL.DELETE g, idGL.EXPORT_CSV handle, path [, objectId]
Exports GL geometry as a simple CSV table of VERTEX and TRI records. It is easier to inspect than OBJ/PLY and complements GL.SAVE_SCENE.
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 |
|---|---|
objectId | Optional parameter. If omitted, the command uses its internal default. |
GL.EXPORT_CSV g, "out/scene_geometry.csv"GL.EXPORT_OBJ handle, path [, objectId]
Exports visible GL geometry to Wavefront OBJ. If objectId is supplied, only that GL object is exported. Lines are written as OBJ l records; triangle meshes/surfaces are written as faces.
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 |
|---|---|
objectId | Optional parameter. If omitted, the command uses its internal default. |
GL.EXPORT_OBJ g, "out/scene.obj"GL.EXPORT_OBJECT_CSV handle, objectId, path
Exports one selected GL object to a compact CSV geometry table.
GL.EXPORT_OBJECT_CSV g, id, "out/object.csv"GL.EXPORT_OBJECT_OBJ handle, objectId, path
Exports one selected GL object to Wavefront OBJ.
GL.EXPORT_OBJECT_OBJ g, id, "out/object.obj"GL.EXPORT_OBJECT_PLY handle, objectId, path
Exports one selected GL object to ASCII PLY.
GL.EXPORT_OBJECT_PLY g, id, "out/object.ply"GL.EXPORT_PLY handle, path [, objectId]
Exports visible GL vertices and triangular faces to ASCII PLY. Point clouds are exported as vertices; lines are not represented as edges in this first lightweight exporter.
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 |
|---|---|
objectId | Optional parameter. If omitted, the command uses its internal default. |
GL.EXPORT_PLY g, "out/scene.ply"GL.SAVE_SCENE handle, path
Public cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
GL.EXPORT_SCENEGL.FIT handle
Recomputes scene bounds, recenters the camera and resets zoom/pan while preserving the current rotation.
GL.FIT gGL.FLUSH handle [, maxMs]
Alias of GL.SYNC.
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 |
|---|---|
maxMs | Optional parameter. If omitted, the command uses its internal default. |
GL.FLUSHGL.FRAME handle [, maxMs]
Processes GUI events for one animation frame. Without maxMs it uses the delay configured by GL.SET_FPS.
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 |
|---|---|
maxMs | Optional parameter. If omitted, the command uses its internal default. |
GL.FRAME gGL.GRID handle [, plane [, extent [, step [, color [, width]]]]]
Adds a scientific reference grid on plane XY, XZ or YZ.
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 |
|---|---|
plane | Optional parameter. If omitted, the command uses its internal default. |
extent | Optional parameter. If omitted, the command uses its internal default. |
step | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
width | Optional parameter. If omitted, the command uses its internal default. |
GL.GRID g, "XZ", 100, 10, "#454552", 1GL.HEIGHTFIELD handle, image [, zMin [, zMax [, lowColor [, highColor [, wireframe [, sampleStep [, frame]]]]]]]
Converts an image or stack frame into a shaded 3D heightfield. X/Y are image coordinates centered around the origin; Z is normalized luminance mapped between zMin and zMax. sampleStep reduces large images.
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 |
|---|---|
zMin | Optional parameter. If omitted, the command uses its internal default. |
zMax | Optional parameter. If omitted, the command uses its internal default. |
lowColor | Optional parameter. If omitted, the command uses its internal default. |
highColor | Optional parameter. If omitted, the command uses its internal default. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
sampleStep | Optional parameter. If omitted, the command uses its internal default. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
GL.HEIGHTFIELD g, gray, 0, 80, "#2030a0", "#ffff80", FALSE, 4GL.HIDE handle, objectId
Temporarily hides a GL object without deleting it.
GL.HIDE g, idGL.IMAGE_POINTS handle, image [, threshold01 [, color [, size [, sampleStep [, frame [, zScale [, maxPoints]]]]]]]
Alias of GL.POINTCLOUD_FROM_IMAGE.
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 |
|---|---|
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
size | Optional parameter. If omitted, the command uses its internal default. |
sampleStep | Optional parameter. If omitted, the command uses its internal default. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
zScale | Optional parameter. If omitted, the command uses its internal default. |
maxPoints | Optional parameter. If omitted, the command uses its internal default. |
GL.IMAGE_POINTS g, img, 0.70, "yellow", 3GL.IMAGE_SURFACE handle, image [, zMin [, zMax [, lowColor [, highColor [, wireframe [, sampleStep [, frame]]]]]]]
Alias of GL.HEIGHTFIELD, intended for OpenCV image-to-surface visualizations.
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 |
|---|---|
zMin | Optional parameter. If omitted, the command uses its internal default. |
zMax | Optional parameter. If omitted, the command uses its internal default. |
lowColor | Optional parameter. If omitted, the command uses its internal default. |
highColor | Optional parameter. If omitted, the command uses its internal default. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
sampleStep | Optional parameter. If omitted, the command uses its internal default. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
GL.IMAGE_SURFACE g, img, 0, 60, "#204080", "#ffe080", FALSE, 6GL.IMPORT_OBJ handle, path [, color [, wireframe]]
Imports a simple Wavefront OBJ mesh. v and f records are supported; polygonal faces are triangulated as fans. If the OBJ has vertices but no faces, it is imported as a point cloud.
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 |
|---|---|
color | Optional plot/drawing color value. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
GL.IMPORT_OBJ g, "out/scene.obj", "#b4dcff", TRUEGL.INFO(handle)
Returns a multi-line diagnostic summary of the GL scene: title, caption, bounds, camera, renderer, item/object counts and visible primitive totals.
PRINT GL.INFO(g)GL.ISOSURFACE handle, stack [, threshold01 [, color [, sampleStepXY [, sampleStepT [, zStep [, wireframe [, maxTriangles]]]]]]]
Extracts a lightweight triangulated isosurface from a W x H x T stack using a marching-tetrahedra pass. threshold01 is normalized over the sampled volume.
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 |
|---|---|
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
sampleStepXY | Optional parameter. If omitted, the command uses its internal default. |
sampleStepT | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
maxTriangles | Optional parameter. If omitted, the command uses its internal default. |
GL.ISOSURFACE g, stack, 0.50, "#80d8ff", 1, 1, 4, FALSE, 200000GL.ITEM_COUNT(handle)
Returns the number of internal GL items currently stored in a scene, including grids, axes and labels.
PRINT GL.ITEM_COUNT(g)GL.LABEL handle, x, y, z, text [, color [, size]]
Alias of GL.TEXT.
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 |
|---|---|
color | Optional plot/drawing color value. |
size | Optional parameter. If omitted, the command uses its internal default. |
GL.LABELGL.LAST_ID(handle)
Returns the object id assigned to the last GL object added to the scene. Useful before GL.HIDE, GL.SHOW, GL.DELETE or style changes.
id = GL.LAST_ID(g)GL.LINE handle, x1, y1, z1, x2, y2, z2 [, color [, width]]
Adds one 3D line segment to the scene.
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 |
|---|---|
color | Optional plot/drawing color value. |
width | Optional parameter. If omitted, the command uses its internal default. |
GL.LINE g, 0, 0, 0, 100, 0, 0, "red", 2GL.IMPORT_OBJ handle, path [, color [, wireframe]]
Imports a simple Wavefront OBJ mesh. v and f records are supported; polygonal faces are triangulated as fans. If the OBJ has vertices but no faces, it is imported as a point cloud.
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 |
|---|---|
color | Optional plot/drawing color value. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
GL.LOAD_OBJGL.MARCHING_CUBES handle, stack [, threshold01 [, color [, sampleStepXY [, sampleStepT [, zStep [, wireframe [, maxTriangles]]]]]]]
Alias of GL.ISOSURFACE. The current implementation uses marching tetrahedra internally to avoid large lookup tables while still producing triangular isosurfaces.
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 |
|---|---|
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
sampleStepXY | Optional parameter. If omitted, the command uses its internal default. |
sampleStepT | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
maxTriangles | Optional parameter. If omitted, the command uses its internal default. |
GL.MARCHING_CUBES g, stack, 0.62, "#ff9060", 1, 1, 4, TRUE, 160000GL.ISOSURFACE handle, stack [, threshold01 [, color [, sampleStepXY [, sampleStepT [, zStep [, wireframe [, maxTriangles]]]]]]]
Extracts a lightweight triangulated isosurface from a W x H x T stack using a marching-tetrahedra pass. threshold01 is normalized over the sampled volume.
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 |
|---|---|
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
sampleStepXY | Optional parameter. If omitted, the command uses its internal default. |
sampleStepT | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
maxTriangles | Optional parameter. If omitted, the command uses its internal default. |
GL.MARCHING_TETRAHEDRAGL.MESH handle, "x,y,z;...", "i,j,k;i,j,k;..." [, color [, wireframe]]
Adds a triangular mesh from a vertex list and a face list. Face indices may be 0-based or 1-based; polygons with more than three indices are triangulated as fans.
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 |
|---|---|
color | Optional plot/drawing color value. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
GL.MESH g, vertices, faces, "#b4dcff", FALSEGL.NEW([title [, width [, height [, background]]]])
Alias of GL.CREATE.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
width | Optional parameter. If omitted, the command uses its internal default. |
height | Optional parameter. If omitted, the command uses its internal default. |
background | Initial canvas background value. |
value = GL.NEW([title [, width [, height [, background]]]])GL.OBJECT_COUNT(handle)
Returns the number of user geometry objects, excluding helper grids and axes.
PRINT GL.OBJECT_COUNT(g)GL.POINT handle, x, y, z [, color [, size]]
Adds one 3D point to the scene.
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 |
|---|---|
color | Optional plot/drawing color value. |
size | Optional parameter. If omitted, the command uses its internal default. |
GL.POINT g, 0, 0, 0, "yellow", 6GL.POINTCLOUD_FROM_IMAGE handle, image [, threshold01 [, color [, size [, sampleStep [, frame [, zScale [, maxPoints]]]]]]]
Converts bright pixels of an image frame into a sparse 3D point cloud. X/Y come from image coordinates, Z comes from normalized luminance times zScale.
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 |
|---|---|
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
size | Optional parameter. If omitted, the command uses its internal default. |
sampleStep | Optional parameter. If omitted, the command uses its internal default. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
zScale | Optional parameter. If omitted, the command uses its internal default. |
maxPoints | Optional parameter. If omitted, the command uses its internal default. |
GL.POINTCLOUD_FROM_IMAGE g, img, 0.65, "#ffcc40", 3, 2, 0, 70GL.POINTCLOUD_FROM_STACK handle, stack [, threshold01 [, color [, size [, sampleStepXY [, sampleStepT [, zStep [, maxPoints]]]]]]]
Alias of GL.VOXELS.
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 |
|---|---|
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
size | Optional parameter. If omitted, the command uses its internal default. |
sampleStepXY | Optional parameter. If omitted, the command uses its internal default. |
sampleStepT | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
maxPoints | Optional parameter. If omitted, the command uses its internal default. |
GL.POINTCLOUD_FROM_STACK g, stack, 0.65, "#ffcc40", 3GL.POINTS handle, "x,y,z;x,y,z;..." [, color [, size]]
Adds a batch of independent 3D points, useful for point clouds, samples and phase-space scatter plots.
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 |
|---|---|
color | Optional plot/drawing color value. |
size | Optional parameter. If omitted, the command uses its internal default. |
GL.POINTS g, "0,0,0;10,20,5;30,10,15", "yellow", 5GL.POLYLINE handle, "x,y,z;x,y,z;..." [, color [, width]]
Adds a connected 3D polyline from a semicolon/newline-separated list of x,y,z points.
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 |
|---|---|
color | Optional plot/drawing color value. |
width | Optional parameter. If omitted, the command uses its internal default. |
GL.POLYLINE g, "0,0,0;10,20,5;30,10,15", "#ffc040", 2GL.RAYMARCH handle, stack [, mode [, threshold01 [, opacity [, sampleStepXY [, sampleStepT [, zStep [, colormap [, maxQuads]]]]]]]]
Alias of GL.VOLUME. Practical slice/ray-sampling preview before heavier GPU 3D-texture ray marching.
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. |
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
opacity | Optional parameter. If omitted, the command uses its internal default. |
sampleStepXY | Optional parameter. If omitted, the command uses its internal default. |
sampleStepT | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
colormap | Optional parameter. If omitted, the command uses its internal default. |
maxQuads | Optional parameter. If omitted, the command uses its internal default. |
GL.RAYMARCH g, stack, "mip", 0.22, 0.75, 2, 1, 4, "viridis", 60000GL.RENDER_MODE handle, mode
Selects the GL renderer path. Modes: AUTO uses shader/VBO when available; MODERN requests the shader/VBO path; LEGACY forces the fixed-pipeline fallback.
GL.RENDER_MODE g, "modern"GL.RENDERER(handle)
Returns the requested renderer mode, active renderer and shader/VBO initialization status.
PRINT GL.RENDERER(g)GL.REPORT handle, htmlPath [, snapshotPath]
Public cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
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 |
|---|---|
snapshotPath | Optional parameter. If omitted, the command uses its internal default. |
GL.REPORTGL.RESET_VIEW handle
Alias of GL.RESETVIEW.
GL.RESET_VIEWGL.RESETVIEW handle
Resets the GL viewer orientation, pan and zoom.
GL.RESETVIEW gGL.ROTATE handle [, dRotX [, dRotY [, dRotZ]]]
Adds incremental camera rotation deltas to the current GL view. Useful inside animation loops.
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 |
|---|---|
dRotX | Optional parameter. If omitted, the command uses its internal default. |
dRotY | Optional parameter. If omitted, the command uses its internal default. |
dRotZ | Optional parameter. If omitted, the command uses its internal default. |
GL.ROTATE g, 0, 1.5, 0GL.SAVE_SCENE handle, path
Public cvBasic command exported from the live interpreter registry. Documentation entry auto-generated from runtime metadata.
GL.SAVE_SCENEGL.SET_COLOR handle, objectId, color
Changes object color. For gradient surfaces this switches the object to a flat color.
GL.SET_COLOR g, id, "#ffcc00"GL.SET_FPS handle, fps
Sets the default frame delay used by GL.FRAME for this viewer.
GL.SET_FPS g, 30GL.SET_SIZE handle, objectId, size
Changes point size or text size for compatible GL objects.
GL.SET_SIZE g, id, 8GL.SET_TITLE handle, title
Changes the GL MDI window title. Alias: GL.TITLE.
GL.SET_TITLE g, "Final scene"GL.SET_WIDTH handle, objectId, width
Changes line width for line, polyline, grid, axes, arrow, wireframe and mesh-outline objects.
GL.SET_WIDTH g, id, 3GL.SHADED handle [, enabled]
Toggles the simple face-normal shading used by GL.SURFACE and GL.MESH.
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 |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
GL.SHADED g, TRUEGL.SHOW handle, objectId
Shows a previously hidden GL object.
GL.SHOW g, idGL.SET_SIZE handle, objectId, size
Changes point size or text size for compatible GL objects.
GL.SIZEGL.SLICE handle, stack, axis, index [, scale [, lowColor [, highColor [, sampleStep [, zStep [, wireframe]]]]]]
Displays an orthogonal X/Y/Z section of a stack as a triangulated relief surface. X/Y are image axes and Z is frame/time; scale extrudes luminance along the slice normal.
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 |
|---|---|
scale | Multiplicative scale factor; for geometric transforms it may mean image scale around the center. |
lowColor | Optional parameter. If omitted, the command uses its internal default. |
highColor | Optional parameter. If omitted, the command uses its internal default. |
sampleStep | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
GL.SLICE g, stack, "Z", 8, 24, "#2050c0", "#ffe070", 1, 4, TRUEGL.SLICE_X handle, stack, xIndex [, scale [, lowColor [, highColor [, sampleStep [, zStep [, wireframe]]]]]]
Displays the Y/T section at a fixed image column xIndex, useful for temporal stack inspection.
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 |
|---|---|
scale | Multiplicative scale factor; for geometric transforms it may mean image scale around the center. |
lowColor | Optional parameter. If omitted, the command uses its internal default. |
highColor | Optional parameter. If omitted, the command uses its internal default. |
sampleStep | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
GL.SLICE_X g, stack, 32, 20, "#203080", "#ffdf70", 1, 4, TRUEGL.SLICE_Y handle, stack, yIndex [, scale [, lowColor [, highColor [, sampleStep [, zStep [, wireframe]]]]]]
Displays the X/T section at a fixed image row yIndex, revealing temporal trajectories and rotating/moving patterns.
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 |
|---|---|
scale | Multiplicative scale factor; for geometric transforms it may mean image scale around the center. |
lowColor | Optional parameter. If omitted, the command uses its internal default. |
highColor | Optional parameter. If omitted, the command uses its internal default. |
sampleStep | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
GL.SLICE_Y g, stack, 32, 20, "#203080", "#ffdf70", 1, 4, TRUEGL.SLICE_Z handle, stack, frameIndex [, scale [, lowColor [, highColor [, sampleStep [, zStep [, wireframe]]]]]]
Displays one normal image frame of the stack as a relief slice positioned at its temporal Z coordinate.
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 |
|---|---|
scale | Multiplicative scale factor; for geometric transforms it may mean image scale around the center. |
lowColor | Optional parameter. If omitted, the command uses its internal default. |
highColor | Optional parameter. If omitted, the command uses its internal default. |
sampleStep | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
GL.SLICE_Z g, stack, 8, 22, "#2050c0", "#ffe070", 1, 4, TRUEGL.SNAPSHOT handle, path
Saves the current GL framebuffer to an image file such as PNG/JPG/BMP.
GL.SNAPSHOT g, "gl_scene.png"GL.VOXELS handle, stack [, threshold01 [, color [, size [, sampleStepXY [, sampleStepT [, zStep [, maxPoints]]]]]]]
Displays a stack/image as a thresholded voxel-like point cloud. X/Y are image coordinates, Z is frame index times zStep.
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 |
|---|---|
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
size | Optional parameter. If omitted, the command uses its internal default. |
sampleStepXY | Optional parameter. If omitted, the command uses its internal default. |
sampleStepT | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
maxPoints | Optional parameter. If omitted, the command uses its internal default. |
GL.STACK_POINTSGL.SURFACE handle, "x,y,z;x,y,z;...", cols, rows [, lowColor [, highColor [, wireframe]]]
Adds a shaded triangulated surface from a row-major cols x rows grid of 3D points. The surface uses a simple z-gradient between lowColor and highColor.
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 |
|---|---|
lowColor | Optional parameter. If omitted, the command uses its internal default. |
highColor | Optional parameter. If omitted, the command uses its internal default. |
wireframe | Optional parameter. If omitted, the command uses its internal default. |
GL.SURFACE g, pts, 64, 64, "#2060ff", "#ffe060", FALSEGL.SYNC handle [, maxMs]
Processes pending GUI events briefly after heavy GL scene construction.
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 |
|---|---|
maxMs | Optional parameter. If omitted, the command uses its internal default. |
GL.SYNC g, 50GL.TEXT handle, x, y, z, text [, color [, size]]
Adds a projected 3D label anchored at x,y,z. The label follows camera rotation and zoom.
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 |
|---|---|
color | Optional plot/drawing color value. |
size | Optional parameter. If omitted, the command uses its internal default. |
GL.TEXT g, 0, 0, 0, "origin", "white", 12GL.TITLE handle, title
Alias of GL.SET_TITLE.
GL.TITLEGL.UPDATE_LINE handle, objectId, x1, y1, z1, x2, y2, z2
Updates the endpoints of an existing line-segment object.
GL.UPDATE_LINE g, lineId, 0,0,0, x,y,zGL.UPDATE_MESH handle, objectId, "x,y,z;...", "i,j,k;..."
Replaces vertices/faces of an existing GL.MESH/GL.ISOSURFACE mesh object.
GL.UPDATE_MESH g, meshId, verts, facesGL.UPDATE_POINTS handle, objectId, "x,y,z;x,y,z;..."
Replaces the vertex list of an existing GL.POINT/GL.POINTS object without creating a new object. Useful for particle animation.
GL.UPDATE_POINTS g, pid, ptsGL.UPDATE_POLYLINE handle, objectId, "x,y,z;x,y,z;..."
Replaces the points of an existing GL.POLYLINE object while preserving its color/width.
GL.UPDATE_POLYLINE g, trailId, trailPtsGL.UPDATE_SURFACE handle, objectId, "x,y,z;x,y,z;...", cols, rows
Replaces the grid geometry of an existing GL.SURFACE/heightfield/slice object. Style and colormap are preserved.
GL.UPDATE_SURFACE g, surfId, pts, cols, rowsGL.UPDATE_TEXT handle, objectId, x, y, z, text
Moves and rewrites an existing GL.TEXT/GL.LABEL object.
GL.UPDATE_TEXT g, labelId, x, y, z, "t=" + STR(t)GL.VIEW handle, rotX, rotY, rotZ [, zoom]
Sets the initial 3D camera orientation and zoom. Users can still rotate/pan/zoom interactively.
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 |
|---|---|
zoom | Optional parameter. If omitted, the command uses its internal default. |
GL.VIEW g, 28, -35, 0, 1.0GL.VOLUME handle, stack [, mode [, threshold01 [, opacity [, sampleStepXY [, sampleStepT [, zStep [, colormap [, maxQuads]]]]]]]]
Adds a CPU-built transparent volume-render mesh from a stack. Modes: alpha, threshold, mip. It uses per-vertex color/alpha and the GL alpha-blending renderer.
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. |
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
opacity | Optional parameter. If omitted, the command uses its internal default. |
sampleStepXY | Optional parameter. If omitted, the command uses its internal default. |
sampleStepT | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
colormap | Optional parameter. If omitted, the command uses its internal default. |
maxQuads | Optional parameter. If omitted, the command uses its internal default. |
GL.VOLUME g, stack, "alpha", 0.18, 0.08, 2, 1, 4, "thermal", 80000GL.VOLUME_RENDER handle, stack [, mode [, threshold01 [, opacity [, sampleStepXY [, sampleStepT [, zStep [, colormap [, maxQuads]]]]]]]]
Alias of GL.VOLUME.
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. |
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
opacity | Optional parameter. If omitted, the command uses its internal default. |
sampleStepXY | Optional parameter. If omitted, the command uses its internal default. |
sampleStepT | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
colormap | Optional parameter. If omitted, the command uses its internal default. |
maxQuads | Optional parameter. If omitted, the command uses its internal default. |
GL.VOLUME_RENDER g, stack, "threshold", 0.45, 0.20, 2, 1, 4, "blue-red", 50000GL.VOXELS handle, stack [, threshold01 [, color [, size [, sampleStepXY [, sampleStepT [, zStep [, maxPoints]]]]]]]
Displays a stack/image as a thresholded voxel-like point cloud. X/Y are image coordinates, Z is frame index times zStep.
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 |
|---|---|
threshold01 | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
size | Optional parameter. If omitted, the command uses its internal default. |
sampleStepXY | Optional parameter. If omitted, the command uses its internal default. |
sampleStepT | Optional parameter. If omitted, the command uses its internal default. |
zStep | Optional parameter. If omitted, the command uses its internal default. |
maxPoints | Optional parameter. If omitted, the command uses its internal default. |
GL.VOXELS g, stack, 0.60, "#ffb030", 3, 1, 1, 4, 100000GL.WAIT handle [, maxMs]
Processes pending GUI events for animation pacing with an explicit millisecond delay.
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 |
|---|---|
maxMs | Optional parameter. If omitted, the command uses its internal default. |
GL.WAIT g, 16GL.SET_WIDTH handle, objectId, width
Changes line width for line, polyline, grid, axes, arrow, wireframe and mesh-outline objects.
GL.WIDTHGL.WIREFRAME handle [, enabled]
Toggles global wireframe display for GL.SURFACE and GL.MESH objects.
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 |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
GL.WIREFRAME g, TRUEGUI.CLEAR_ROI windowTitle
Clears the current ROI from the selected image/stack window.
GUI.CLEAR_ROI "Input image"GUI.CLOSE [windowTitle]
Closes an image or stack window in the GUI MDI area. Without arguments it closes the active image/stack window.
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. |
GUI.CLOSE "Preview"
GUI.CLOSEGUI.CONFIRM(text [, title])
Shows a Yes/No confirmation dialog and returns TRUE for Yes, FALSE for No.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
IF NOT GUI.CONFIRM("Continue?", "Confirm") THEN
EXIT
ENDIFGUI.TRACKBAR name, panelTitle, min, max [, value]
Creates or updates a Qt slider similar in spirit to OpenCV createTrackbar. Read it with GUI.TRACKBAR_POS().
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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
GUI.CREATE_TRACKBARGUI.GET_DRAWING(windowTitle [, shape [, pointMode]])
Generic drawing query. RECT/ROI/BOX returns [x,y,w,h]; POINT/CENTER/TOPLEFT/BOTTOMRIGHT returns [x,y].
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 |
|---|---|
shape | Optional parameter. If omitted, the command uses its internal default. |
pointMode | Optional parameter. If omitted, the command uses its internal default. |
value = GUI.GET_DRAWING(windowTitle [, shape [, pointMode]])GUI.GET_COLOR([initialColor [, title]])
Shows a QColorDialog::getColor-style dialog and returns the chosen color as #RRGGBB. Returns an empty string if the user cancels.
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 |
|---|---|
initialColor | Optional parameter. If omitted, the command uses its internal default. |
title | Optional GUI/DataPlot window title. |
color = GUI.GET_COLOR("#FF8000", "Pick overlay color")
IF color = "" THEN
EXIT
ENDIFGUI.GET_DRAWING(windowTitle [, shape [, pointMode]])
Generic drawing query. RECT/ROI/BOX returns [x,y,w,h]; POINT/CENTER/TOPLEFT/BOTTOMRIGHT returns [x,y].
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 |
|---|---|
shape | Optional parameter. If omitted, the command uses its internal default. |
pointMode | Optional parameter. If omitted, the command uses its internal default. |
rect = GUI.GET_DRAWING("Source", "RECT")
p = GUI.GET_DRAWING("Source", "POINT")GUI.GET_EXISTING_DIRECTORY([title [, dir]])
Shows a QFileDialog::getExistingDirectory-style dialog and returns the selected directory. Returns an empty string if the user cancels.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
dir | Optional parameter. If omitted, the command uses its internal default. |
dir = GUI.GET_EXISTING_DIRECTORY("Select dataset folder")
IF dir = "" THEN
EXIT
ENDIFGUI.GET_OPEN_FILE_NAME([title [, dir [, filter]]])
Shows a QFileDialog::getOpenFileName-style dialog and returns one selected file path. Returns an empty string if the user cancels.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
dir | Optional parameter. If omitted, the command uses its internal default. |
filter | Optional parameter. If omitted, the command uses its internal default. |
file = GUI.GET_OPEN_FILE_NAME("Open image", "", "Images (*.png *.jpg *.tif *.tiff *.fit *.fits *.fts);;All files (*)")
IF file = "" THEN
EXIT
ENDIFGUI.GET_OPEN_FILE_NAMES([title [, dir [, filter]]])
Shows a QFileDialog::getOpenFileNames-style dialog and returns selected file paths separated by newline characters. Returns an empty string if the user cancels.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
dir | Optional parameter. If omitted, the command uses its internal default. |
filter | Optional parameter. If omitted, the command uses its internal default. |
files = GUI.GET_OPEN_FILE_NAMES("Open images", "", "Images (*.png *.jpg *.tif *.tiff *.fit *.fits *.fts);;All files (*)")
PRINT filesGUI.GET_POINT(windowTitle [, mode])
Returns a picked point as [x,y], derived from the current ROI. mode can be CENTER, TOPLEFT or BOTTOMRIGHT.
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. |
p = GUI.GET_POINT("Source")
PRINT ARRAY.GET(p,0), ARRAY.GET(p,1)GUI.GET_RECT(windowTitle)
Returns the current interactive ROI rectangle from a GUI image/stack window as an array [x,y,w,h].
rect = GUI.GET_RECT("Source")
PRINT ARRAY.GET(rect,0), ARRAY.GET(rect,1)GUI.GET_RECT(windowTitle)
Returns the current interactive ROI rectangle from a GUI image/stack window as an array [x,y,w,h].
value = GUI.GET_RECT(windowTitle)GUI.GET_SAVE_FILE_NAME([title [, dir [, filter]]])
Shows a QFileDialog::getSaveFileName-style dialog and returns the destination path. Returns an empty string if the user cancels.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
dir | Optional parameter. If omitted, the command uses its internal default. |
filter | Optional parameter. If omitted, the command uses its internal default. |
outPath = GUI.GET_SAVE_FILE_NAME("Save result", "result.png", "PNG (*.png);;All files (*)")
IF outPath = "" THEN
EXIT
ENDIFGUI.TRACKBAR_POS(name, panelTitle)
Returns the current integer value of a GUI trackbar.
value = GUI.TRACKBAR_POS(name, panelTitle)GUI.GET_COLOR([initialColor [, title]])
Shows a QColorDialog::getColor-style dialog and returns the chosen color as #RRGGBB. Returns an empty string if the user cancels.
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 |
|---|---|
initialColor | Optional parameter. If omitted, the command uses its internal default. |
title | Optional GUI/DataPlot window title. |
value = GUI.GET_COLOR([initialColor [, title]])GUI.GET_EXISTING_DIRECTORY([title [, dir]])
Shows a QFileDialog::getExistingDirectory-style dialog and returns the selected directory. Returns an empty string if the user cancels.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
dir | Optional parameter. If omitted, the command uses its internal default. |
value = GUI.GET_EXISTING_DIRECTORY([title [, dir]])GUI.GET_OPEN_FILE_NAME([title [, dir [, filter]]])
Shows a QFileDialog::getOpenFileName-style dialog and returns one selected file path. Returns an empty string if the user cancels.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
dir | Optional parameter. If omitted, the command uses its internal default. |
filter | Optional parameter. If omitted, the command uses its internal default. |
value = GUI.GET_OPEN_FILE_NAME([title [, dir [, filter]]])GUI.GET_OPEN_FILE_NAMES([title [, dir [, filter]]])
Shows a QFileDialog::getOpenFileNames-style dialog and returns selected file paths separated by newline characters. Returns an empty string if the user cancels.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
dir | Optional parameter. If omitted, the command uses its internal default. |
filter | Optional parameter. If omitted, the command uses its internal default. |
value = GUI.GET_OPEN_FILE_NAMES([title [, dir [, filter]]])GUI.GET_SAVE_FILE_NAME([title [, dir [, filter]]])
Shows a QFileDialog::getSaveFileName-style dialog and returns the destination path. Returns an empty string if the user cancels.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
dir | Optional parameter. If omitted, the command uses its internal default. |
filter | Optional parameter. If omitted, the command uses its internal default. |
value = GUI.GET_SAVE_FILE_NAME([title [, dir [, filter]]])GUI.HISTOGRAM mode, image, bins [, title]
Creates an interactive DataPlot histogram from an image. Modes include GRAY, RGB, BGR, R, G, B 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 |
|---|---|
title | Optional GUI/DataPlot window title. |
p = GUI.HISTOGRAM "GRAY", img, 256
pRgb = GUI.HISTOGRAM "RGB", img, 256GUI.INPUT(prompt [, defaultText [, title]])
Shows a modal text input dialog and returns the entered string.
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 |
|---|---|
defaultText | Default text shown by the input dialog. |
title | Optional GUI/DataPlot window title. |
name = GUI.INPUT("Dataset name", "test", "Input")GUI.INPUT_NUMBER(prompt [, defaultValue [, minValue [, maxValue [, decimals [, title]]]]])
Shows a numeric input dialog. Returns the selected number, or an empty string if the user cancels.
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 |
|---|---|
defaultValue | Optional parameter. If omitted, the command uses its internal default. |
minValue | Lower numeric range limit. |
maxValue | Upper numeric range limit. |
decimals | Optional parameter. If omitted, the command uses its internal default. |
title | Optional GUI/DataPlot window title. |
thr = GUI.INPUT_NUMBER("Threshold", 128, 0, 255, 0, "Input")
IF thr = "" THEN
EXIT
ENDIFGUI.INPUT_TEXT(prompt [, defaultText [, title]])
Shows a text input dialog and returns the entered string. Returns an empty string if the user cancels.
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 |
|---|---|
defaultText | Default text shown by the input dialog. |
title | Optional GUI/DataPlot window title. |
name = GUI.INPUT_TEXT("Operator name", "Manuele", "Input")
IF name = "" THEN
EXIT
ENDIFGUI.MESSAGE text [, title]
Alias of GUI.MSGBOX with a clearer name for script-driven user messages.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
GUI.MESSAGE "Processing complete", "cvBasic"GUI.MSGBOX text [, title]
Shows a Qt information message box.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
GUI.MSGBOX "Processing complete", "cvBasic"GUI.INPUT_NUMBER(prompt [, defaultValue [, minValue [, maxValue [, decimals [, title]]]]])
Shows a numeric input dialog. Returns the selected number, or an empty string if the user cancels.
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 |
|---|---|
defaultValue | Optional parameter. If omitted, the command uses its internal default. |
minValue | Lower numeric range limit. |
maxValue | Upper numeric range limit. |
decimals | Optional parameter. If omitted, the command uses its internal default. |
title | Optional GUI/DataPlot window title. |
value = GUI.INPUT_NUMBER(prompt [, defaultValue [, minValue [, maxValue [, decimals [, title]]]]])GUI.GET_POINT(windowTitle [, mode])
Returns a picked point as [x,y], derived from the current ROI. mode can be CENTER, TOPLEFT or BOTTOMRIGHT.
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. |
value = GUI.GET_POINT(windowTitle [, mode])GUI.PROFILE mode, image, coord OR GUI.PROFILE mode, image, sx, sy, dx, dy [, title]
Creates an interactive DataPlot profile from an image. Modes: H row profile, V column profile, XY arbitrary line profile with bilinear sampling.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
p = GUI.PROFILE "H", img, 120
pLine = GUI.PROFILE "XY", img, 10, 10, 250, 180GUI.GET_RECT(windowTitle)
Returns the current interactive ROI rectangle from a GUI image/stack window as an array [x,y,w,h].
value = GUI.GET_RECT(windowTitle)GUI.RELEASE_TRACKBARS [panelTitle]
Removes all trackbars, or only those belonging to the selected panel.
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 |
|---|---|
panelTitle | Optional parameter. If omitted, the command uses its internal default. |
GUI.RELEASE_TRACKBARS "Controls"GUI.ROI_HISTOGRAM mode, image, x, y, w, h, bins [, title]
Creates an interactive DataPlot histogram from a ROI using x,y,w,h and the selected histogram mode.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
p = GUI.ROI_HISTOGRAM "GRAY", img, 100, 80, 200, 120, 256GUI.ROI_PROFILE mode, image, x, y, w, h [, title]
Creates an interactive DataPlot profile from a ROI using x,y,w,h. H averages vertically per column; V averages horizontally per row.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
p = GUI.ROI_PROFILE "H", img, 100, 80, 200, 40GUI.SET_TRACKBAR_POS name, panelTitle, value
Sets an existing trackbar position from script.
GUI.SET_TRACKBAR_POS "Brightness", "Controls", 0GUI.SHOW imageOrStack [, title]
Displays an image or stack in the GUI MDI area. If a title is provided and an image window with the same title already exists, that window is updated instead of opening a new one.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
GUI.SHOW img, "Preview"GUI.INPUT_TEXT(prompt [, defaultText [, title]])
Shows a text input dialog and returns the entered string. Returns an empty string if the user cancels.
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 |
|---|---|
defaultText | Default text shown by the input dialog. |
title | Optional GUI/DataPlot window title. |
value = GUI.INPUT_TEXT(prompt [, defaultText [, title]])GUI.TRACKBAR name, panelTitle, min, max [, value]
Creates or updates a Qt slider similar in spirit to OpenCV createTrackbar. Read it with GUI.TRACKBAR_POS().
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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
GUI.TRACKBAR "Brightness", "Controls", -100, 100, 0GUI.TRACKBAR_POS(name, panelTitle)
Returns the current integer value of a GUI trackbar.
b = GUI.TRACKBAR_POS("Brightness", "Controls")GUI.TRACKBAR_POS(name, panelTitle)
Returns the current integer value of a GUI trackbar.
value = GUI.TRACKBAR_POS(name, panelTitle)GUI.WAIT_DRAWING(windowTitle [, shape [, pointMode]])
Generic interactive drawing wait. It waits for a GUI ROI change and returns either a rectangle array or point 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 |
|---|---|
shape | Optional parameter. If omitted, the command uses its internal default. |
pointMode | Optional parameter. If omitted, the command uses its internal default. |
rect = GUI.WAIT_DRAWING("Source", "RECT")GUI.WAIT_KEY([delayMs])
Processes GUI events for delayMs milliseconds and returns the last pressed key as uppercase text, or an empty string when no key was pressed. delayMs=0 waits indefinitely.
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 |
|---|---|
delayMs | Optional parameter. If omitted, the command uses its internal default. |
key = GUI.WAIT_KEY(10)
IF key = "Q" OR key = "X" THEN
running = FALSE
ENDIFGUI.WAIT_POINT(windowTitle [, mode])
Waits for a ROI/pick and returns the selected point as [x,y]. The default point is the ROI center.
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. |
p = GUI.WAIT_POINT("Source", "CENTER")GUI.WAIT_RECT(windowTitle)
Waits until the user draws/changes a ROI, then returns the rectangle as [x,y,w,h].
rect = GUI.WAIT_RECT("Source")
patch = ROI.EXTRACT(img, rect)GUI.WAIT_ROI windowTitle
Waits until the user creates, moves or resizes a ROI in the selected image/stack window.
GUI.WAIT_ROI "Input image"GUI.WAIT_ROI_CHANGE windowTitle
Waits for any committed desktop ROI change. Use ROI.FROM_DESKTOP(img,title) to copy it into an image object, or ROI.CHANGE(title)/ROI.REVISION(title) to inspect the GUI state.
GUI.WAIT_ROI_CHANGE "Input image"
PRINT ROI.CHANGE("Input image"), ROI.REVISION("Input image")GUI.WAIT_RECT(windowTitle)
Waits until the user draws/changes a ROI, then returns the rectangle as [x,y,w,h].
value = GUI.WAIT_RECT(windowTitle)IF condition THEN [statement]
Starts a conditional block. If a statement follows THEN on the same line, it is executed as a one-line IF without requiring ENDIF.
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 |
|---|---|
statement | Optional parameter. If omitted, the command uses its internal default. |
IF CV.WIDTH(img) > 512 THEN
PRINT "large image"
ELSE
PRINT "small image"
ENDIF
IF v < 0 THEN v = 0IMAGE
Logical type returned by TYPE(x) for single images.
IMAGEFOR elem IN arrayExpr
Introduces the collection expression in a FOR IN loop. Arrays are iterated in row-major linear order; strings are iterated character by character.
FOR i = 0 TO 9 STEP 1
PRINT i
NEXT
DIM values(3)
values(0) = 10
values(1) = 20
values(2) = 30
FOR v IN values
PRINT v
NEXTINCLUDE "library.cvb"
Alias of USING. Includes another cvBasic source file before execution, with the same path resolution, nested include support and recursive cycle protection.
INCLUDE "lib/algebra_utils.cvb"
PRINT VEC2_NORM([3, 4])IO.ABS_PATH(path)
Returns the absolute version of a path.
value = IO.ABS_PATH(path)IO.APPEND_TEXT(path,text)
Appends UTF-8 text to a file and returns TRUE on success.
value = IO.APPEND_TEXT(path,text)IO.BASE_NAME(path)
File name without the final extension.
value = IO.BASE_NAME(path)IO.CAMERA_GET cameraIndex, property AS value
Reads an OpenCV VideoCapture property and assigns the numeric value.
IO.CAMERA_GET 0, FPS AS fps
PRINT fpsIO.CAMERA_GET cameraIndex, property AS value
Reads an OpenCV VideoCapture property and assigns the numeric value.
IO.CAMERA_GET 0, FPS AS fps
PRINT fpsIO.CAMERA_IS_OPEN([cameraIndex])
Returns TRUE when the selected camera index is currently open inside the script runtime.
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 |
|---|---|
cameraIndex | Optional parameter. If omitted, the command uses its internal default. |
PRINT IO.CAMERA_IS_OPEN(0)IO.CAMERA_PROP_ID(property)
Returns the numeric OpenCV CAP_PROP id for a known friendly property name, or -1 if unknown.
PRINT IO.CAMERA_PROP_ID("EXPOSURE")IO.CAMERA_PROPS [cameraIndex] AS table
Returns a diagnostic table with columns: name, OpenCV property id, current value, writable flag.
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 |
|---|---|
cameraIndex | Optional parameter. If omitted, the command uses its internal default. |
IO.CAMERA_PROPS 0 AS props
PRINT ARRAY.DIMSIZE(props, 0)IO.CAMERA_PROPS [cameraIndex] AS table
Returns a diagnostic table with columns: name, OpenCV property id, current value, writable flag.
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 |
|---|---|
cameraIndex | Optional parameter. If omitted, the command uses its internal default. |
IO.CAMERA_PROPS 0 AS props
PRINT ARRAY.DIMSIZE(props, 0)IO.CAMERA_RELEASE [cameraIndex]
Releases an opened camera handle. Use this when a script has finished acquiring frames.
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 |
|---|---|
cameraIndex | Optional parameter. If omitted, the command uses its internal default. |
IO.CAMERA_RELEASE 0IO.CAMERA_SET cameraIndex, property, value
Sets an OpenCV VideoCapture property. Property can be a friendly name such as FPS, WIDTH, HEIGHT, EXPOSURE or GAIN, quoted or bare.
IO.CAMERA_SET 0, WIDTH, 1280
IO.CAMERA_SET 0, HEIGHT, 720
IO.CAMERA_SET 0, FPS, 30IO.CANONICAL_PATH(path)
Returns the canonical existing path with symlinks resolved when possible.
value = IO.CANONICAL_PATH(path)IO.CAPTURE_FRAME [cameraIndex] AS img
Captures one BGR frame from a camera. The camera is opened lazily and kept open for following captures until IO.CAMERA_RELEASE is called.
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 |
|---|---|
cameraIndex | Optional parameter. If omitted, the command uses its internal default. |
IO.CAPTURE_FRAME 0 AS frame
GUI.SHOW frameIO.CLEAR_ERROR()
Clears the stored non-fatal runtime error and returns TRUE.
ok = IO.CLEAR_ERROR()IO.COPY_FILE(source,target[,overwrite])
Copies a file and returns TRUE on success.
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 |
|---|---|
overwrite | Optional parameter. If omitted, the command uses its internal default. |
value = IO.COPY_FILE(source,target[,overwrite])IO.CSV_COLS(path [, header [, delimiter]])
Returns the number of columns in a CSV/text table.
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 |
|---|---|
header | CSV header policy, usually AUTO, TRUE or FALSE. |
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
n = IO.CSV_COLS("measurements.csv")IO.CSV_COLUMN(path, field [, header [, delimiter]])
Returns one selected CSV column as newline-separated text. The selector may be a header name or a zero-based index.
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 |
|---|---|
header | CSV header policy, usually AUTO, TRUE or FALSE. |
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
values = IO.CSV_COLUMN("measurements.csv", "temperature")IO.CSV_COLUMN_ARRAY(path, field [, header [, numeric [, delimiter]]])
Loads a selected CSV column into a script array. Pass numeric=TRUE to force numeric conversion.
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 |
|---|---|
header | CSV header policy, usually AUTO, TRUE or FALSE. |
numeric | When true, forces numeric conversion of CSV values. |
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
temps = IO.CSV_COLUMN_ARRAY("measurements.csv", "temperature", "AUTO", TRUE)IO.CSV_FIELD(path, row, field [, header [, delimiter]])
Returns one CSV cell as text. The field selector may be a header name or a zero-based column index.
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 |
|---|---|
header | CSV header policy, usually AUTO, TRUE or FALSE. |
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
v = IO.CSV_FIELD("measurements.csv", 0, "temperature")IO.CSV_HEADERS(path [, header [, delimiter]])
Returns available CSV field names as newline-separated text. If no header exists, synthetic Column N names are returned.
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 |
|---|---|
header | CSV header policy, usually AUTO, TRUE or FALSE. |
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
PRINT IO.CSV_HEADERS("measurements.csv")IO.CSV_INFO(path [, header [, delimiter]])
Analyzes and loads a CSV/text table using auto-detected delimiter and header by default, then returns a diagnostic text summary.
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 |
|---|---|
header | CSV header policy, usually AUTO, TRUE or FALSE. |
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
PRINT IO.CSV_INFO("measurements.csv")IO.CSV_NUMBER(path, row, field [, header [, delimiter]])
Returns one CSV cell parsed as a flexible number, supporting decimal comma and decimal point.
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 |
|---|---|
header | CSV header policy, usually AUTO, TRUE or FALSE. |
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
t = IO.CSV_NUMBER("measurements.csv", 0, "temperature")IO.CSV_ROWS(path [, header [, delimiter]])
Returns the number of data rows in a CSV/text table.
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 |
|---|---|
header | CSV header policy, usually AUTO, TRUE or FALSE. |
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
n = IO.CSV_ROWS("measurements.csv")IO.CSV_TABLE_ARRAY(path [, header [, numeric [, delimiter]]])
Loads the whole CSV data table into a two-dimensional script 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 |
|---|---|
header | CSV header policy, usually AUTO, TRUE or FALSE. |
numeric | When true, forces numeric conversion of CSV values. |
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
table = IO.CSV_TABLE_ARRAY("measurements.csv", "AUTO", TRUE)IO.CURRENT_DIR()
Returns the current working directory.
value = IO.CURRENT_DIR()IO.DIR_EXISTS(path)
TRUE if a path exists and is a directory.
value = IO.DIR_EXISTS(path)IO.DIR_LIST(path[,pattern[,mode]])
Returns a newline-separated directory listing.
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 |
|---|---|
pattern | Optional parameter. If omitted, the command uses its internal default. |
mode | Mode selector; accepted values are described in the command text. |
value = IO.DIR_LIST(path[,pattern[,mode]])IO.DIR_NAME(path)
Parent directory component of a path.
value = IO.DIR_NAME(path)IO.EXT(path)
Final file extension without the dot.
value = IO.EXT(path)IO.FCLOSE(handle)
Closes a file handle and returns TRUE on success.
value = IO.FCLOSE(handle)IO.FEOF(handle)
Returns TRUE when the file handle is invalid or at end-of-file.
value = IO.FEOF(handle)IO.FFLUSH(handle)
Flushes pending writes on an open file handle.
value = IO.FFLUSH(handle)IO.FILE_EXISTS(path)
TRUE if a path exists and is a file.
value = IO.FILE_EXISTS(path)IO.FILE_NAME(path)
Final file or directory name component.
value = IO.FILE_NAME(path)IO.FILE_SIZE(path)
Size in bytes, or -1 when unavailable.
value = IO.FILE_SIZE(path)IO.FOPEN(path[,mode])
Opens a file and returns a numeric runtime handle. Modes follow fopen-style strings such as r, w, a, rb, wb, r+, w+.
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. |
value = IO.FOPEN(path[,mode])IO.FPRINTF(handle,format[,v1[,v2...v8]])
Writes formatted text to an open file handle using simple %s, %d, %f, %g placeholders.
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 |
|---|---|
v1 | Optional parameter. If omitted, the command uses its internal default. |
v2 | Optional parameter. If omitted, the command uses its internal default. |
v8 | Optional parameter. If omitted, the command uses its internal default. |
value = IO.FPRINTF(handle,format[,v1[,v2...v8]])IO.FREAD(handle,byteCount)
Reads a byte block from an open file handle and returns it as text.
value = IO.FREAD(handle,byteCount)IO.FREADLINE(handle)
Reads one text line from an open file handle without the trailing newline.
value = IO.FREADLINE(handle)IO.FSCANF(handle[,format])
Reads the next whitespace-separated token, optionally converting it using %s, %d, %f or %g.
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 |
|---|---|
format | Optional parameter. If omitted, the command uses its internal default. |
value = IO.FSCANF(handle[,format])IO.FSEEK(handle,offset[,origin])
Moves the current file position. Origin can be SET, CUR or END.
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 |
|---|---|
origin | Optional parameter. If omitted, the command uses its internal default. |
value = IO.FSEEK(handle,offset[,origin])IO.FTELL(handle)
Returns the current byte position of an open file handle.
value = IO.FTELL(handle)IO.FWRITE(handle,value)
Writes text/raw UTF-8 bytes to an open file handle and returns the number of bytes written.
value = IO.FWRITE(handle,value)IO.HOME_DIR()
Returns the user's home directory.
value = IO.HOME_DIR()IO.IS_ABSOLUTE(path)
TRUE if the path is absolute.
value = IO.IS_ABSOLUTE(path)IO.LAST_ERROR()
Returns the last non-fatal runtime error text, currently set by IO.TRY_LOAD and IO.TRY_LOAD_WITH_META.
PRINT IO.LAST_ERROR()IO.LAST_ERROR_LINE()
Returns the source line associated with IO.LAST_ERROR(), or -1 when unavailable.
PRINT IO.LAST_ERROR_LINE()IO.LOAD pathExpr AS variable // images, OT RAW, FITS, TIFF stacks, video
Loads an image, a FITS image/stack, a TIFF/TIFF stack, or a video; videos, multipage TIFF files and multi-HDU FITS files become in-memory stacks.
IO.LOAD pathExpr AS variable // images, OT RAW, FITS, TIFF stacks, videoIO.LOAD_WITH_META path AS image
Loads an image/stack and applies the optional path.cvbmeta sidecar when present.
IO.LOAD_WITH_META "out.png" AS img2IO.LOAD_WITH_META path AS image
Loads an image/stack and applies the optional path.cvbmeta sidecar when present.
IO.LOAD_WITH_META "out.png" AS img2IO.META_PATH(mediaPath)
Returns the metadata sidecar path used by IO.SAVE_WITH_META.
sidecar = IO.META_PATH("out.png")IO.MKDIR(path)
Creates a single directory level and returns TRUE on success.
value = IO.MKDIR(path)IO.MKPATH(path)
Creates a directory tree and returns TRUE on success.
value = IO.MKPATH(path)IO.MOVE_FILE(source,target[,overwrite])
Moves or renames a file and returns TRUE on success.
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 |
|---|---|
overwrite | Optional parameter. If omitted, the command uses its internal default. |
value = IO.MOVE_FILE(source,target[,overwrite])IO.PATH_EXISTS(path)
TRUE if a path exists.
value = IO.PATH_EXISTS(path)IO.PATH_JOIN(base,child)
Joins a base path and a child component.
value = IO.PATH_JOIN(base,child)IO.READ_CSV_ARRAY(path [, numeric [, delimiter]])
Reads a CSV written by IO.WRITE_CSV_ARRAY, preserving 1D/2D shape when the #CVB_ARRAY header is present.
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 |
|---|---|
numeric | When true, forces numeric conversion of CSV values. |
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
b = IO.READ_CSV_ARRAY("array.csv", TRUE)IO.READ_TEXT(path)
Reads a text file as UTF-8, returning an empty string on failure.
value = IO.READ_TEXT(path)IO.REMOVE_DIR(path)
Removes an empty directory and returns TRUE on success.
value = IO.REMOVE_DIR(path)IO.REMOVE_DIR_TREE(path)
Removes a directory tree recursively and returns TRUE on success.
value = IO.REMOVE_DIR_TREE(path)IO.REMOVE_FILE(path)
Deletes a file and returns TRUE on success.
value = IO.REMOVE_FILE(path)IO.SAVE media, path
Saves a single image to common image formats, or saves a stack to multipage TIFF when the target extension is .tif/.tiff.
IO.SAVEIO.SAVE_WITH_META media, path
Saves an image or stack and writes a path.cvbmeta sidecar containing ROI state and user metadata.
IO.SAVE_WITH_META img, "out.png"IO.TEMP_DIR()
Returns the system temporary directory.
value = IO.TEMP_DIR()IO.TRY_LOAD path AS image
Loads an image/stack/video without stopping the script on failure. On failure the destination becomes NULL and IO.LAST_ERROR() contains the reason.
IO.TRY_LOAD "input.png" AS img
IF NOT CV.IS_VALID(img) THEN
PRINT "Load failed: "; IO.LAST_ERROR()
EXIT
ENDIFIO.TRY_LOAD path AS image
Loads an image/stack/video without stopping the script on failure. On failure the destination becomes NULL and IO.LAST_ERROR() contains the reason.
IO.TRY_LOAD "input.png" AS img
IF NOT CV.IS_VALID(img) THEN
PRINT "Load failed: "; IO.LAST_ERROR()
EXIT
ENDIFIO.TRY_LOAD_WITH_META path AS image
Non-fatal variant of IO.LOAD_WITH_META. It restores metadata when possible, otherwise stores the reason in IO.LAST_ERROR().
IO.TRY_LOAD_WITH_META "out.png" AS img2
ASSERT CV.IS_VALID(img2), IO.LAST_ERROR()IO.TRY_LOAD_WITH_META path AS image
Non-fatal variant of IO.LOAD_WITH_META. It restores metadata when possible, otherwise stores the reason in IO.LAST_ERROR().
IO.TRY_LOAD_WITH_META "out.png" AS img2
ASSERT CV.IS_VALID(img2), IO.LAST_ERROR()IO.WRITE_CSV_ARRAY(path, array [, delimiter])
Writes a 1D/2D array to CSV with a small #CVB_ARRAY shape header and returns TRUE.
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 |
|---|---|
delimiter | CSV delimiter override; omit it for auto-detection where supported. |
ok = IO.WRITE_CSV_ARRAY("array.csv", a)IO.WRITE_TEXT(path,text)
Writes UTF-8 text to a file and returns TRUE on success.
value = IO.WRITE_TEXT(path,text)IO.WRITE_VIDEO stack, path [, fps]
Writes a stack as an AVI/MJPG video.
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. |
IO.WRITE_VIDEOLA.ADD(A, B)
Element-wise matrix addition; A and B must have the same shape.
value = LA.ADD(A, B)LA.COL(v0 [, v1 ...])
Creates an n x 1 column vector. It can still be read with one index, for example c[0].
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 |
|---|---|
v1 | Optional parameter. If omitted, the command uses its internal default. |
c = LA.COL(3, 2, 1)
PRINT LA.SHAPE(c), c[1]LA.COLS(A)
Returns the number of columns. A 1D vector reports cols = 1.
value = LA.COLS(A)LA.COS(A)
Element-wise cosine.
value = LA.COS(A)LA.CROSS(a, b)
Cross product between two 3D vectors.
value = LA.CROSS(a, b)LA.DET(A)
Returns the determinant of a square matrix.
value = LA.DET(A)LA.DIAG(vectorOrMatrix)
Vector input creates a diagonal matrix; matrix input extracts the diagonal.
value = LA.DIAG(vectorOrMatrix)LA.DOT(a, b)
Dot product between same-size vectors.
value = LA.DOT(a, b)LA.EIGSYM_VALS(A)
Returns real eigenvalues for symmetric matrices.
value = LA.EIGSYM_VALS(A)LA.EIGSYM_VECS(A)
Returns real eigenvectors for symmetric matrices.
value = LA.EIGSYM_VECS(A)LA.EIGVALS(A)
Returns eigenvalues as an N x 2 table: real and imaginary part.
value = LA.EIGVALS(A)LA.EIGVECS(A)
Returns real eigenvectors when the decomposition has negligible imaginary components.
value = LA.EIGVECS(A)LA.EXP(A)
Element-wise exponential.
value = LA.EXP(A)LA.FROM_IMAGE(image [, channel])
Converts the first frame of an image/stack to a numeric matrix. channel=-1 uses grayscale/luminance.
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. |
value = LA.FROM_IMAGE(image [, channel])LA.GRID_X(xVector, yVector)
Builds the X coordinate matrix for a regular grid.
value = LA.GRID_X(xVector, yVector)LA.GRID_Y(xVector, yVector)
Builds the Y coordinate matrix for a regular grid.
value = LA.GRID_Y(xVector, yVector)LA.HADAMARD(A, B)
Element-wise matrix product.
value = LA.HADAMARD(A, B)LA.IDENTITY(n)
Creates an n x n identity matrix.
I = LA.IDENTITY(4)LA.INV(A)
Returns the inverse of a non-singular square matrix.
value = LA.INV(A)LA.LINSPACE(a, b, n)
Creates a 1D vector with n evenly spaced samples from a to b.
xVec = LA.LINSPACE(-8, 8, 220)LA.LSQ(A, b)
Least-squares solution for overdetermined systems.
value = LA.LSQ(A, b)LA.MUL(A, B)
Matrix product using Eigen.
C = LA.MUL(A, B)LA.NORM(A)
Returns the Frobenius/vector norm.
value = LA.NORM(A)LA.NULLSPACE(A [, tolerance])
Returns a matrix whose columns form a numerical basis of the null space of A. Full-rank matrices return one zero column because zero-width arrays are not supported.
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 |
|---|---|
tolerance | Optional parameter. If omitted, the command uses its internal default. |
value = LA.NULLSPACE(A [, tolerance])LA.ONES(rows [, cols])
Creates a numeric matrix initialized to one.
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 |
|---|---|
cols | Optional parameter. If omitted, the command uses its internal default. |
value = LA.ONES(rows [, cols])LA.PINV(A [, tolerance])
Returns the Moore-Penrose pseudoinverse computed from the SVD. The optional tolerance controls which singular values are inverted.
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 |
|---|---|
tolerance | Optional parameter. If omitted, the command uses its internal default. |
Aplus = LA.PINV(A)
x = LA.MUL(Aplus, b)LA.QR_Q(A)
Returns the Q factor of the Householder QR decomposition.
value = LA.QR_Q(A)LA.QR_R(A)
Returns the R factor of the Householder QR decomposition, with Q*R reconstructing A.
value = LA.QR_R(A)LA.RANK(A [, tolerance])
Returns the numerical rank of A using its singular values.
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 |
|---|---|
tolerance | Optional parameter. If omitted, the command uses its internal default. |
value = LA.RANK(A [, tolerance])LA.ROW(v0 [, v1 ...])
Creates a 1 x n row vector. It can still be read with one index, for example r[0].
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 |
|---|---|
v1 | Optional parameter. If omitted, the command uses its internal default. |
r = LA.ROW(3, 2, 1)
PRINT LA.SHAPE(r), r[2]LA.ROWS(A)
Returns the number of rows. A 1D vector reports rows = length.
value = LA.ROWS(A)LA.SCALE(A, s)
Multiplies all matrix elements by scalar s.
value = LA.SCALE(A, s)LA.SHAPE(A)
Returns the array shape as text, such as 3, 3 x 1, 1 x 3 or 2 x 2.
PRINT LA.SHAPE([[1,2],[3,4]])LA.SIN(A)
Element-wise sine.
value = LA.SIN(A)LA.SINC(A)
Element-wise sin(x)/x with the correct value 1 near zero.
value = LA.SINC(A)LA.SOLVE(A, b)
Solves A*x=b with Eigen QR decomposition.
value = LA.SOLVE(A, b)LA.SQRT(A)
Element-wise square root.
value = LA.SQRT(A)LA.SUB(A, B)
Element-wise matrix subtraction; A and B must have the same shape.
value = LA.SUB(A, B)LA.SVD_S(A)
Returns the singular values of A.
value = LA.SVD_S(A)LA.SVD_U(A)
Returns the thin U matrix from the singular value decomposition A = U*S*V^T.
value = LA.SVD_U(A)LA.SVD_V(A)
Returns the thin V matrix from the singular value decomposition A = U*S*V^T.
value = LA.SVD_V(A)LA.TO_IMAGE(A [, normalize])
Converts a numeric matrix to a grayscale image, optionally normalized to 0..255.
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 |
|---|---|
normalize | Optional parameter. If omitted, the command uses its internal default. |
img = LA.TO_IMAGE(Z, TRUE)
GUI.SHOW img, "Matrix image"LA.TRACE(A)
Returns the sum of the diagonal of A.
value = LA.TRACE(A)LA.TRANSPOSE(A)
Returns the transpose of a vector or matrix.
value = LA.TRANSPOSE(A)LA.VEC(v0 [, v1 ...])
Creates a compact 1D numeric vector. Direct indexing works as v[0].
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 |
|---|---|
v1 | Optional parameter. If omitted, the command uses its internal default. |
v = LA.VEC(3, 2, 1)
PRINT LA.SHAPE(v), v[0]LA.VERSION()
Returns the Eigen version detected at compile time.
PRINT LA.VERSION()LA.ZEROS(rows [, cols])
Creates a numeric matrix initialized 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 |
|---|---|
cols | Optional parameter. If omitted, the command uses its internal default. |
A = [[2, 1], [1, 3]]
b = [5, 6]
x = LA.SOLVE(A, b)
PRINT x[0], x[1]LANG.CATALOG_WARNINGS()
Returns a 1D array with registry/catalog drift diagnostics. Empty array means no warnings.
value = LANG.CATALOG_WARNINGS()LANG.CATEGORY(name)
Returns the documentation/help category for a public symbol.
value = LANG.CATEGORY(name)LANG.COMMANDS()
Returns a 1D array containing all public command names.
cmds = LANG.COMMANDS()
PRINT ARRAY.SIZE(cmds)LANG.EXISTS(name)
Returns TRUE if name is a public command, function, keyword, or documented catalog symbol.
ASSERT LANG.EXISTS("ROI.SET"), "ROI.SET missing"LANG.FUNCTIONS()
Returns a 1D array containing all public function names.
value = LANG.FUNCTIONS()LANG.HEADLESS(name)
Returns TRUE for symbols that can be used safely in batch/headless scripts, and FALSE for explicit GUI/interactive symbols.
value = LANG.HEADLESS(name)LANG.HELP(name)
Returns a compact multi-line help block with name, kind, signature and description.
value = LANG.HELP(name)LANG.KIND(name)
Returns Command, Function, Keyword, or an empty string when the symbol is unknown.
value = LANG.KIND(name)LANG.SIGNATURE(name)
Returns the documented or registry-derived signature of a public symbol.
value = LANG.SIGNATURE(name)LANG.SYMBOLS()
Returns a 1D array containing public commands, public functions and language keywords.
value = LANG.SYMBOLS()LANG.USERLIB_REPORT()
Returns a multi-line diagnostic report with loaded user libraries, exported symbols, argument ranges, SDK data types and warnings.
value = LANG.USERLIB_REPORT()LANG.USERLIB_SYMBOLS()
Returns a 1D array with public symbols registered by external user libraries.
value = LANG.USERLIB_SYMBOLS()LANG.USERLIB_TYPES()
Returns a 1D array describing the data types currently exposed by the external user-library SDK.
value = LANG.USERLIB_TYPES()LANG.USERLIBS()
Returns a 1D array with the loaded external cvBasic user libraries.
value = LANG.USERLIBS()LANG.VERSION()
Returns the cvBasic language/runtime version string.
value = LANG.VERSION()LET var = expr
Explicit assignment; equivalent to using =. Variables are case-insensitive: k and K are the same variable, so scientific scripts should prefer descriptive names such as springK and kinEnergy. Array elements may be assigned with A[i,j] = value or legacy A(i,j) = value.
A = [[1, 2], [3, 4]]
A[0,1] = 9
PRINT A[0,1]MASK.APPLY(image,mask[,background])
Returns image/stack pixels inside the mask unchanged and replaces outside pixels with background. Single images/masks broadcast across stacks.
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 |
|---|---|
background | Initial canvas background value. |
inside = MASK.APPLY(img, mask, 0)MASK.AREA(mask)
Alias-style semantic count of foreground pixels. For a rectangular single-frame mask it equals RECT.AREA(rect).
ASSERT MASK.AREA(mask) = RECT.AREA(r), "area mismatch"MASK.BBOX(mask[,frame])
Returns the half-open RECT bounding box of all non-zero mask pixels in the selected 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 |
|---|---|
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
r = MASK.BBOX(mask)MASK.COUNT(mask)
Counts foreground pixels, where any non-zero channel marks a foreground pixel. For stacks, counts all frames.
n = MASK.COUNT(mask)MASK.COUNT_NONZERO(mask)
Compatibility alias for COUNT_NONZERO / MASK.COUNT.
n = MASK.COUNT_NONZERO(mask)MASK.EMPTY(mask)
Returns TRUE if the mask has no foreground pixels.
ASSERT NOT MASK.EMPTY(mask), "mask unexpectedly empty"MASK.FROM_ROI(image[,value])
Creates a mask from the programmatic ROI stored on an image or 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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
img = ROI.SET_RECT(img, r)
mask = MASK.FROM_ROI(img)MASK.INVERT(mask)
Returns the binary inverse of a mask, using 0 for foreground and 255 for background.
inv = MASK.INVERT(mask)MASK.RECT(width,height,rect[,value]) OR MASK.RECT(width,height,x,y,w,h[,value])
Creates a binary mask image from a RECT geometry or explicit x,y,w,h coordinates. The rectangle is clipped to the mask bounds.
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 |
|---|---|
value | Scalar value written, drawn, or used as foreground/background according to the command. |
r = RECT.CREATE(10,12,20,15)
mask = MASK.RECT(80,60,r)MASK.TO_ROI(mask[,frame]) OR MASK.TO_ROI(image,mask[,frame])
With one mask returns MASK.BBOX. With image+mask returns a copy of the image with ROI set to the mask bounding box.
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. |
img2 = MASK.TO_ROI(img, mask)
r = ROI.RECT(img2)MASK.VALID(mask)
Returns TRUE when the argument is a non-empty image/stack that can be treated as a mask.
ASSERT MASK.VALID(mask), "mask not valid"MAT3D.CLOSE handle
Closes a Mat3D window by handle.
MAT3D.CLOSE m3MAT3D.CREATE([title])
Creates an interactive Mat3D MDI window and returns a numeric handle. X/Y are pixels and Z is luminance.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
m3 = MAT3D.CREATE("Luminance surface")MAT3D.OPTIONS handle [, normalizeZ [, invertZ [, flipY [, sampleStep [, zScale [, zOffset [, legend]]]]]]]
Controls Z normalization, inversion, Y flip, decimation, Z scale/offset and the color legend.
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 |
|---|---|
normalizeZ | Optional parameter. If omitted, the command uses its internal default. |
invertZ | Optional parameter. If omitted, the command uses its internal default. |
flipY | Optional parameter. If omitted, the command uses its internal default. |
sampleStep | Optional parameter. If omitted, the command uses its internal default. |
zScale | Optional parameter. If omitted, the command uses its internal default. |
zOffset | Optional parameter. If omitted, the command uses its internal default. |
legend | Optional parameter. If omitted, the command uses its internal default. |
MAT3D.OPTIONS m3, TRUE, FALSE, TRUE, 2, 1.0, 0.0, FALSEMAT3D.PALETTE handle [, paletteFile]
Applies a QwtPlot3D .map palette file, or resets to the standard palette when omitted.
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 |
|---|---|
paletteFile | Optional parameter. If omitted, the command uses its internal default. |
MAT3D.PALETTE m3, "STANDARD"MAT3D.SET handle, imageOrStack [, frameIndex [, caption]]
Updates an existing Mat3D window with a new image or with one selected frame from a 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 |
|---|---|
frameIndex | Optional parameter. If omitted, the command uses its internal default. |
caption | Optional parameter. If omitted, the command uses its internal default. |
MAT3D.SET m3, filtered, 0, "Filtered luminance"MAT3D.SHOW(imageOrStack [, title [, sampleStep [, zScale]]])
Creates a Mat3D window, displays the first frame of an image/stack, and returns the Mat3D handle.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
sampleStep | Optional parameter. If omitted, the command uses its internal default. |
zScale | Optional parameter. If omitted, the command uses its internal default. |
m3 = MAT3D.SHOW(gray, "3D luminance", 2, 1.0)MAT3D.SNAPSHOT handle, path
Saves the current Mat3D view as PNG/JPG/BMP/PDF/EPS/TIF according to file extension.
MAT3D.SNAPSHOT m3, "surface.png"MAT3D.STYLE handle [, plotStyle [, floorStyle [, coordStyle]]]
Sets surface style. plotStyle: POINTS, WIREFRAME, HIDDENLINE, POLYGON, FILLEDMESH. floorStyle: NONE, DATA, ISO. coordStyle: NONE, FRAME, BOX.
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 |
|---|---|
plotStyle | Optional parameter. If omitted, the command uses its internal default. |
floorStyle | Optional parameter. If omitted, the command uses its internal default. |
coordStyle | Optional parameter. If omitted, the command uses its internal default. |
MAT3D.STYLE m3, "FILLEDMESH", "ISO", "FRAME"MAT3D.VIEW handle, rotX, rotY, rotZ [, zoom]
Sets the 3D view rotation and optional zoom.
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 |
|---|---|
zoom | Optional parameter. If omitted, the command uses its internal default. |
MAT3D.VIEW m3, 35, 0, 25, 0.95MATH.ABS(value)
Absolute numeric value.
value = MATH.ABS(value)MATH.ACOS(value)
Inverse cosine, returning radians.
value = MATH.ACOS(value)MATH.ACOSH(value)
Inverse hyperbolic cosine.
value = MATH.ACOSH(value)MATH.ASIN(value)
Inverse sine, returning radians.
value = MATH.ASIN(value)MATH.ASINH(value)
Inverse hyperbolic sine.
value = MATH.ASINH(value)MATH.ATAN(value)
Inverse tangent, returning radians.
value = MATH.ATAN(value)MATH.ATAN2(y,x)
Two-argument inverse tangent, returning radians.
value = MATH.ATAN2(y,x)MATH.ATANH(value)
Inverse hyperbolic tangent.
value = MATH.ATANH(value)MATH.CBRT(value)
Cube root.
value = MATH.CBRT(value)MATH.CEIL(value)
Rounds toward positive infinity.
value = MATH.CEIL(value)MATH.COS(value)
Cosine of the angle in radians.
value = MATH.COS(value)MATH.COSH(value)
Hyperbolic cosine.
value = MATH.COSH(value)MATH.DOUBLE(value)
Converts the value to double.
value = MATH.DOUBLE(value)MATH.EXP(value)
Natural exponential e^x.
value = MATH.EXP(value)MATH.EXP2(value)
Base-2 exponential 2^x.
value = MATH.EXP2(value)MATH.EXPM1(value)
Computes e^x - 1 with improved small-value accuracy.
value = MATH.EXPM1(value)MATH.FLOOR(value)
Rounds toward negative infinity.
value = MATH.FLOOR(value)MATH.FMOD(a,b)
Floating-point remainder with truncation-based quotient.
value = MATH.FMOD(a,b)MATH.HYPOT(a,b)
Euclidean norm sqrt(a*a + b*b).
value = MATH.HYPOT(a,b)MATH.INT(value)
Converts the value to a truncated integer.
value = MATH.INT(value)MATH.LOG(value)
Natural logarithm.
value = MATH.LOG(value)MATH.LOG10(value)
Base-10 logarithm.
value = MATH.LOG10(value)MATH.LOG1P(value)
Computes log(1+x) with improved small-value accuracy.
value = MATH.LOG1P(value)MATH.LOG2(value)
Base-2 logarithm.
value = MATH.LOG2(value)MATH.MAX(a,b)
Returns the larger of two numeric values.
value = MATH.MAX(a,b)MATH.MIN(a,b)
Returns the smaller of two numeric values.
value = MATH.MIN(a,b)MATH.POW(base,exponent)
Raises a base to an exponent.
value = MATH.POW(base,exponent)MATH.REMAINDER(a,b)
IEEE-style floating-point remainder.
value = MATH.REMAINDER(a,b)MATH.ROUND(value)
Rounds to the nearest integer, half away from zero.
value = MATH.ROUND(value)MATH.SIN(value)
Sine of the angle in radians.
value = MATH.SIN(value)MATH.SINH(value)
Hyperbolic sine.
value = MATH.SINH(value)MATH.SQRT(value)
Square root.
value = MATH.SQRT(value)MATH.TAN(value)
Tangent of the angle in radians.
value = MATH.TAN(value)MATH.TANH(value)
Hyperbolic tangent.
value = MATH.TANH(value)MATH.TRUNC(value)
Truncates the fractional part.
value = MATH.TRUNC(value)MATH.TYPE(value)
Returns NUMBER, BOOL, STRING, IMAGE, STACK, ARRAY or NULL.
value = MATH.TYPE(value)META.CLEAR(image[,key])
Clears all user metadata, or only the selected key when key is provided.
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 |
|---|---|
key | Optional parameter. If omitted, the command uses its internal default. |
value = META.CLEAR(image[,key])META.FROM_TEXT(image,text)
Applies cvBasic sidecar text back to an existing image or stack object and returns it.
value = META.FROM_TEXT(image,text)META.GET(image)
Returns user metadata as readable key=value lines.
value = META.GET(image)META.HAS(image,key)
Returns TRUE when a metadata key exists on the image or stack.
value = META.HAS(image,key)META.KEYS(image)
Returns all user metadata keys as newline-separated text.
value = META.KEYS(image)META.SET(image,key,value)
Stores a user key/value metadata pair directly in an image or stack object and returns the same object.
img = META.SET(img, "author", "cvBasic")META.TO_TEXT(image)
Serializes image dimensions, ROI state and user metadata into cvBasic sidecar text.
value = META.TO_TEXT(image)META.VALUE(image,key[,fallback])
Returns the metadata value for key, or fallback when the key is absent.
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 |
|---|---|
fallback | Optional parameter. If omitted, the command uses its internal default. |
author = META.VALUE(img, "author", "unknown")NEXT
Closes the FOR loop.
FOR i = 0 TO 9 STEP 1
PRINT i
NEXT
DIM values(3)
values(0) = 10
values(1) = 20
values(2) = 30
FOR v IN values
PRINT v
NEXTNOT expr
Logical negation.
IF NOT CV.IS_STACK(img) AND CV.WIDTH(img) > 0 THEN
PRINT "single image"
ENDIFexpr OR expr
Logical OR operator.
IF NOT CV.IS_STACK(img) AND CV.WIDTH(img) > 0 THEN
PRINT "single image"
ENDIFPARAMS.ADD_BOOL handle, tab, variable, label [, help]
Adds a checkbox bound to an already-defined script variable.
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 |
|---|---|
help | Optional help text shown by the parameter editor. |
PARAMS.ADD_BOOLPARAMS.ADD_COLOR handle, tab, variable, label [, help]
Adds a color selector bound to an already-defined string variable such as #00ff00.
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 |
|---|---|
help | Optional help text shown by the parameter editor. |
PARAMS.ADD_COLORPARAMS.ADD_COMBO handle, tab, variable, label, optionsText [, help]
Adds a combo box bound to an already-defined script variable. String variables receive the selected text; numeric variables receive the selected index.
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 |
|---|---|
help | Optional help text shown by the parameter editor. |
method = "GAUSSIAN"\nPARAMS.ADD_COMBO pe, tab, method, "Metodo", "GAUSSIAN|MEDIAN|BILATERAL"PARAMS.ADD_DIR handle, tab, variable, label [, help]
Adds a directory selector bound to an already-defined string variable.
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 |
|---|---|
help | Optional help text shown by the parameter editor. |
PARAMS.ADD_DIRPARAMS.ADD_DOUBLE handle, tab, variable, label, min, max, step [, help]
Adds a double spin box bound to an already-defined script variable. The variable name is passed without quotes.
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 |
|---|---|
help | Optional help text shown by the parameter editor. |
sigma = 1.5
PARAMS.ADD_DOUBLE pe, tab, sigma, "Sigma", 0.1, 20.0, 0.1PARAMS.ADD_FILE handle, tab, variable, label [, help]
Adds an open-file path selector bound to an already-defined string variable.
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 |
|---|---|
help | Optional help text shown by the parameter editor. |
PARAMS.ADD_FILEPARAMS.ADD_INT handle, tab, variable, label, min, max, step [, help]
Adds an integer spin box bound to an already-defined script variable.
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 |
|---|---|
help | Optional help text shown by the parameter editor. |
PARAMS.ADD_INTPARAMS.ADD_SAVEFILE handle, tab, variable, label [, help]
Adds a save-file path selector bound to an already-defined string variable.
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 |
|---|---|
help | Optional help text shown by the parameter editor. |
PARAMS.ADD_SAVEFILEPARAMS.ADD_STRING handle, tab, variable, label [, help]
Adds a line edit bound to an already-defined script variable.
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 |
|---|---|
help | Optional help text shown by the parameter editor. |
PARAMS.ADD_STRINGPARAMS.CLEAR_DIRTY handle
Clears the dirty flag of a LIVE ParamsEditor panel.
PARAMS.CLEAR_DIRTYPARAMS.CLOSE handle
Closes and destroys a ParamsEditor panel.
PARAMS.CLOSEPARAMS.CREATE(title [, mode])
Creates a ParamsEditor panel and returns a numeric handle. Mode is DIALOG by default or LIVE for a non-modal panel.
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. |
pe = PARAMS.CREATE("Filtro", "LIVE")PARAMS.DIRTY(handle)
TRUE when the user has modified at least one widget since the last PARAMS.CLEAR_DIRTY.
value = PARAMS.DIRTY(handle)PARAMS.EXEC(handle)
Runs the panel as a modal dialog. Variables are updated only if OK is pressed; the dialog session is destroyed on exit.
IF PARAMS.EXEC(pe) THEN
PRINT sigma
ENDIFPARAMS.HELP handle, htmlText
Adds or replaces the ParamsEditor Help tab with HTML text.
PARAMS.HELPPARAMS.IS_OPEN(handle)
TRUE while a LIVE ParamsEditor window is visible.
value = PARAMS.IS_OPEN(handle)PARAMS.LOAD handle, path
Loads widget values from a ParamsEditor XML file.
PARAMS.LOADPARAMS.SAVE handle, path
Saves widget values to a ParamsEditor XML file.
PARAMS.SAVEPARAMS.SHOW handle
Shows a LIVE ParamsEditor panel as a non-modal always-on-top window.
PARAMS.SHOWPARAMS.SYNC handle
Copies current LIVE widget values back into the bound script variables.
PARAMS.SYNCPARAMS.TAB(handle, title)
Adds a tab to a ParamsEditor panel and returns its zero-based index.
tab = PARAMS.TAB(pe, "Base")PLOT.BAR valuesText, width, height AS dst
Creates a bar-chart image from newline-separated numeric values.
PLOT.BAR valuesText, width, height AS dstPLOT.XY pointsText, width, height AS dst
Creates a chart image from newline-separated X,Y numeric pairs.
PLOT.XY pointsText, width, height AS dstPLOT.Y valuesText, width, height AS dst
Creates a chart image from newline-separated numeric Y values.
PLOT.Y valuesText, width, height AS dstPRINT expr1 [; expr2 ...] [, exprN ...]
Writes the provided values to the log output.
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 |
|---|---|
expr2 | Optional parameter. If omitted, the command uses its internal default. |
exprN | Optional parameter. If omitted, the command uses its internal default. |
PRINT "Width="; CV.WIDTH(img); " Height="; CV.HEIGHT(img)RECT.AREA(rect)
Returns w*h for valid rectangles, otherwise 0.
value = RECT.AREA(rect)RECT.CLIP(rect, width, height)
Clips a rectangle to image bounds [0,width) x [0,height).
value = RECT.CLIP(rect, width, height)RECT.CREATE(x, y, w, h)
Creates a half-open pixel rectangle represented by x,y,w,h. XEND is x+w and YEND is y+h.
r = RECT.CREATE(10, 20, 30, 40)RECT.EMPTY(rect)
Returns TRUE when rect has zero/negative width or height.
value = RECT.EMPTY(rect)RECT.EQUAL(a, b)
Returns TRUE when x,y,w,h are identical.
value = RECT.EQUAL(a, b)RECT.FROM_TEXT(text)
Reads a rectangle from RECT(x,y,w,h), RECT:x,y,w,h, or plain x,y,w,h text.
r2 = RECT.FROM_TEXT(RECT.TO_TEXT(r))RECT.H(rect)
Returns the rectangle height in pixels.
value = RECT.H(rect)RECT.INTERSECT(a, b)
Returns the half-open intersection of two rectangles, or an empty rectangle when they do not overlap.
value = RECT.INTERSECT(a, b)RECT.TO_TEXT(rect)
Serializes a rectangle as RECT(x,y,w,h).
value = RECT.TO_TEXT(rect)RECT.UNION(a, b)
Returns the smallest half-open rectangle containing both valid rectangles.
value = RECT.UNION(a, b)RECT.VALID(rect)
Returns TRUE when rect has strictly positive width and height.
value = RECT.VALID(rect)RECT.W(rect)
Returns the rectangle width in pixels.
value = RECT.W(rect)RECT.X(rect)
Returns the first included X pixel coordinate.
value = RECT.X(rect)RECT.XEND(rect)
Returns the exclusive end X coordinate x+w.
value = RECT.XEND(rect)RECT.Y(rect)
Returns the first included Y pixel coordinate.
value = RECT.Y(rect)RECT.YEND(rect)
Returns the exclusive end Y coordinate y+h.
value = RECT.YEND(rect)REM text
Starts a BASIC-style comment. Text after REM is ignored when REM is used as a standalone token.
REMREPORT.ADD_CODE(report, code [, language])
Adds escaped preformatted code or log text.
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 |
|---|---|
language | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_CODE(rep, scriptText, "cvbasic")REPORT.ADD_DIVIDER(report)
Adds a horizontal divider.
rep = REPORT.ADD_DIVIDER(rep)REPORT.ADD_HTML(report, html)
Returns a report with a raw HTML block appended. Use only for trusted/generated HTML.
value = REPORT.ADD_HTML(report, html)REPORT.ADD_IMAGE(report, image [, caption [, frame]])
Returns a report with an image embedded as PNG/base64. For stacks, frame selects the frame to embed.
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 |
|---|---|
caption | Optional parameter. If omitted, the command uses its internal default. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
rep = REPORT.ADD_IMAGE(rep, img, "Processed image")REPORT.ADD_IMAGE_FILE(report, path [, caption])
Embeds an existing PNG/JPEG/GIF/WEBP/SVG image file as base64 in the report.
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 |
|---|---|
caption | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_IMAGE_FILE(rep, "out/plot.png", "Metric plot")REPORT.ADD_KV(report, key, value [, unit])
Adds one key/value row as a compact table.
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 |
|---|---|
unit | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_KV(rep, "FPS", STACK.FPS(st), "Hz")REPORT.ADD_LIST(report, items [, caption])
Adds a bullet list from a newline separated string or an 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 |
|---|---|
caption | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_LIST(rep, "load ok\nfilter ok\nsave ok", "Pipeline")REPORT.ADD_METRIC(report, name, value [, unit [, comment]])
Adds a metric card suitable for summaries and dashboards.
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 |
|---|---|
unit | Optional parameter. If omitted, the command uses its internal default. |
comment | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_METRIC(rep, "SNR", 12.4, "dB", "clear event")REPORT.ADD_NOTE(report, text [, kind [, title]])
Adds an emphasized note block. Kind may be INFO, SUCCESS, WARNING or DANGER.
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 |
|---|---|
kind | Optional parameter. If omitted, the command uses its internal default. |
title | Optional GUI/DataPlot window title. |
rep = REPORT.ADD_NOTE(rep, "Low S/N: repeat the measurement", "WARNING", "Diagnostics")REPORT.ADD_SECTION(report, title [, level])
Returns a report with a section heading appended. Level is clamped to H2..H4.
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 |
|---|---|
level | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_SECTION(rep, "Summary")REPORT.ADD_TABLE(report, table [, caption [, headers]])
Returns a report with a 1D/2D ARRAY/TABLE rendered as an HTML table. Optional headers may be a comma/pipe separated string or a 1D 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 |
|---|---|
caption | Optional parameter. If omitted, the command uses its internal default. |
headers | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_TABLE(rep, metrics, "Metrics", "Name,Value,Unit")REPORT.ADD_TABLE_HEADERS(report, table, headers [, caption])
Adds a table with explicit column headers. Headers may be a comma/pipe/semicolon separated string or an 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 |
|---|---|
caption | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.ADD_TABLE_HEADERS(rep, metrics, "Metric,Value", "Summary")REPORT.ADD_TEXT(report, text)
Returns a report with an escaped text paragraph appended.
rep = REPORT.ADD_TEXT(rep, "Result OK")REPORT.CREATE(title [, subtitle])
Creates a closed HTML report object represented as text. Use REPORT.ADD_* to append items and REPORT.SAVE_HTML to write it.
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 |
|---|---|
subtitle | Optional parameter. If omitted, the command uses its internal default. |
rep = REPORT.CREATE("ROI Analysis")REPORT.FROM_TEXT(text)
Reads a report back from text, wrapping plain fragments in a valid report document if needed.
value = REPORT.FROM_TEXT(text)REPORT.ITEM_COUNT(report)
Returns the number of appended report items.
value = REPORT.ITEM_COUNT(report)REPORT.SAVE(report, path)
Alias of REPORT.SAVE_HTML(report,path).
ok = REPORT.SAVE(rep, "report.html")REPORT.SAVE_HTML(report, path)
Writes the closed report to a UTF-8 HTML file and returns TRUE on success. REPORT.SAVE is an alias.
ok = REPORT.SAVE(rep, "report.html")REPORT.TITLE(report)
Returns the report title extracted from the H1 heading.
value = REPORT.TITLE(report)REPORT.TO_TEXT(report)
Serializes a report to text. In the current implementation the report is already an HTML text object.
value = REPORT.TO_TEXT(report)RETURN [expr]
Exits the current SUB or returns expr from the current FUNCTION.
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 |
|---|---|
expr | Optional parameter. If omitted, the command uses its internal default. |
SUB PROCESS_IMAGE(src, dst)
CV.GRAY src AS g
CV.CLAHE g, 2.0, 8 AS dst
ENDSUB
CALL PROCESS_IMAGE(img, enhanced)
FUNCTION DOUBLE_VALUE(x)
RETURN x * 2
ENDFUNCTIONROI.AREA source [, x, y, w, h [, frame]]
Returns the ROI area in pixels.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
areaRoi = ROI.AREA(img)ROI.CHANGE source [, x, y, w, h [, frame]]
Returns the last ROI change kind, such as set, clear, from_desktop, explicit, create, move, resize or frame. For image objects this metadata remains readable after ROI.CLEAR.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
kind$ = ROI.CHANGE(img)ROI.CLEAR source
Clears a programmatic image ROI, or clears a GUI window ROI when source is a title string.
img = ROI.CLEAR(img)ROI.EXTRACT source [, rect [, frame]] OR ROI.EXTRACT source, x, y, w, h [, frame]
Extracts the stored, explicit or RECT-based ROI as a new single-image patch. Works with image objects and, when a GUI host exists, desktop window titles.
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 |
|---|---|
rect | Optional parameter. If omitted, the command uses its internal default. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
patch = ROI.EXTRACT(img)
patch2 = ROI.EXTRACT(img, RECT.CREATE(10,20,30,40))ROI.FRAME source [, x, y, w, h [, frame]]
Returns the frame index associated with the ROI.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
f = ROI.FRAME(img)ROI.FROM_DESKTOP image, windowTitle
Copies the current interactive GUI ROI from a named window into an image/stack object.
img = ROI.FROM_DESKTOP(img, "Source")ROI.H source [, x, y, w, h [, frame]]
Returns the ROI height in pixels.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
h = ROI.H(img)ROI.MAX source [, x, y, w, h [, frame]]
Returns the maximum sample value inside a stored or temporary ROI.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
mx = ROI.MAX(img)ROI.MEAN source [, x, y, w, h [, frame]]
Returns the mean of all samples inside a stored or temporary ROI.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
m = ROI.MEAN(img, 100, 80, 200, 120)ROI.MIN source [, x, y, w, h [, frame]]
Returns the minimum sample value inside a stored or temporary ROI.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
mn = ROI.MIN(img)ROI.RECT source [, x, y, w, h [, frame]]
Returns the current or temporary ROI as a RECT-compatible value [x,y,w,h]. This closes the ROI/RECT geometry loop.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
r = ROI.RECT(img)
ASSERT RECT.EQUAL(r, RECT.CREATE(100,80,200,120))ROI.REVISION source [, x, y, w, h [, frame]]
Returns the monotonic ROI revision counter for stored programmatic/GUI ROIs. Explicit temporary ROIs return 0. For image objects this metadata remains readable after ROI.CLEAR.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
r = ROI.REVISION(img)ROI.SET image, x, y, w, h [, frame]
Stores a programmatic ROI inside an image/stack object and returns the same object. This is headless-safe.
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. |
img = ROI.SET(img, 100, 80, 200, 120)ROI.SET_RECT image, rect [, frame]
Stores a programmatic ROI using a RECT value returned by RECT.CREATE, RECT.FROM_TEXT, RECT.CLIP, RECT.INTERSECT or ROI.RECT. The RECT is clipped to image bounds and the same image object is returned.
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. |
r = RECT.CREATE(100, 80, 200, 120)
img = ROI.SET_RECT(img, r)ROI.STDDEV source [, x, y, w, h [, frame]]
Returns the standard deviation of all samples inside a stored or temporary ROI.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
s = ROI.STDDEV(img)ROI.SUM source [, x, y, w, h [, frame]]
Returns the sum of all samples inside a stored or temporary ROI.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
sumRoi = ROI.SUM(img)ROI.VALID source [, x, y, w, h [, frame]]
Returns TRUE if a ROI is available or if the explicit ROI coordinates are valid. Source may be an image/stack object or a GUI window title.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
IF ROI.VALID(img) THEN
PRINT ROI.MEAN(img)
ENDIFROI.W source [, x, y, w, h [, frame]]
Returns the ROI width in pixels.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
w = ROI.W(img)ROI.X source [, x, y, w, h [, frame]]
Returns the ROI left coordinate.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
x = ROI.X(img)ROI.X2 source [, x, y, w, h [, frame]]
Returns the Qt-style inclusive right ROI coordinate. Prefer ROI.XEND for the half-open exclusive end coordinate.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
x2 = ROI.X2(img)ROI.XEND source [, x, y, w, h [, frame]]
Returns the exclusive half-open end coordinate x+w, aligned with RECT.XEND and OpenCV cv::Rect.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
xEnd = ROI.XEND(img)ROI.Y source [, x, y, w, h [, frame]]
Returns the ROI top coordinate.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
y = ROI.Y(img)ROI.Y2 source [, x, y, w, h [, frame]]
Returns the Qt-style inclusive bottom ROI coordinate. Prefer ROI.YEND for the half-open exclusive end coordinate.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
y2 = ROI.Y2(img)ROI.YEND source [, x, y, w, h [, frame]]
Returns the exclusive half-open end coordinate y+h, aligned with RECT.YEND and OpenCV cv::Rect.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
frame | Zero-based frame index; some stack commands accept -1 for all frames. |
yEnd = ROI.YEND(img)SERIAL.ADD(a, b)
Library: Serial user library 1.0.0 Returns a + b.
value = SERIAL.ADD(a, b)SERIAL.HELLO [name]
Library: Serial user library 1.0.0 Prints a greeting from the DLL.
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 |
|---|---|
name | Optional parameter. If omitted, the command uses its internal default. |
SERIAL.HELLOSERIAL.VERSION()
Library: Serial user library 1.0.0 Returns the library version string.
value = SERIAL.VERSION()SIGNAL.SPECTRUM(signal, fps [, removeDc [, hannWindow [, padPow2]]])
Computes a Hann-windowed DFT magnitude spectrum from a numeric signal. Returns an Nx2 array: frequency Hz, magnitude.
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 |
|---|---|
removeDc | Optional parameter. If omitted, the command uses its internal default. |
hannWindow | Optional parameter. If omitted, the command uses its internal default. |
padPow2 | Optional parameter. If omitted, the command uses its internal default. |
spec = SIGNAL.SPECTRUM(signal, fps, TRUE, TRUE, TRUE)
freq = ARRAY.COLUMN(spec, 0)
mag = ARRAY.COLUMN(spec, 1)STACK
Logical type returned by TYPE(x) for frame stacks.
STACKSTACK.ABSDIFF_PREV stack AS dst
Builds a stack of absolute differences between consecutive frames. Output frames = input frames - 1.
STACK.ABSDIFF_PREV st AS motionSTACK.APPEND stack, image AS dst
Appends one image or all frames from another stack to an existing stack. All frames must have the same size and OpenCV type.
STACK.APPEND st, img AS st2STACK.AVERAGE stack AS dst
Reduces a stack to a single average image.
STACK.AVERAGE st AS avgSTACK.DELETE stack, index AS dst
Removes one zero-based frame and returns a new stack. The command refuses to produce an empty stack.
STACK.DELETE st, 10 AS st2STACK.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.FROM_IMAGES image1, image2 [, image3 ...] AS dst
Creates a stack directly from images generated or loaded at runtime. All frames must have the same size and OpenCV type.
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 |
|---|---|
image3 | Optional parameter. If omitted, the command uses its internal default. |
STACK.FROM_IMAGES img0, img1, img2 AS stSTACK.INSERT stack, index, imageOrStack AS dst
Inserts one image, or all frames from another stack, at zero-based index. Index 0 inserts before the first frame; index STACK.FRAMES(st) appends at the end.
STACK.INSERT st, 0, firstFrame AS st2STACK.INTERPOLATE stack, factor [, method] AS dst
Upsamples a stack by inserting interpolated frames between each original pair. Methods: LINEAR/BLEND or NEAREST. Output FPS is source FPS multiplied by factor when source FPS is known.
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 |
|---|---|
method | OpenCV method selector accepted by the command. |
STACK.INTERPOLATE st, 2, "LINEAR" AS slow
STACK.INTERPOLATE st, 4, "NEAREST" AS steppedSTACK.MAX_IMAGE stack AS dst
Reduces a stack to a per-pixel temporal maximum image.
STACK.MAX_IMAGE st AS mxSTACK.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.MEDIAN stack AS dst
Reduces a stack to a robust per-pixel median image.
STACK.MEDIAN st AS medSTACK.MIN_IMAGE stack AS dst
Reduces a stack to a per-pixel temporal minimum image.
STACK.MIN_IMAGE st AS mnSTACK.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)", sSTACK.RANGE stack, first, count AS dst
Extracts a sub-stack starting at zero-based frame index first and containing up to count frames.
STACK.RANGE st, 10, 50 AS clipSTACK.RESAMPLE_FPS stack, newFps [, method] AS dst
Resamples a stack to a requested FPS using temporal interpolation. Requires a valid source FPS greater than zero. Methods: LINEAR/BLEND or NEAREST.
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 |
|---|---|
method | OpenCV method selector accepted by the command. |
STACK.RESAMPLE_FPS st, 25.0, "LINEAR" AS st25STACK.SET_FPS stack, fps AS dst
Sets FPS metadata on a stack without changing pixels. Useful for synthetic/image-sequence stacks before STACK.RESAMPLE_FPS.
STACK.SET_FPS st, 10.0 AS st10STACK.STABILIZE stack [, method [, referenceIndex [, maxFeatures [, ransacThreshold [, borderValue]]]]] AS dst[, transforms]
Stabilizes all frames onto one reference frame. Methods: TRANSLATION, AFFINE, ORB_HOMOGRAPHY. A second output variable receives a transform table: frame, methodCode, quality, inliers, and 3x3 matrix coefficients.
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 |
|---|---|
method | OpenCV method selector accepted by the command. |
referenceIndex | Optional parameter. If omitted, the command uses its internal default. |
maxFeatures | Optional parameter. If omitted, the command uses its internal default. |
ransacThreshold | Optional parameter. If omitted, the command uses its internal default. |
borderValue | Constant value used to fill pixels outside the source image after a transform. |
transforms | Optional parameter. If omitted, the command uses its internal default. |
STACK.STABILIZE st, TRANSLATION AS stab
STACK.STABILIZE st, AFFINE, 0, 800, 3.0 AS stab, trSTACK.STDDEV_IMAGE stack AS dst
Reduces a stack to a 32/64-bit standard-deviation image that maps temporal variability per pixel.
STACK.STDDEV_IMAGE st AS sigmaSTACK.TEMPORAL_FILTER stack, radius [, method] AS dst
Applies a centered temporal moving-window filter to each frame. Methods: MEAN/AVG, MEDIAN, MIN, MAX. Edges use the available clipped window.
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 |
|---|---|
method | OpenCV method selector accepted by the command. |
STACK.TEMPORAL_FILTER st, 2, "MEAN" AS denoised
STACK.TEMPORAL_FILTER st, 1, "MEDIAN" AS despeckledFOR var = start TO end [STEP step]
Increment of the numeric FOR loop.
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 |
|---|---|
STEP | Optional parameter. If omitted, the command uses its internal default. |
FOR i = 0 TO 9 STEP 1
PRINT i
NEXT
DIM values(3)
values(0) = 10
values(1) = 20
values(2) = 30
FOR v IN values
PRINT v
NEXTSUB name([param1 [, param2 ...]])
Starts a named subroutine block. The block is skipped during normal flow and executed only by CALL.
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 |
|---|---|
param1 | First algorithm-specific tuning parameter. |
param2 | Second algorithm-specific tuning parameter. |
SUB PROCESS_IMAGE(src, dst)
CV.GRAY src AS g
CV.CLAHE g, 2.0, 8 AS dst
ENDSUB
CALL PROCESS_IMAGE(img, enhanced)SWITCH expression
Starts a multi-branch selection block. The expression is evaluated once and compared with each CASE value, range or numeric comparison.
SWITCH score
CASE 0 TO 30
PRINT "low"
CASE 31 TO 70
PRINT "medium"
CASE > 70
PRINT "high"
DEFAULT
PRINT "invalid"
ENDSWITCHSYS.ARG(index)
Returns one zero-based positional command-line argument, or an empty string when out of range.
value = SYS.ARG(index)SYS.ARGC()
Returns the number of positional arguments passed after the script name on the command line.
value = SYS.ARGC()SYS.CWD()
Returns the current process working directory.
value = SYS.CWD()SYS.GET(name[, defaultValue])
Returns a named parameter passed with --set name=value; optional second argument is the default value.
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 |
|---|---|
defaultValue | Optional parameter. If omitted, the command uses its internal default. |
value = SYS.GET(name[, defaultValue])SYS.HAS(name)
TRUE if a named parameter was passed with --set name=value.
value = SYS.HAS(name)SYS.SCRIPT_DIR()
Absolute directory containing the currently loaded .cvb script.
value = SYS.SCRIPT_DIR()SYS.SCRIPT_PATH()
Absolute path of the currently loaded .cvb script.
value = SYS.SCRIPT_PATH()TABLE.CELL(table, row, col)
Reads one zero-based table cell.
value = TABLE.CELL(table, row, col)TABLE.COLS(table)
Returns the number of columns in a 2D array table.
value = TABLE.COLS(table)TABLE.COLUMN(table, column)
Alias of ARRAY.COLUMN for table-like 2D arrays.
value = TABLE.COLUMN(table, column)TABLE.ROW(table, row)
Alias of ARRAY.ROW for table-like 2D arrays.
value = TABLE.ROW(table, row)TABLE.ROWS(table)
Returns the number of rows in a 2D array table.
value = TABLE.ROWS(table)TEXT.CONTAINS(value, fragment [, caseSensitive])
Returns TRUE if value contains the requested text fragment.
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 |
|---|---|
caseSensitive | Optional parameter. If omitted, the command uses its internal default. |
ASSERT TEXT.CONTAINS(LANG.HELP("ROI.SET"), "ROI")TEXT.INDEX_OF(value, fragment [, caseSensitive])
Returns the zero-based index of fragment in value, or -1 when absent.
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 |
|---|---|
caseSensitive | Optional parameter. If omitted, the command uses its internal default. |
value = TEXT.INDEX_OF(value, fragment [, caseSensitive])TEXT.LEFT(value,count)
Returns the first N characters.
value = TEXT.LEFT(value,count)TEXT.LEN(value)
Length of the value converted to text.
value = TEXT.LEN(value)TEXT.LINE_COUNT(text)
Counts lines in a text block. Empty text returns 0; both LF and CRLF are supported.
value = TEXT.LINE_COUNT(text)TEXT.LINE_ITEM(text,index)
Returns one zero-based line from a text block. Out-of-range indices return an empty string.
value = TEXT.LINE_ITEM(text,index)TEXT.LOWER(value)
Converts text to lowercase.
value = TEXT.LOWER(value)TEXT.MID(value,start[,count])
Extracts a substring starting at a given position.
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 |
|---|---|
count | Optional parameter. If omitted, the command uses its internal default. |
value = TEXT.MID(value,start[,count])TEXT.REPLACE(value,before,after)
Replaces one substring with another.
value = TEXT.REPLACE(value,before,after)TEXT.RIGHT(value,count)
Returns the last N characters.
value = TEXT.RIGHT(value,count)TEXT.STR(value)
Converts the value to string.
value = TEXT.STR(value)TEXT.TRIM(value)
Removes leading and trailing spaces.
value = TEXT.TRIM(value)TEXT.UPPER(value)
Converts text to uppercase.
value = TEXT.UPPER(value)IF condition THEN [statement]
Separates the condition from the true branch. A statement after THEN creates a one-line IF.
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 |
|---|---|
statement | Optional parameter. If omitted, the command uses its internal default. |
IF CV.WIDTH(img) > 512 THEN
PRINT "large image"
ELSE
PRINT "small image"
ENDIFTIME.DELAY_MS milliseconds
Pauses script execution for the requested number of milliseconds while keeping STOP responsive.
TIME.DELAY_MSTIME.ELAPSED_MS(name)
Returns monotonic milliseconds elapsed since TIMER_RESET was called for the named timer.
value = TIME.ELAPSED_MS(name)TIME.TICK_MS()
Returns monotonic milliseconds elapsed since the current script runtime started or was cleared.
value = TIME.TICK_MS()TIME.TIMER_RESET name
Creates or resets a named monotonic timer inside the current script runtime.
TIME.TIMER_RESETFOR var = start TO end [STEP step]
Specifies the final value of the FOR loop.
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 |
|---|---|
STEP | Optional parameter. If omitted, the command uses its internal default. |
FOR i = 0 TO 9 STEP 1
PRINT i
NEXT
DIM values(3)
values(0) = 10
values(1) = 20
values(2) = 30
FOR v IN values
PRINT v
NEXTTRUE
Boolean true constant.
TRUETRY
Starts a protected block. Runtime errors raised before CATCH are intercepted instead of stopping the script.
TRY
IO.LOAD "missing.png" AS img
CATCH err, line
PRINT "Error at line "; line; ": "; err
ENDTRYUSING "library.cvb"
Includes another cvBasic source file before execution. Relative paths are resolved from the current script or included file directory; recursive include cycles are rejected. INCLUDE is an exact alias of USING. Rev 10.0 also supports ':' between simple statements and '_' as a line-continuation marker.
USING "lib/image_quality.cvb"
score = CONTRAST_SCORE(img)VEC.ANIM.CIRCLE handle, itemId, centerX, centerY, radius, durationMs [, startDeg [, endDeg [, loops [, yoyo]]]]
Alias of VEC.ANIM.ORBIT.
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 |
|---|---|
startDeg | Optional parameter. If omitted, the command uses its internal default. |
endDeg | Optional parameter. If omitted, the command uses its internal default. |
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.CIRCLEVEC.ANIM.MOVE handle, itemId, x1, y1, x2, y2, durationMs [, loops [, yoyo]]
Animates the item position. loops=1 runs once; loops=0 loops forever; yoyo=TRUE reverses every other loop.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.MOVE v, ball, 40, 180, 600, 180, 2500, 0, TRUEVEC.ANIM.OPACITY handle, itemId, o1, o2, durationMs [, loops [, yoyo]]
Animates item opacity between two values in range 0..1.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.OPACITYVEC.ANIM.OPACITY_KEYFRAMES handle, itemId, "timeMs,opacity;timeMs,opacity;..." [, loops]
Animates item opacity using absolute time/value keyframes. This is useful for discrete states: switches, traffic lights, phase indicators, etc. loops=0 loops forever.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.OPACITY_KEYFRAMES v, leverA, "0,1;5200,1;5201,0;10400,0", 0VEC.ANIM.OPACITY_PATH handle, itemId, keyframes [, loops]
Alias of VEC.ANIM.OPACITY_KEYFRAMES.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.OPACITY_PATHVEC.ANIM.ORBIT handle, itemId, centerX, centerY, radius, durationMs [, startDeg [, endDeg [, loops [, yoyo]]]]
Animates an item on a circular orbit around a center point. Alias: VEC.ANIM.CIRCLE.
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 |
|---|---|
startDeg | Optional parameter. If omitted, the command uses its internal default. |
endDeg | Optional parameter. If omitted, the command uses its internal default. |
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.ORBIT v, moon, 400, 260, 120, 3000, 0, 360, 0, FALSEVEC.ANIM.PATH handle, itemId, "x,y;x,y;...", durationMs [, loops [, yoyo]]
Animates an item along a polyline trajectory. Very useful for physics/mathematics demonstrations. Alias: VEC.ANIM.TRAJECTORY.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.PATH v, particle, "80,320;180,220;320,250;520,160", 4000, 0, TRUEVEC.ANIM.ROTATE handle, itemId, a1, a2, durationMs [, loops [, yoyo]]
Animates the item rotation in degrees.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.ROTATEVEC.ANIM.ROTATE_PATH handle, itemId, "a;a;a;...", durationMs [, loops [, yoyo]]
Animates item rotation through a list of angle keyframes. This is more useful than linear rotation for physics, because the angle can come from a numerical simulation. Alias: VEC.ANIM.ROTATION_PATH.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.ROTATE_PATH v, rod, angleList, 6000, 0, TRUEVEC.ANIM.ROTATION_PATH handle, itemId, angleList, durationMs [, loops [, yoyo]]
Alias of VEC.ANIM.ROTATE_PATH.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.ROTATION_PATHVEC.ANIM.SCALE handle, itemId, s1, s2, durationMs [, loops [, yoyo]]
Animates uniform scale, useful for pulsating markers or attention cues.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.SCALEVEC.ANIM.STATE handle, itemId, keyframes [, loops]
Alias of VEC.ANIM.OPACITY_KEYFRAMES, intended for visibility/state timelines.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.STATEVEC.ANIM.STOP handle [, itemId]
Stops animations. Omit itemId or pass 0 to stop all animations on the canvas.
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 |
|---|---|
itemId | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.STOP vVEC.ANIM.TRAJECTORY handle, itemId, "x,y;x,y;...", durationMs [, loops [, yoyo]]
Alias of VEC.ANIM.PATH.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
yoyo | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.TRAJECTORYVEC.ANIM.VISIBLE_TIMELINE handle, itemId, keyframes [, loops]
Alias of VEC.ANIM.OPACITY_KEYFRAMES.
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 |
|---|---|
loops | Optional parameter. If omitted, the command uses its internal default. |
VEC.ANIM.VISIBLE_TIMELINEVEC.ARROW handle, x1, y1, x2, y2 [, headSize]
Adds a line with a simple arrow head, useful for annotations and motion/vector diagrams.
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 |
|---|---|
headSize | Optional parameter. If omitted, the command uses its internal default. |
VEC.ARROW v, 80, 420, 300, 360, 18VEC.ARROW_ID(handle, x1, y1, x2, y2 [, headSize])
Function form of VEC.ARROW. It returns the item id.
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 |
|---|---|
headSize | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.ARROW_ID(handle, x1, y1, x2, y2 [, headSize])VEC.AXES handle [, originX [, originY [, tickStep [, color [, width]]]]]
Draws X/Y axes with optional ticks. This is intentionally simple and script-friendly.
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 |
|---|---|
originX | Optional parameter. If omitted, the command uses its internal default. |
originY | Optional parameter. If omitted, the command uses its internal default. |
tickStep | Optional parameter. If omitted, the command uses its internal default. |
color | Optional plot/drawing color value. |
width | Optional parameter. If omitted, the command uses its internal default. |
VEC.AXES v, 60, 420, 50, "#444444", 1.5VEC.BATCH handle [, enabled]
Temporarily freezes viewport repaints/info-label updates while many vector items are created. Use VEC.BATCH v, TRUE before a heavy plot block and VEC.BATCH v, FALSE after it. Alias: VEC.FREEZE.
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 |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
VEC.BATCH v, TRUE
' heavy plot commands...
VEC.BATCH v, FALSE
VEC.SYNC v, 40VEC.BRUSH handle [, color|TRANSPARENT]
Sets the fill brush for rectangles and ellipses. Use TRANSPARENT/NONE to draw outlines only.
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 |
|---|---|
color | Optional plot/drawing color value. |
TRANSPARENT | Optional parameter. If omitted, the command uses its internal default. |
VEC.BRUSH v, "#ffeeaa"VEC.CAPTURE_AVI handle, path, frames [, fps [, transparent [, fourcc]]]
Captures the animated vector canvas directly to an AVI file. Default codec is MJPG; aliases: VEC.SAVE_AVI and VEC.EXPORT_AVI.
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. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
fourcc | Optional parameter. If omitted, the command uses its internal default. |
VEC.CAPTURE_AVI v, "out/orbit.avi", 180, 30, FALSE, "MJPG"VEC.CAPTURE_FRAMES handle, folder, prefix, frames [, delayMs [, transparent]]
Alias of VEC.CAPTURE_PNG.
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 |
|---|---|
delayMs | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
VEC.CAPTURE_FRAMESVEC.CAPTURE_PNG handle, folder, prefix, frames [, delayMs [, transparent]]
Captures a sequence of PNG frames from the current canvas while active animations are running. Aliases: VEC.CAPTURE_FRAMES and VEC.EXPORT_FRAMES.
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 |
|---|---|
delayMs | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
VEC.CAPTURE_PNG v, "out/orbit_frames", "orbit", 90, 33, FALSEVEC.CAPTURE_STACK(handle, frames [, fps [, transparent]])
Captures the animated vector canvas into a stack/image-sequence object that can be passed to GUI.SHOW or saved by the normal image/stack pipeline. Alias: VEC.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. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
stack = VEC.CAPTURE_STACK(v, 120, 30, FALSE)
GUI.SHOW stack, "Vector animation stack"VEC.CLEAR handle
Removes all vector items from the selected canvas without destroying the window.
VEC.CLEAR vVEC.CLOSE handle
Closes a vector canvas window.
VEC.CLOSE vVEC.CREATE(width, height [, title [, background]])
Creates an interactive vector canvas and returns a numeric handle. The canvas is a scriptable QGraphicsScene-based whiteboard that can be exported to SVG or rasterized back to a Mat.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
background | Initial canvas background value. |
v = VEC.CREATE(800, 500, "Vector demo", "white")VEC.ELLIPSE handle, x, y, w, h
Adds an ellipse inscribed in the rectangle x,y,w,h using the current pen and brush.
VEC.ELLIPSE v, 260, 70, 160, 90VEC.ELLIPSE_ID(handle, x, y, w, h)
Function form of VEC.ELLIPSE. It adds the ellipse and returns its item id.
ball = VEC.ELLIPSE_ID(v, 60, 180, 40, 40)VEC.EXPORT_AVI handle, path, frames [, fps [, transparent [, fourcc]]]
Alias of VEC.CAPTURE_AVI.
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. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
fourcc | Optional parameter. If omitted, the command uses its internal default. |
VEC.EXPORT_AVIVEC.EXPORT_FRAMES handle, folder, prefix, frames [, delayMs [, transparent]]
Alias of VEC.CAPTURE_PNG.
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 |
|---|---|
delayMs | Optional parameter. If omitted, the command uses its internal default. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
VEC.EXPORT_FRAMESVEC.FLUSH handle [, maxMs]
Alias of VEC.SYNC.
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 |
|---|---|
maxMs | Optional parameter. If omitted, the command uses its internal default. |
VEC.FLUSHVEC.FONT handle [, family [, pointSize [, bold [, italic]]]]
Sets the current font used by VEC.TEXT.
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 |
|---|---|
family | Optional parameter. If omitted, the command uses its internal default. |
pointSize | Optional parameter. If omitted, the command uses its internal default. |
bold | Optional parameter. If omitted, the command uses its internal default. |
italic | Optional parameter. If omitted, the command uses its internal default. |
VEC.FONT v, "Arial", 18, TRUE, FALSEVEC.FRAME(handle [, transparent])
Alias of VEC.MAT, named for animated/capture workflows: returns the current canvas frame as Mat.
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 |
|---|---|
transparent | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.FRAME(handle [, transparent])VEC.FRAME_PNG handle, path [, transparent]
Alias of VEC.SAVE_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 |
|---|---|
transparent | Optional parameter. If omitted, the command uses its internal default. |
VEC.FRAME_PNGVEC.FREEZE handle [, enabled]
Alias of VEC.BATCH.
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 |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
VEC.FREEZEVEC.GRID handle, step [, color [, width]]
Draws a lightweight grid as one vector item. It is useful as a plotting/geometry reference layer.
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 |
|---|---|
color | Optional plot/drawing color value. |
width | Optional parameter. If omitted, the command uses its internal default. |
VEC.GRID v, 50, "#dddddd", 1VEC.IMAGE handle, image [, x [, y [, w [, h [, opacity]]]]]
Inserts the first frame of an image/stack into the vector canvas. If w and h are positive the image is scaled; opacity is 0..1.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
opacity | Optional parameter. If omitted, the command uses its internal default. |
VEC.IMAGE v, img, 0, 0, 512, 512, 0.35VEC.IMAGE_ID(handle, image [, x [, y [, w [, h [, opacity]]]]])
Function form of VEC.IMAGE. It adds the image layer and returns its item id.
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 |
|---|---|
x | Optional parameter. If omitted, the command uses its internal default. |
y | Optional parameter. If omitted, the command uses its internal default. |
w | Optional output width, or ROI width when part of x,y,w,h. |
h | Optional output height, or ROI height when part of x,y,w,h. |
opacity | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.IMAGE_ID(handle, image [, x [, y [, w [, h [, opacity]]]]])VEC.ITEM.CENTER_X(handle, itemId)
Returns the current scene-center x coordinate of a vector item.
value = VEC.ITEM.CENTER_X(handle, itemId)VEC.ITEM.CENTER_Y(handle, itemId)
Returns the current scene-center y coordinate of a vector item.
value = VEC.ITEM.CENTER_Y(handle, itemId)VEC.ITEM.DRAGGABLE handle, itemId [, enabled]
Alias of VEC.ITEM.MOVABLE.
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 |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
VEC.ITEM.DRAGGABLEVEC.ITEM.MOVABLE handle, itemId [, enabled]
Makes an item draggable with the mouse inside the vector canvas. Movable items are also made selectable. Alias: VEC.ITEM.DRAGGABLE.
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 |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
VEC.ITEM.MOVABLE v, chargeItem, TRUEVEC.ITEM.MOVE handle, itemId, x, y
Alias of VEC.ITEM.POS.
VEC.ITEM.MOVEVEC.ITEM.OPACITY handle, itemId, opacity
Sets opacity 0..1 for one existing item.
VEC.ITEM.OPACITYVEC.ITEM.OPACITY_VALUE(handle, itemId)
Returns the current opacity value of a vector item.
value = VEC.ITEM.OPACITY_VALUE(handle, itemId)VEC.ITEM.ORIGIN handle, itemId, x, y
Sets the local transform origin/pivot for rotation and scale. Alias: VEC.ITEM.PIVOT. This is important for physical systems such as pendulums, levers and rotating arms.
VEC.ITEM.ORIGIN v, rod, 0, 0VEC.ITEM.PIVOT handle, itemId, x, y
Alias of VEC.ITEM.ORIGIN.
VEC.ITEM.PIVOTVEC.ITEM.POS handle, itemId, x, y
Sets the position transform of an existing vector item. Alias: VEC.ITEM.MOVE.
VEC.ITEM.POS v, ball, 100, 160VEC.ITEM.ROTATE handle, itemId, angleDeg
Rotates an existing vector item around its local bounding-box center.
VEC.ITEM.ROTATEVEC.ITEM.ROTATION(handle, itemId)
Returns the current rotation angle of a vector item in degrees.
value = VEC.ITEM.ROTATION(handle, itemId)VEC.ITEM.SCALE handle, itemId, sx [, sy]
Scales an existing item around its local bounding-box center. If sy is omitted, sx is used for both axes.
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 |
|---|---|
sy | Optional parameter. If omitted, the command uses its internal default. |
VEC.ITEM.SCALEVEC.ITEM.SELECTABLE handle, itemId [, enabled]
Enables or disables mouse selection for an existing vector item.
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 |
|---|---|
enabled | Boolean switch: TRUE/1 enables the option, FALSE/0 disables it. |
VEC.ITEM.SELECTABLE v, labelItem, TRUEVEC.ITEM.X(handle, itemId)
Returns the current x position transform of a vector item.
value = VEC.ITEM.X(handle, itemId)VEC.ITEM.Y(handle, itemId)
Returns the current y position transform of a vector item.
value = VEC.ITEM.Y(handle, itemId)VEC.ITEM.Z handle, itemId, z
Changes the z-order of an existing item.
VEC.ITEM.ZVEC.ITEM_COUNT(handle)
Returns the number of registered vector items in the canvas.
PRINT VEC.ITEM_COUNT(v)VEC.LAST_ITEM(handle)
Returns the numeric id of the last vector item created on the canvas. This id can be used by VEC.ITEM.* and VEC.ANIM.* commands.
id = VEC.LAST_ITEM(v)VEC.LAYER handle [, name]
Alias of VEC.LAYER.SELECT.
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 |
|---|---|
name | Optional parameter. If omitted, the command uses its internal default. |
VEC.LAYERVEC.LAYER.CLEAR handle [, name]
Deletes all vector items assigned to the selected layer. Useful for interactive redraw loops where a dynamic overlay is recalculated.
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 |
|---|---|
name | Optional parameter. If omitted, the command uses its internal default. |
VEC.LAYER.CLEAR v, "field"VEC.LAYER.SELECT handle [, name]
Selects the current drawing layer. New vector items are assigned to that layer. The default layer is named default.
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 |
|---|---|
name | Optional parameter. If omitted, the command uses its internal default. |
VEC.LAYER.SELECT v, "field"VEC.LAYER.SHOW handle, name [, visible]
Alias of VEC.LAYER.VISIBLE.
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 |
|---|---|
visible | Optional parameter. If omitted, the command uses its internal default. |
VEC.LAYER.SHOWVEC.LAYER.VISIBLE handle, name [, visible]
Shows or hides all items belonging to a layer. Alias: VEC.LAYER.SHOW.
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 |
|---|---|
visible | Optional parameter. If omitted, the command uses its internal default. |
VEC.LAYER.VISIBLE v, "field", TRUEVEC.LINE handle, x1, y1, x2, y2
Adds a line using the current pen.
VEC.LINE v, 20, 20, 300, 120VEC.LINE_ID(handle, x1, y1, x2, y2)
Function form of VEC.LINE. It adds the line and returns its item id.
line = VEC.LINE_ID(v, 20, 20, 200, 120)VEC.MAT(handle [, transparent])
Rasterizes the current vector canvas and returns it as an image/Mat value. By default it produces a normal 3-channel BGR Mat; with transparent=TRUE it keeps an alpha channel and makes the background transparent.
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 |
|---|---|
transparent | Optional parameter. If omitted, the command uses its internal default. |
overlay = VEC.MAT(v, TRUE)
GUI.SHOW overlay, "Vector overlay"VEC.NEW(width, height [, title [, background]])
Alias of VEC.CREATE.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
background | Initial canvas background value. |
value = VEC.NEW(width, height [, title [, background]])VEC.OPACITY handle, opacity
Sets the default opacity for following vector items. Opacity is 0..1.
VEC.OPACITY v, 0.65VEC.PEN handle, color [, width [, style]]
Sets the current stroke color, width and style for following vector primitives. Colors are Qt names or #RRGGBB. Styles: SOLID, DASH, DOT, DASHDOT, DASHDOTDOT, NONE.
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 |
|---|---|
width | Optional parameter. If omitted, the command uses its internal default. |
style | Optional parameter. If omitted, the command uses its internal default. |
VEC.PEN v, "red", 2, "SOLID"VEC.PLOT.AREA handle, left, top, width, height, "x,y;x,y;...", xMin, xMax, yMin, yMax [, baseline]
Draws a filled area under a data polyline down to a baseline. Use VEC.BRUSH before the command to choose the fill color; alias: VEC.PLOT.FILL.
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 |
|---|---|
baseline | Optional parameter. If omitted, the command uses its internal default. |
VEC.BRUSH v, "#ddeeff"
VEC.PLOT.AREA v, 70, 55, 620, 300, "0,0;1,2;2,1;3,3", 0, 3, 0, 4, 0VEC.PLOT.AXES handle, left, top, width, height, xMin, xMax, yMin, yMax [, xTicks [, yTicks [, grid]]]]
Draws a scientific plot frame in the given rectangle, including border, tick marks, optional grid and zero axes when visible in range.
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 |
|---|---|
xTicks | Optional parameter. If omitted, the command uses its internal default. |
yTicks | Optional parameter. If omitted, the command uses its internal default. |
grid | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.AXES v, 60, 50, 520, 300, -6.28, 6.28, -1.5, 1.5, 8, 6, TRUEVEC.PLOT.BAR handle, left, top, width, height, values, yMin, yMax [, barFill]
Alias of VEC.PLOT.BARS.
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 |
|---|---|
barFill | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.BARVEC.PLOT.BARS handle, left, top, width, height, "v1;v2;...", yMin, yMax [, barFill]
Draws a categorical bar plot from a numeric list. The current brush fills the bars, and the current pen outlines them.
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 |
|---|---|
barFill | Optional parameter. If omitted, the command uses its internal default. |
VEC.BRUSH v, "#88ccee"
VEC.PLOT.BARS v, 80, 80, 280, 220, "2;5;3;7;4", 0, 8, 0.75VEC.PLOT.FILL handle, left, top, width, height, points, xMin, xMax, yMin, yMax [, baseline]
Alias of VEC.PLOT.AREA.
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 |
|---|---|
baseline | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.FILLVEC.PLOT.FUNCTION handle, left, top, width, height, expression, xMin, xMax [, samples [, yMin [, yMax [, autoScale]]]]
Evaluates a function of x and plots it as a polyline. The expression can use normal math functions such as SIN, COS, EXP, SQRT, etc. When autoScale is TRUE the y range is estimated from the sampled values.
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 |
|---|---|
samples | Optional parameter. If omitted, the command uses its internal default. |
yMin | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
autoScale | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.FUNCTION v, 60, 50, 520, 300, "MATH.SIN(x)", -6.28, 6.28, 500, -1.2, 1.2, FALSEVEC.PLOT.FUNCTION_ID(handle, left, top, width, height, expression, xMin, xMax [, samples [, yMin [, yMax [, autoScale]]]])
Function form of VEC.PLOT.FUNCTION. It returns the created item id of the plotted curve.
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 |
|---|---|
samples | Optional parameter. If omitted, the command uses its internal default. |
yMin | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
autoScale | Optional parameter. If omitted, the command uses its internal default. |
curve = VEC.PLOT.FUNCTION_ID(v, 60, 50, 520, 300, "MATH.SIN(x)", -6.28, 6.28, 500, -1.2, 1.2, FALSE)VEC.PLOT.HIST handle, left, top, width, height, values [, bins [, xMin [, xMax [, yMax [, barFill]]]]]
Alias of VEC.PLOT.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. |
xMin | Optional parameter. If omitted, the command uses its internal default. |
xMax | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
barFill | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.HISTVEC.PLOT.HISTOGRAM handle, left, top, width, height, "v1;v2;..." [, bins [, xMin [, xMax [, yMax [, barFill]]]]]
Builds a histogram from a numeric list. If xMin=xMax the range is auto-estimated; if yMax<=0 the histogram height is auto-scaled. Alias: VEC.PLOT.HIST.
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. |
xMin | Optional parameter. If omitted, the command uses its internal default. |
xMax | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
barFill | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.HISTOGRAM v, 410, 80, 280, 220, "0.1;0.4;0.5;1.2;1.3;1.8", 8, 0, 2, 0, 0.9VEC.PLOT.LABELS handle, left, top, width, height [, title [, xLabel [, yLabel [, fontSize]]]]
Adds title, X label and Y label to a plot rectangle. The Y label is rotated vertically.
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 |
|---|---|
title | Optional GUI/DataPlot window title. |
xLabel | Optional parameter. If omitted, the command uses its internal default. |
yLabel | Optional parameter. If omitted, the command uses its internal default. |
fontSize | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.LABELS v, 70, 55, 620, 300, "Oscillazioni", "x", "ampiezza", 12VEC.PLOT.LEGEND handle, left, top, "color|label;color|label;..." [, fontSize [, lineLength [, lineStep]]]
Draws a small legend box. Each item uses color|label syntax; comma is also accepted as separator.
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 |
|---|---|
fontSize | Optional parameter. If omitted, the command uses its internal default. |
lineLength | Optional parameter. If omitted, the command uses its internal default. |
lineStep | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.LEGEND v, 500, 80, "#0033aa|MATH.SIN(x);#cc0000|0.5*MATH.COS(2*x)", 10VEC.PLOT.PARAMETRIC handle, left, top, width, height, exprX, exprY, tMin, tMax [, samples [, xMin [, xMax [, yMin [, yMax [, autoScale]]]]]]
Evaluates a parametric curve using variable t and plots it in the selected rectangle. Useful for circles, spirals, Lissajous figures and many mathematical curves.
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 |
|---|---|
samples | Optional parameter. If omitted, the command uses its internal default. |
xMin | Optional parameter. If omitted, the command uses its internal default. |
xMax | Optional parameter. If omitted, the command uses its internal default. |
yMin | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
autoScale | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.PARAMETRIC v, 60, 50, 520, 300, "MATH.COS(t)", "MATH.SIN(t)", 0, 6.28318, 600, -1.2, 1.2, -1.2, 1.2, FALSEVEC.PLOT.PARAMETRIC_ID(handle, left, top, width, height, exprX, exprY, tMin, tMax [, samples [, xMin [, xMax [, yMin [, yMax [, autoScale]]]]]])
Function form of VEC.PLOT.PARAMETRIC. It returns the created item id of the plotted curve.
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 |
|---|---|
samples | Optional parameter. If omitted, the command uses its internal default. |
xMin | Optional parameter. If omitted, the command uses its internal default. |
xMax | Optional parameter. If omitted, the command uses its internal default. |
yMin | Optional parameter. If omitted, the command uses its internal default. |
yMax | Optional parameter. If omitted, the command uses its internal default. |
autoScale | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.PLOT.PARAMETRIC_ID(handle, left, top, width, height, exprX, exprY, tMin, tMax [, samples [, xMin [, xMax [, yMin [, yMax [, autoScale]]]]]])VEC.PLOT.POINTS handle, left, top, width, height, "x,y;x,y;...", xMin, xMax, yMin, yMax [, closed]
Alias of VEC.PLOT.XY.
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 |
|---|---|
closed | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.POINTSVEC.PLOT.SCATTER handle, left, top, width, height, "x,y;x,y;...", xMin, xMax, yMin, yMax [, radius]
Plots a list of data-space points as vector point markers in the selected plot rectangle.
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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
VEC.PLOT.SCATTER v, 70, 55, 620, 300, "-3,-1;-1,0;0,1;2,0.2;3,1.3", -3, 3, -2, 2, 4VEC.PLOT.TICKS handle, left, top, width, height, xMin, xMax, yMin, yMax [, xTicks [, yTicks [, decimals [, fontSize]]]]
Adds numeric tick labels around a VEC.PLOT.AXES rectangle. decimals=-1 uses compact general formatting.
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 |
|---|---|
xTicks | Optional parameter. If omitted, the command uses its internal default. |
yTicks | Optional parameter. If omitted, the command uses its internal default. |
decimals | Optional parameter. If omitted, the command uses its internal default. |
fontSize | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.TICKS v, 70, 55, 620, 300, -6.28, 6.28, -1.5, 1.5, 8, 6, 2, 9VEC.PLOT.XY handle, left, top, width, height, "x,y;x,y;...", xMin, xMax, yMin, yMax [, closed]
Plots a polyline from data-space points into the specified plot rectangle. Alias: VEC.PLOT.POINTS.
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 |
|---|---|
closed | Optional parameter. If omitted, the command uses its internal default. |
VEC.PLOT.XY v, 60, 50, 520, 300, "-3,-1;-1,0;0,1;2,0.2;3,1.3", -3, 3, -2, 2, FALSEVEC.PLOT.XY_ID(handle, left, top, width, height, points, xMin, xMax, yMin, yMax [, closed])
Function form of VEC.PLOT.XY. It plots the data polyline and returns the created item id.
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 |
|---|---|
closed | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.PLOT.XY_ID(handle, left, top, width, height, points, xMin, xMax, yMin, yMax [, closed])VEC.PNG handle, path
Alias of VEC.SAVE_PNG.
VEC.PNGVEC.POINT handle, x, y [, radius]
Adds a small circular point marker using the current pen color.
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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
VEC.POINT v, 250, 120, 4VEC.POINT_ID(handle, x, y [, radius])
Function form of VEC.POINT. It adds the point marker and returns its item id.
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 |
|---|---|
radius | Kernel radius or neighborhood radius used by the filter. |
value = VEC.POINT_ID(handle, x, y [, radius])VEC.POLYGON handle, "x,y;x,y;..."
Adds a closed polygon using the current pen and brush.
VEC.POLYGON v, "400,180;520,140;560,260;430,300"VEC.POLYGON_ID(handle, points)
Function form of VEC.POLYGON. It returns the item id.
value = VEC.POLYGON_ID(handle, points)VEC.POLYLINE handle, "x,y;x,y;..."
Adds an open polyline. The point list is a compact string using semicolon-separated x,y pairs.
VEC.POLYLINE v, "20,240;120,180;220,210;340,110"VEC.POLYLINE_ID(handle, points)
Function form of VEC.POLYLINE. It returns the item id.
value = VEC.POLYLINE_ID(handle, points)VEC.RECT handle, x, y, w, h
Adds a rectangle using the current pen and brush.
VEC.RECT v, 40, 70, 180, 90VEC.RECT_ID(handle, x, y, w, h)
Function form of VEC.RECT. It adds the rectangle and returns its item id.
value = VEC.RECT_ID(handle, x, y, w, h)VEC.SAVE_AVI handle, path, frames [, fps [, transparent [, fourcc]]]
Alias of VEC.CAPTURE_AVI.
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. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
fourcc | Optional parameter. If omitted, the command uses its internal default. |
VEC.SAVE_AVIVEC.SAVE_FRAME handle, path [, transparent]
Captures the current animated canvas state to a PNG frame. With transparent=TRUE the background is transparent. Alias: VEC.FRAME_PNG.
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 |
|---|---|
transparent | Optional parameter. If omitted, the command uses its internal default. |
VEC.SAVE_FRAME v, "out/frame_00000.png", TRUEVEC.SAVE_PNG handle, path
Rasterizes and saves the current vector canvas as a PNG preview.
VEC.SAVE_PNG v, "out/vector_demo.png"VEC.SAVE_SVG handle, path
Exports the vector canvas to SVG. This keeps vector primitives scalable and is ideal for reports/documentation.
VEC.SAVE_SVG v, "out/vector_demo.svg"VEC.STACK(handle, frames [, fps [, transparent]])
Alias of VEC.CAPTURE_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. |
transparent | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.STACK(handle, frames [, fps [, transparent]])VEC.SVG handle, path
Alias of VEC.SAVE_SVG.
VEC.SVGVEC.SYNC handle [, maxMs]
Processes pending Qt GUI events for a bounded time. Use it after heavy vector scene creation and before export/animation when a script builds many items continuously. maxMs is clamped to 1..250 ms. Alias: VEC.FLUSH.
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 |
|---|---|
maxMs | Optional parameter. If omitted, the command uses its internal default. |
VEC.SYNC v, 50VEC.TEXT handle, x, y, text
Adds a text item using the current pen color and current font.
VEC.TEXT v, 50, 40, "cvBasic VEC canvas"VEC.TEXT_ID(handle, x, y, text)
Function form of VEC.TEXT. It adds the text and returns its item id.
value = VEC.TEXT_ID(handle, x, y, text)VEC.TO_MAT(handle [, transparent])
Alias of VEC.MAT.
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 |
|---|---|
transparent | Optional parameter. If omitted, the command uses its internal default. |
value = VEC.TO_MAT(handle [, transparent])VEC.Z handle, z
Sets the default z-order for following vector items. Higher values are drawn above lower values.
VEC.Z v, 10VM.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 rieszOutWEND
Closes the WHILE loop.
i = 0
WHILE i < 3
PRINT i
i = i + 1
WENDWHILE condition
Starts a conditional loop.
i = 0
WHILE i < 3
PRINT i
i = i + 1
WEND