Skip to content

Operation catalogue

164 OpenCV operations.

Find the next node for your workflow. Explore image filters, feature detectors, motion tracking and deep neural networks.

  • 153 standard
  • 11 Pro DNN
  • 18 categories
Canny edge detectionView guide

Browse the catalogue

164 operations

Advanced Segmentation & Masking

4

Distance Transform

Calculates a distance transform, where each foreground pixel stores its distance to the nearest background pixel.

seg_distance

Flood Fill

Fills a connected region starting from a seed point, including neighbouring pixels whose values are within a specified tolerance.

seg_floodfill

GrabCut

Segments foreground from background using GrabCut, combining a user-defined rectangle or mask with iterative graph-cut optimisation.

seg_grabcut

Watershed

Segments touching objects using the watershed algorithm, treating the image as a topographic surface guided by markers.

seg_watershed

Camera Calibration

5

projectPoints

Projects connected 3-D points through camera pose and intrinsics and returns 2-D point metadata.

calib_projectPoints

Rodrigues

Converts a 3-vector axis-angle rotation to a 3 by 3 matrix or converts the matrix back to a vector.

calib_rodrigues

solvePnP

Estimates the pose of a calibrated camera or object by solving the Perspective-n-Point problem from 3D object points and 2D image points.

calib_pnp

undistort

Corrects lens distortion with a camera matrix and distortion coefficients.

calib_undistort

Undistort Rectify Map

Builds X and Y rectification maps from camera calibration metadata for later cv.remap use.

calib_undistortMap

Computational Photography

5

CalibrateDebevec

Estimates the camera response curve from aligned bracketed exposures and their exposure times.

photo_calibrateDebevec

Fast Non-Local Means

Reduces image noise using Non-Local Means denoising, which averages similar patches while trying to preserve edges and texture.

feat_fastNlMeans

Inpainting

Repairs selected damaged or unwanted regions by propagating surrounding image information into the masked area.

photo_inpaint

MergeDebevec

Merges aligned bracketed exposures into a floating-point radiance HDR image using exposure times.

photo_mergeDebevec

Tonemap

Maps floating-point HDR radiance to a displayable image with an exported Reinhard, Drago, or Mantiuk tonemapper; generic createTonemap is not exported.

photo_tonemap

Core Operations

27

absdiff

Computes the per-element absolute difference of two equally sized inputs.

core_absdiff

add

Adds two images or arrays element by element, optionally using weights to blend them.

core_add

addWeighted

Computes alpha times input A plus beta times input B plus gamma with saturating conversion.

core_addWeighted

bitwise_and

Applies a bitwise AND operation between two images or masks. Useful for keeping only shared foreground regions.

core_and

bitwise_not

Applies a bitwise NOT operation, inverting each bit of each pixel value.

core_not

bitwise_or

Applies a bitwise OR operation between two images or masks. Useful for combining foreground regions.

core_or

bitwise_xor

Computes a bitwise exclusive OR of corresponding input elements.

core_xor

cartToPolar

Converts connected X/Y arrays into magnitude and angle outputs.

core_cartToPolar

convertScaleAbs

Scales, offsets, takes absolute values, and saturates the result to 8-bit.

core_convertScaleAbs

copyMakeBorder

Adds a border using constant, replicated, reflected, or wrapped pixels.

core_copyMakeBorder

copyTo

Copies the first input through the optional 8-bit mask from the second input.

core_copyTo

countNonZero

Counts non-zero elements in an 8-bit single-channel input and returns the integer.

core_countNonZero

dft

Computes a discrete Fourier transform and visualizes log magnitude while retaining complex data metadata.

core_dft

divide

Divides corresponding input pixels with saturation and an optional scale multiplier.

core_divide

findNonZero

Returns point coordinates of all non-zero pixels in a single-channel input.

core_findNonZero

gemm

Computes alpha times A times B plus beta times C for compatible matrix inputs.

core_gemm

idft

Computes an inverse discrete Fourier transform from connected complex spectrum metadata.

core_idft

magnitude

Computes Euclidean magnitude from connected floating-point X and Y arrays.

