Blocks ====== Every block of this toolkit, from its catalog. opencv ------ .. list-table:: :header-rows: 1 * - Block - Type - What it does * - :doc:`Difference ` - ``absdiff`` - How much two images differ: motion against a background, a before and after. * - :doc:`Threshold (adaptive) ` - ``adaptive_threshold`` - Black and white by local brightness: for uneven light. * - :doc:`Background ` - ``background`` - Learns a background and shows what changed: a motion mask, the background and the changed fraction. * - :doc:`Bitwise ` - ``bitwise`` - Combines two images pixel by pixel (and with a grey second image: a mask). * - :doc:`Blend ` - ``blend`` - Mixes two images: alpha of the first, the rest of the second. * - :doc:`Blur (Gaussian) ` - ``blur`` - Softens an image. * - :doc:`Edges (Canny) ` - ``canny`` - Finds edges. * - :doc:`Centroid ` - ``centroid`` - The largest white blob's centroid, area and radius, plus a marked image. * - :doc:`CLAHE ` - ``clahe`` - Local histogram equalisation (CLAHE), for uneven lighting. * - :doc:`Close (fill gaps) ` - ``close`` - Fills small black holes. * - :doc:`Contours ` - ``contours`` - The white blobs' count, the largest one's centre, area and box, and a marked image. * - :doc:`Convert colour ` - ``convert`` - Changes the colour space (grey, BGR, RGB, HSV, HLS, Lab). * - :doc:`Crop ` - ``crop`` - Keeps a rectangle of an image (0 width or height: the rest of it). * - :doc:`Dilate ` - ``dilate`` - Grows white areas. * - :doc:`Distance ` - ``distance`` - How far each white pixel is from black. * - :doc:`Draw ` - ``draw`` - Draws a box, circle, cross or text on an image (u, v centre; width, height or radius). * - :doc:`Equalize ` - ``equalize`` - Spreads the histogram: more contrast in a flat or dark image. * - :doc:`Erode ` - ``erode`` - Shrinks white areas. * - :doc:`Flip ` - ``flip`` - Mirrors an image horizontally, vertically or both. * - :doc:`Gray ` - ``gray`` - Turns an image to grey. * - :doc:`Hough circles ` - ``hough_circles`` - Finds circles: how many, the largest one's centre and radius, and a marked image. * - :doc:`Hough lines ` - ``hough_lines`` - Finds straight lines: how many, the longest one's angle and length, and a marked image. * - :doc:`HSV range ` - ``hsv_range`` - Keeps the pixels within a range of colour. * - :doc:`Invert ` - ``invert`` - Swaps black and white. * - :doc:`Laplacian ` - ``laplacian`` - The second derivative: edges in every direction. * - :doc:`Blur (median) ` - ``median`` - Removes speckle noise, keeping edges. * - :doc:`Normalize ` - ``normalize`` - Stretches an image's values into a range. * - :doc:`Open (remove specks) ` - ``open`` - Removes small white specks. * - :doc:`Resize ` - ``resize`` - Changes an image's size (pixels, or a scale when both are 0). * - :doc:`Rotate ` - ``rotate`` - Rotates an image about its centre (expand = 1 keeps the corners in view). * - :doc:`Save image ` - ``save`` - Writes its input to a picture file (once, or every step) and passes it on. * - :doc:`Sobel ` - ``sobel`` - A directional derivative: bright where the image changes along x or y. * - :doc:`Image stats ` - ``stats`` - Mean, spread, range and non-black count of an image. * - :doc:`Template match ` - ``template_match`` - Finds a template picture in an image: where, how well, and a marked image. * - :doc:`Threshold ` - ``threshold`` - Splits an image into black and white at a level. * - :doc:`Image view ` - ``view`` - Shows an image on the Board. group ----- .. list-table:: :header-rows: 1 * - Block - Type - What it does * - :doc:`In ` - ``inport`` - An input of the subsystem or story it is in: a port on the group's block outside, named by name, and its value here. * - :doc:`Out ` - ``outport`` - An output of the subsystem or story it is in: what is wired to it leaves by a port on the group's block outside, named by name. .. toctree:: :hidden: absdiff adaptive_threshold background bitwise blend blur canny centroid clahe close contours convert crop dilate distance draw equalize erode flip gray hough_circles hough_lines hsv_range invert laplacian median normalize open resize rotate save sobel stats template_match threshold view inport outport