core_magnitude

meanStdDev

Computes the mean and standard deviation of image or array values, optionally within a mask.

core_meanStd

merge

Merges connected equal-size single-channel images into one multi-channel image.

core_merge

minMaxLoc

Finds the minimum and maximum pixel or array values and their locations.

core_minMax

multiply

Multiplies two images or arrays element by element, optionally using a scale factor.

core_mult

normalize

Normalizes an array by min-max range or the selected vector norm.

core_normalize

polarToCart

Converts connected magnitude/angle arrays into X and Y outputs.

core_polarToCart

reduce

Reduces rows or columns using sum, average, maximum, or minimum.

core_reduce

split

Splits a multi-channel image into up to four single-channel outputs.

core_split

subtract

Subtracts one image or array from another element by element.

core_sub

Deep Neural Networks

11

Blob from Image

Pro DNN

Creates a 4D input blob for a neural network by resizing, scaling, mean-subtracting, and optionally swapping colour channels.

dnn_blob

blobFromImages

Pro DNN

Builds a batched NCHW blob from two connected images by applying the same preprocessing and concatenating planes because blobFromImages is not exported.

dnn_blobFromImages

DNN NMS

Pro DNN

Applies class-aware non-maximum suppression to connected boxes and scores.

dnn_nms

forward

Pro DNN

Runs a forward pass through a loaded neural network and returns the output predictions.

dnn_forward

imagesFromBlob

Pro DNN

Splits a connected NCHW blob into up to four displayable image planes in JavaScript because imagesFromBlob is not exported.

dnn_imagesFromBlob

Read Darknet Model

Pro DNN

Loads Darknet/YOLO-style neural network models from configuration and weight files with cv.readNetFromDarknet.

dnn_darknet

Read Neural Net

Pro DNN

Loads a supported network from selected model bytes and optional configuration bytes with cv.readNet.

dnn_readNet

Read ONNX Model

Pro DNN

Loads ONNX neural network models with cv.readNetFromONNX.

dnn_onnx

Read TensorFlow Model

Pro DNN

Loads TensorFlow neural network models from model and configuration files with cv.readNetFromTensorflow.

dnn_tf

Set Network Input

Pro DNN

Assigns the connected blob to the connected dnn_Net, optionally naming and scaling the input.

dnn_setInput

setPreferableBackend

Pro DNN

Calls dnn_Net.setPreferableBackend; this stock WebAssembly build exposes only the OpenCV backend.

dnn_backend

Drawing

5

circle

Draws an outlined or filled circle on the image.

img_circle

drawContours

Draws detected contour outlines or filled contour regions on an image.

img_drawContours

line

Draws a straight line segment between two points on the image.

img_line

putText

Draws text on the image at a chosen position, scale, colour, and thickness.

img_putText

rectangle

Draws an outlined or filled rectangle on the image.

img_rectangle

Edges, Lines and Circles

3

HoughCircles

Detects circles with the gradient Hough transform after converting input to grayscale.

edge_houghCircles

HoughLines

Converts the source to grayscale, runs Canny internally, detects infinite lines with the standard Hough transform, and draws them over the source.

edge_houghLines

HoughLinesP

Converts the source to grayscale, runs Canny internally, and detects finite segments with the probabilistic Hough transform.

edge_houghLinesP

Feature Detection

15

AKAZE

Detects AKAZE keypoints and computes MLDB binary descriptors, then renders the keypoints on the source image.

feat_akaze

BFMatcher

Matches feature descriptors by brute force, comparing each descriptor in one image with descriptors in another image.

feat_bfMatcher

BRISK

Detects BRISK keypoints and computes rotation- and scale-aware binary descriptors.

feat_brisk

drawKeypoints

Draws keypoints from the second input over the first input image; it does not detect features.

feat_drawKeypoints

FAST Corner Detector

Detects FAST corners by comparing a pixel with a circle of surrounding pixels. It is designed for high-speed feature detection.

feat_fast

Harris Corners

Detects corners using the Harris corner detector. It highlights locations where image intensity changes strongly in multiple directions.

feat_harris

KAZE

Detects KAZE features and computes floating-point descriptors in a nonlinear scale space.

feat_kaze

KeyPoint convert

Converts keypoint metadata to point coordinates or creates simple keypoints from points in JavaScript because KeyPoint.convert is not exported.

feat_keypointConvert

Laplacian

Calculates the second image derivative using the Laplacian operator, highlighting rapid intensity changes such as edges.

img_laplacian

MSER

Finds maximally stable extremal regions and outlines every retained region.

feat_mser

ORB Detector

Detects and describes ORB features, a fast binary alternative to SIFT that works well for real-time matching.

feat_orb

Shi-Tomasi Corners

Detects strong Shi-Tomasi corners, often used as stable points for tracking and motion analysis.

feat_goodFeatures

SIFT Detector

Detects and describes SIFT keypoints that are relatively robust to scale, rotation, and illumination changes.

feat_sift

SimpleBlobDetector

Detects blob-like regions using area, circularity, convexity, inertia, and colour/intensity constraints.

feat_blob

Sobel

Calculates the first image derivative in the X or Y direction. Commonly used to emphasise horizontal or vertical edges.

img_sobel

Feature Matching

6

drawMatches

Draws supplied match metadata from input 2 using the query feature identity from input 1; it never detects features itself.

flann_drawMatches

findHomography

Uses query features on input 1 and supplied matches on input 2 to map train coordinates back to query coordinates.

flann_findHomography

knnMatch

Finds the k nearest descriptor matches with the exported DescriptorMatcher/BFMatcher binding; it does not claim a FLANN index.

flann_knnMatch

Lowe Ratio Test

Consumes grouped KNN match metadata and applies the Lowe ratio test without redetecting or rematching features.

flann_ratioTest

radiusMatch

Returns descriptor matches inside a maximum distance with the exported DescriptorMatcher/BFMatcher binding.

flann_radiusMatch

RANSAC Homography

Uses query features on input 1 and supplied matches on input 2 to estimate a train-to-query RANSAC homography and inlier mask.

flann_ransacHomography

I/O & Display

5

Image Input

Loads an image from your computer and outputs it as the starting image for the pipeline.

image_input

Image Output

Displays the final processed image and saves it as a lossless PNG at the processed canvas dimensions, including alpha transparency.

image_output

Video Input

Loads a local video file and outputs native-resolution decoded frames. Seeking waits for the requested frame before the pipeline runs.

video_input

Video Output

Displays and records the final processed frames at their actual pixel dimensions. Recording prefers a supported high-quality codec and source-like frame rate.

video_output

Webcam

Requests the default device camera, waits for native dimensions and decoded frames, and releases the stream when stopped, removed, reset, or when leaving the editor.

webcam_input

Image Processing

34

adaptiveThreshold

Applies adaptive thresholding, where the threshold is calculated locally for each neighbourhood. Useful when lighting is uneven.

img_adaptiveThresh

applyColorMap

Applies a false color map to an image (usually grayscale). Useful for data visualization and making intensity variations more obvious.

img_applyColorMap

bilateralFilter

Smooths an image while preserving edges by considering both pixel distance and colour/intensity similarity.

img_bilateral

blur

Applies a normalized rectangular box filter.

img_blur

boxFilter

Applies a normalized or unnormalized rectangular box filter.

img_boxFilter

calcBackProject

Back-projects a reference histogram over the source image to produce a probability-like map.

img_backProject

calcHist

Calculates an image histogram, showing how pixel intensities or channel values are distributed.

img_calcHist

Canny

Computes a single-channel Canny edge map after converting colour input to grayscale.

img_canny

CLAHE

Applies contrast-limited adaptive histogram equalization to grayscale or the luminance channel of colour input.

img_clahe

compareHist

Builds grayscale histograms for two inputs and compares them with the selected metric.

img_compareHist

cvtColor

Converts an image between colour spaces, such as RGBA, RGB, BGR, HSV, and grayscale.

img_cvtcolor

dilate

Dilates bright foreground regions, expanding object boundaries and helping connect broken object parts.

img_dilate

equalizeHist

Improves local or global contrast by redistributing image intensity values. Often used on grayscale images or the luminance channel.

img_equalizeHist

erode

Erodes bright foreground regions, shrinking object boundaries and removing small white noise in binary or mask images.

img_erode

filter2D

Correlates the image with the selected 2-D kernel while preserving input depth.

img_filter2D

flip

Flips the image vertically, horizontally, or on both axes.

img_flip

GaussianBlur

Blurs an image using a Gaussian kernel. Useful for smoothing and reducing high-frequency noise before edge detection.

img_gaussian

getAffineTransform

Computes the 2 by 3 affine matrix mapping three source points to three destination points.

img_getAffineTransform

getPerspectiveTransform

Computes the 3 by 3 perspective matrix mapping four source points to four destination points.

img_getPerspectiveTransform

getRotationMatrix2D

Builds a 2 by 3 affine matrix around an image-relative centre and returns matrix metadata.

img_getRotationMatrix2D

inRange

Creates an 8-bit mask for pixels inside inclusive per-channel lower and upper bounds.

img_inRange

LUT

Applies a generated 256-entry lookup table independently to each 8-bit image channel.

img_lut

medianBlur

Blurs an image using a median filter. Particularly effective for salt-and-pepper noise while preserving sharp boundaries.

img_median

morphologyEx

Applies morphology operations such as erosion, dilation, opening, closing, gradient, top-hat, and black-hat using a structuring element.

img_morph

pyrDown

Gaussian-blurs and downsamples to approximately half width and height.

img_pyrDown

pyrUp

Upsamples to approximately twice the width and height and smooths inserted samples.

img_pyrUp

remap

Remaps source pixels through floating-point X/Y maps; generated identity, wave, and swirl maps are available when map metadata is not connected.

img_remap

resize

Changes the size of an image using either scale factors or explicit output dimensions.

img_resize

rotate

Rotates the image by an exact 90- or 180-degree cv.rotate constant.

img_rotate

sepFilter2D

Applies the fixed 0.25, 0.5, 0.25 separable smoothing kernel in both directions.

img_sepFilter2D

threshold

Applies a fixed global threshold to a grayscale image; Otsu mode chooses the threshold automatically.

img_threshold

transpose

Swaps image rows and columns across the main diagonal.

img_transpose

warpAffine

Applies a 2D affine transformation such as rotation, translation, scaling, or shearing using a 2x3 matrix.

img_warpAffine

warpPerspective

Applies a perspective transformation using a 3x3 matrix, useful for correcting viewpoint distortion or mapping a quadrilateral to a rectangle.

img_warpPerspective

Image Stitching

6

Exposure Compensation

Compensates the second aligned image from overlap statistics using configurable per-channel or global gains clamped by the maximum-gain control.

stitch_exposure

Homography Estimation

Estimates a perspective transform from connected correspondence metadata with cv.findHomography.

stitch_homography

Image Warping

Warps an image through a connected homography using the selected interpolation and border modes.

stitch_warp

Panorama Blending

Combines two aligned images with equal-weight overlap blending.

stitch_blend

Panorama Generation

Stitches overlapping images into a panorama by finding matches, estimating camera motion, warping, seam finding, and blending.

stitch_pano

Seam Finding

Finds the lowest-error vertical overlap column in JavaScript and creates a hard seam composite because OpenCV detail seam finders are not exported.

stitch_seam

Machine Learning

1

kmeans

Clusters data or image pixels into K groups using the k-means algorithm. Commonly used for colour quantisation and segmentation.

core_kmeans

Object Detection

6

ArUco Detect Markers

Detects ArUco fiducial markers. These square binary markers are often used for camera calibration, pose estimation, and augmented reality.

obj_aruco

Barcode Detector

Detects and decodes supported barcodes and returns type and value as plain text metadata.

obj_barcode

CascadeClassifier

Detects objects using a Haar or LBP cascade classifier loaded from a trained XML model, commonly used for faces and eyes.

obj_cascade

matchTemplate

Slides the second-input template over the first image, reports the best score, and marks its location.

obj_matchTemplate

QR Code Detector

Detects and decodes all QR codes, draws their quadrilaterals, and exposes decoded values as plain text metadata.

obj_qrMulti

QRCodeDetector

Detects and decodes QR codes in the image, returning the code location and decoded text when available.

obj_qr

Segmentation and Masking

6

Apply Mask

Copies image pixels from the first input wherever the second-input mask is non-zero.

seg_applyMask

Combine Masks

Combines two single-channel masks with the selected bitwise operation.

seg_combineMasks

Connected Components Stats

Labels components and returns each bounding box, area, and centroid as metadata.

seg_connectedComponentsStats

connectedComponents

Labels each 8-connected foreground component with a distinct integer and visualizes the labels.

seg_connectedComponents

findContours

Extracts contour point vectors and hierarchy from a binary image without modifying the upstream canvas.

seg_findContours

Mask Cleanup

Removes small specks and fills small holes with morphological opening and closing.

seg_maskClean

Shape Analysis & Geometry

3

boundingRect

Finds and draws upright bounding rectangles around contours or point sets, usually after contour detection.

img_boundingRect

contourArea

Calculates the area enclosed by each contour and can filter contours by minimum and maximum area.

img_contourArea

Shape Matching

Compares two contours or shapes using moment-based shape descriptors.

shape_match

Shape Analysis and Geometry

12

approxPolyDP

Approximates contour curves with fewer vertices within an epsilon distance.

shape_approxPolyDP

arcLength

Returns the perimeter of each connected contour, or closes it before measuring when requested.

shape_arcLength

boxPoints

Converts rotated-rectangle metadata to four corner points using the exported cv.rotatedRectPoints equivalent.

shape_boxPoints

convexHull

Computes the convex hull of each connected contour and returns hull points.

shape_convexHull

convexityDefects

Computes start, end, farthest point, and depth for each contour-to-hull convexity defect.

shape_convexityDefects

fitEllipse

Fits and draws a least-squares ellipse for contours with at least five points.

shape_fitEllipse

fitLine

Fits a robust 2-D line to contour points and draws the line across the image.

shape_fitLine

isContourConvex

Returns whether each connected contour is convex.

shape_isContourConvex

minAreaRect

Computes the minimum-area rotated rectangle enclosing each contour and draws it.

shape_minAreaRect

minEnclosingCircle

Computes and draws the smallest circle enclosing each contour.

shape_minEnclosingCircle

pointPolygonTest

Tests a configured point against the largest contour and returns inside, outside, or signed-distance information.

shape_pointPolygonTest

Rotated Rect Intersection

Classifies and returns the polygon intersection of the minimum-area rotated rectangles derived from two connected shapes.

shape_rotRectangleIntersection

Video Analysis

10

accumulateWeighted

Maintains a floating-point running average in node state and converts it to a display image; the stock binding omits cv.accumulateWeighted.

vid_accumulateWeighted

CamShift

Tracks an object using Continuously Adaptive Mean Shift, allowing the tracking window to move and resize as the object changes.

vid_camShift

Farneback Optical Flow

Computes dense optical flow, estimating motion vectors for most or all pixels between consecutive frames.

vid_farneback

Frame Difference

Computes absolute per-pixel difference between two connected frames with cv.absdiff.

vid_frameDifference

Frame Extractor

Seeks a connected video to the configured timestamp and emits the decoded frame.

video_frameExtract

Lucas-Kanade Optical Flow

Tracks sparse feature points between frames using pyramidal Lucas-Kanade optical flow.

vid_pyrlk

meanShift

Tracks an object by iteratively shifting a window towards the densest region of a probability image, often based on colour histogram back projection.

vid_meanShift

MOG2 Background Subtractor

Performs background subtraction using a Gaussian Mixture Model to separate moving foreground objects from the background.

vid_mog2

Tracker MIL

Initializes the exported TrackerMIL binding on an ROI and updates its box across subsequent frames.

vid_trackerMIL

Video Properties

Reports dimensions, duration, current time, and playback state from a connected video source.

video_properties
Try these nodes in a workflow.Explore tutorials Start building free