Skip to content

Filters

Every filter page follows the same twelve headings, from a plain overview to the tests and the references. Facts such as the parameters, the formula and the status come from the catalog. Kernels, figures and worked examples come from the filter code itself. So a page always describes the filter that runs.

The table lists the filters that have a page. The other catalog entries are planned and get their pages when they are built.

Filter Family What it does Status
Binomial filter Linear spatial filters Blurs with weights from Pascal's triangle, a whole-number stand-in for a Gaussian. Implemented and tested
Box filter Linear spatial filters Replaces each pixel with the plain average of a square window. Implemented and tested
Difference of Gaussians Linear spatial filters Subtracts a wide Gaussian blur from a narrow one, which keeps details of one size range and removes the rest. Implemented and tested
Disk averaging filter Linear spatial filters Averages a round window, the blur of an out-of-focus lens. Implemented and tested
Gabor filter Linear spatial filters A wave under a Gaussian window. It responds to stripes and edges of one wavelength and one direction. Implemented and tested
Gaussian filter Linear spatial filters Blurs the image with a weighted average whose weights follow a Gaussian curve. Implemented and tested
High-boost filter Linear spatial filters Sharpens by taking A times the image minus a Gaussian blur of it. Implemented and tested
High-pass filter Linear spatial filters Keeps only the fine detail, by subtracting a Gaussian blur from the image. Implemented and tested
Laplacian Linear spatial filters Measures how much each pixel differs from the average of its neighbors. Implemented and tested
Laplacian of Gaussian Linear spatial filters Smooths with a Gaussian and takes the Laplacian, the sum of the second derivatives, in one kernel. Implemented and tested
Laplacian sharpening Linear spatial filters Sharpens by subtracting a multiple of the Laplacian, which steepens every edge. Implemented and tested
Low-pass FIR filter Linear spatial filters Removes detail above a chosen frequency, with taps designed by the window method. Implemented and tested
Matched filter Linear spatial filters Searches the whole image for the pattern inside the selection. The plain matched filter correlates the image with the template. The normalized cross-correlation divides by the spread of each window, so it scores how alike the shapes are from -1 to 1, whatever their brightness and contrast. Matches above a threshold go to the Features panel. Implemented and tested
Motion blur Linear spatial filters Blurs the image along a straight line, like a camera that moved during the exposure. Implemented and tested
Steerable filters Linear spatial filters The first or second derivative of a Gaussian, turned to any angle by mixing two or three basis filters. Implemented and tested
Triangular filter Linear spatial filters Blurs with weights that rise in equal steps to the center and fall again. Implemented and tested
Unsharp mask Linear spatial filters Sharpens by adding back the detail that a Gaussian blur removes. Implemented and tested
Weighted average filter Linear spatial filters Filters with a kernel that you type, divided by its sum when you ask. Implemented and tested
Wiener filter (global) Linear spatial filters Removes white noise by turning each frequency down by how much of its power the noise explains. Implemented and tested
Adaptive median filter Nonlinear spatial filters A median filter whose window grows where the noise is dense, and that keeps pixels that are not noise. Implemented and tested
Alpha-trimmed mean filter Nonlinear spatial filters Drops the smallest and largest values of each window and averages the rest. Implemented and tested
Anisotropic diffusion Nonlinear spatial filters Smooths by letting values flow between neighbors, with a flow that stops at edges. Implemented and tested
BM3D-inspired denoising Nonlinear spatial filters A simplified version of BM3D, in PixelNexus's own code. For each small patch it gathers similar patches from nearby, stacks them, and removes noise from the stack together. A first pass uses a hard threshold, and a second pass a Wiener filter guided by the first. The full BM3D package is left out because its license is unclear. Implemented and tested
Bilateral filter Nonlinear spatial filters A blur whose weights fall with distance and with difference in value, so it smooths flat areas and stops at edges. Implemented and tested
Bilateral solver Nonlinear spatial filters Finds the smoothest image that stays close to the input, where smooth means that pixels of similar position and color have similar values. It works on a coarse bilateral grid, so it is fast, and edges between different colors stay sharp. Implemented and tested
Bitonic filter Nonlinear spatial filters Smooths like a Gaussian but keeps edges, by Treece's definition of signal as bitonic, with at most one peak or one dip within the filter's reach. A centile opening and closing find the bitonic signal, and their errors, smoothed with a Gaussian, decide how to mix them. It needs no setting for the noise level. Implemented and tested
Contraharmonic mean filter Nonlinear spatial filters A ratio of power sums with order Q. Positive Q removes pepper noise and negative Q removes salt noise. Implemented and tested
Domain transform filter Nonlinear spatial filters Smooths the image while keeping edges, after Gastal and Oliveira, with OpenCV. Each row and column is stretched where the colors change, so pixels on two sides of an edge end up far apart. A fast 1-D filter in the stretched domain then smooths only within each side. Implemented and tested
Geometric mean filter Nonlinear spatial filters Replaces each pixel with the geometric mean of its window, the root of the product of the values. Implemented and tested
Guided filter Nonlinear spatial filters Fits a straight-line model of the guide in every window, so it smooths flat areas and keeps edges, at a cost that does not grow with the radius. Implemented and tested
Harmonic mean filter Nonlinear spatial filters Replaces each pixel with the harmonic mean of its window, n divided by the sum of the inverses. Implemented and tested
Joint bilateral filter Nonlinear spatial filters A bilateral filter that takes its edges from a guide image, so it smooths one image along the edges of another. Implemented and tested
Kuwahara filter Nonlinear spatial filters Writes the mean of the window quadrant whose values vary the least, which smooths areas and keeps edges. Implemented and tested
Max filter Nonlinear spatial filters Replaces each pixel with the largest value of its window. Implemented and tested
Median filter Nonlinear spatial filters Replaces each pixel with the middle value of its window. Implemented and tested
Midpoint filter Nonlinear spatial filters Replaces each pixel with the value halfway between the smallest and largest in its window. Implemented and tested
Min filter Nonlinear spatial filters Replaces each pixel with the smallest value of its window. Implemented and tested
Mode filter Nonlinear spatial filters Replaces each pixel with the value that occurs most often in its window. Implemented and tested
Nagao-Matsuyama filter Nonlinear spatial filters Writes the mean of the calmest of nine subregions of a 5x5 window, with shapes that follow edges in eight directions. Implemented and tested
Non-local means Nonlinear spatial filters Replaces each pixel with a weighted mean of pixels whose surrounding patches look alike, after Buades, Coll and Morel. The similar pixels can be anywhere in the search window, not only next to it, so repeated textures and edges average with copies of themselves. Implemented and tested
Rank-order filter Nonlinear spatial filters Sorts each window and keeps the value at a chosen rank or percentile. Implemented and tested
Rolling guidance filter Nonlinear spatial filters Removes small structures, such as texture, noise and fine detail, while keeping large edges sharp, after Zhang, Shen, Xu and Jia. It first blurs everything, then lets the large edges roll back in with a few joint bilateral filters guided by the last result. Implemented and tested
SUSAN noise filter Nonlinear spatial filters Averages each pixel with neighbors of similar brightness, after Smith and Brady. The weights fall with distance and with the brightness difference, and the pixel itself is left out, so a single noisy pixel cannot keep its own value. Where no neighbor is similar, it takes the median of its 8 neighbors. Implemented and tested
Switching median filter Nonlinear spatial filters Replaces a pixel by the window median only when it differs from that median by more than a threshold. Implemented and tested
Total variation denoising Nonlinear spatial filters Finds the image closest to yours with the least total variation, the model of Rudin, Osher and Fatemi. Total variation adds up the size of the gradient, so noise costs a lot, while one sharp edge costs only its height. The result has flat areas with sharp edges between them. Implemented and tested
Vector anisotropic diffusion Nonlinear spatial filters Anisotropic diffusion for color images, with one conduction for all channels from the color difference. Implemented and tested
Vector median filter Nonlinear spatial filters Replaces each pixel with the window color that is closest, in total, to all the other window colors. Implemented and tested
Weighted median filter Nonlinear spatial filters A median in which each window position counts as many times as its weight. Implemented and tested
2D LMS adaptive filter Adaptive and statistical filters Predicts each pixel from its neighbors with weights that learn as the filter scans the image. Noise that the neighbors do not share cannot be predicted, so the prediction is a denoised image. The error shows what the neighbors could not explain. Implemented and tested
2D RLS adaptive filter Adaptive and statistical filters Predicts each pixel from its neighbors, like the 2D LMS filter, but updates the weights with recursive least squares. The weights at each pixel are the best fit to all pixels before it, with older pixels counting less. It learns much faster than LMS. Implemented and tested
Adaptive Wiener filter Adaptive and statistical filters Moves each pixel toward its local mean by an amount set by how the local variance compares with the noise variance. Implemented and tested
Adaptive local noise reduction Adaptive and statistical filters Subtracts a share of the difference between each pixel and its local mean, set by the noise variance over the local variance. Implemented and tested
Adaptive smoothing Adaptive and statistical filters Repeats a 3x3 weighted mean in which pixels with a large gradient get little weight, so edges are not smoothed across. Implemented and tested
Enhanced Lee filter Adaptive and statistical filters A Lee filter with three classes. Flat areas get the mean, strong targets stay unchanged, and areas between are blended. Implemented and tested
Entropy filter Adaptive and statistical filters Maps the entropy of the values in the window around each pixel, a measure of how varied they are. Implemented and tested
Frost filter Adaptive and statistical filters A weighted mean whose weights fall exponentially with distance, faster where the local variation is high. Implemented and tested
Gamma-MAP filter Adaptive and statistical filters The maximum a posteriori estimate for gamma-distributed scene and speckle, with the classes of the enhanced Lee filter. Implemented and tested
Kalman filter Adaptive and statistical filters Treats each row as a signal that changes a little from pixel to pixel, seen through noise. A Kalman filter estimates it along the row and a smoother runs back. The columns get the same, and the result is the mean of both. The noise level is the only setting. Implemented and tested
Kuan filter Adaptive and statistical filters A speckle filter like the Lee filter, with a weight derived without the approximation Lee made. Implemented and tested
Lee filter Adaptive and statistical filters Moves each pixel toward its local mean by a share set by how its local variation compares with the speckle variation. Implemented and tested
Local variance filter Adaptive and statistical filters Maps the variance of the window around each pixel, a measure of local contrast and texture. Implemented and tested
Median absolute deviation thresholding Adaptive and statistical filters Marks or repairs values that lie more than t times the robust scale S from the local median. Implemented and tested
RANSAC surface fit Adaptive and statistical filters Fits a smooth polynomial surface to the background brightness with RANSAC, after Fischler and Bolles, and removes it. Objects on the background are outliers, so they do not bend the surface. The result has an even background with the objects kept. Implemented and tested
Range filter Adaptive and statistical filters Maps the difference between the largest and smallest value in the window around each pixel. Implemented and tested
Robust M-estimator filter Adaptive and statistical filters Replaces each pixel with a robust mean of its window, an M-estimate of location after Huber. Pixels far from the current estimate count less, or not at all, so outliers such as impulse noise and the other side of an edge barely pull the result. The estimate is found by iteratively reweighted least squares. Implemented and tested
Savitzky-Golay filter Adaptive and statistical filters Fits a polynomial to each window by least squares and takes its value at the center, a smoothing that keeps peaks. Implemented and tested
Sigma filter Adaptive and statistical filters Averages only the window values that lie within k sigma of the center value, and repairs isolated spots. Implemented and tested
Speckle reducing anisotropic diffusion Adaptive and statistical filters Diffusion whose coefficient comes from the local coefficient of variation, so speckle diffuses away and edges stay. Implemented and tested
Standard deviation filter Adaptive and statistical filters Maps the standard deviation of the window around each pixel, a measure of local contrast in levels. Implemented and tested
Steering kernel regression Adaptive and statistical filters Removes noise by fitting a small polynomial around each pixel, with weights from a kernel that is steered by the local edges. Near an edge the kernel is long and thin along it, and in flat areas it is wide and round. The kernel shapes are estimated again from each result, for a few iterations. Implemented and tested
Alternating sequential filter Morphological filters Openings and closings with elements of growing size, one pair per size. It removes bright and dark details up to a size, step by step. Implemented and tested
Area closing Morphological filters Removes dark spots smaller than a given area, whatever their shape, after Vincent. Unlike a closing with a structuring element, it keeps thin long structures whose area is large, and it never changes the shape of what it keeps. Implemented and tested
Area opening Morphological filters Removes bright spots smaller than a given area, whatever their shape, after Vincent. Unlike an opening with a structuring element, it keeps thin long structures whose area is large, and it never changes the shape of what it keeps. Implemented and tested
Attribute opening Morphological filters Removes bright components that fail a size test, after Breen and Jones, while keeping all others exactly. The test can be the area, as in the area opening, or the diameter, the longer side of the bounding box. A diameter opening removes small blobs but keeps long thin lines. Implemented and tested
Black-hat Morphological filters The closing minus the image. It keeps dark details smaller than the element. Implemented and tested
Closing Morphological filters Dilation followed by erosion. It fills dark details smaller than the element and keeps the rest. Implemented and tested
Closing by reconstruction Morphological filters A dilation followed by reconstruction by erosion. It fills dark objects the element does not fit into and restores the others exactly. Implemented and tested
Connected-component filtering Morphological filters Keeps the white objects whose area lies in a range and removes the others. Implemented and tested
Convex hull Morphological filters Replaces every white object with its convex hull, the smallest convex shape that contains it. Implemented and tested
Dilation Morphological filters Takes the largest value under the turned structuring element, so bright objects grow and dark details shrink. Implemented and tested
Erosion Morphological filters Takes the smallest value under the structuring element, so dark areas grow and bright objects shrink. Implemented and tested
External gradient Morphological filters The dilation minus the image. It marks the outer side of bright edges. Implemented and tested
Geodesic filtering Morphological filters A fixed number of geodesic dilation or erosion steps. The marker grows under the image, or shrinks over it, one pixel per step. Implemented and tested
Hit-or-miss transform Morphological filters Marks the pixels where a small pattern of foreground and background pixels matches exactly. Implemented and tested
Internal gradient Morphological filters The image minus its erosion. It marks the inner side of bright edges. Implemented and tested
Medial axis Morphological filters Finds the medial axis of the white shapes, the centers of the largest disks that fit inside them, with scikit-image. Each axis pixel also carries its distance to the background, so the axis together with the distances describes the width of the shape everywhere. Implemented and tested
Morphological gradient Morphological filters Dilation minus erosion. It is bright on edges, with a width set by the element. Implemented and tested
Morphological leveling Morphological filters Moves the image toward a marker, such as a blurred copy, while keeping every edge sharp. Flat zones grow and merge, but their borders never move. Implemented and tested
Morphological reconstruction Morphological filters Grows a marker under the image until it stops, which restores every bright region the marker touches and flattens the rest. Implemented and tested
Opening Morphological filters Erosion followed by dilation. It removes bright details smaller than the element and keeps the rest. Implemented and tested
Opening by reconstruction Morphological filters An erosion followed by reconstruction by dilation. It removes bright objects the element does not fit into and restores the others exactly. Implemented and tested
Pruning Morphological filters Removes short branches, or spurs, from thinned lines while keeping the main lines at their full length. Implemented and tested
Skeletonization Morphological filters The morphological skeleton. It joins, over all sizes, what an opening removes from the eroded shape. Implemented and tested
Thickening Morphological filters Grows white shapes by thinning the background, so shapes grow without merging. Implemented and tested
Thinning Morphological filters Removes boundary pixels of white shapes until lines one pixel thick remain, without breaking or joining shapes. Implemented and tested
Top-hat Morphological filters The image minus its opening. It keeps bright details smaller than the element and removes the background. Implemented and tested
Butterworth band-pass Frequency-domain filters Keeps only a ring of frequencies, which leaves the detail of one size. The cutoff is smooth, and the order sets how sharp it is. Implemented and tested
Butterworth band-reject Frequency-domain filters Removes a ring of frequencies and keeps the rest, which suppresses noise or patterns of one size. The cutoff is smooth, and the order sets how sharp it is. Implemented and tested
Butterworth high-pass Frequency-domain filters Removes the low frequencies of the image and keeps the high ones, which leaves edges and fine detail. The cutoff is smooth, and the order sets how sharp it is. Implemented and tested
Butterworth low-pass Frequency-domain filters Keeps the low frequencies of the image and removes the high ones, which blurs it. The cutoff is smooth, and the order sets how sharp it is. Implemented and tested
Comb filter Frequency-domain filters Removes a periodic pattern together with its harmonics, with notches at whole multiples of a base frequency. Implemented and tested
Curvelet-inspired directional filter Frequency-domain filters Cuts the spectrum into smooth polar wedges, one per band of sizes and range of directions, and removes noise in each wedge or keeps the wedges of one direction. Inspired by curvelets, not a curvelet transform. Implemented and tested
Gaussian band-pass Frequency-domain filters Keeps only a ring of frequencies, which leaves the detail of one size. The band edges follow a Gaussian curve, so they ring very little. Implemented and tested
Gaussian band-reject Frequency-domain filters Removes a ring of frequencies and keeps the rest, which suppresses noise or patterns of one size. The band edges follow a Gaussian curve, so they ring very little. Implemented and tested
Gaussian high-pass Frequency-domain filters Removes the low frequencies of the image and keeps the high ones, which leaves edges and fine detail. The cutoff follows a Gaussian curve, so it does not ring. Implemented and tested
Gaussian low-pass Frequency-domain filters Keeps the low frequencies of the image and removes the high ones, which blurs it. The cutoff follows a Gaussian curve, so it does not ring. Implemented and tested
Homomorphic filter Frequency-domain filters Evens out uneven lighting and raises local contrast, by treating the image as lighting times reflectance. Implemented and tested
Ideal band-pass Frequency-domain filters Keeps only a ring of frequencies, which leaves the detail of one size. The cutoff is sharp. Implemented and tested
Ideal band-reject Frequency-domain filters Removes a ring of frequencies and keeps the rest, which suppresses noise or patterns of one size. The cutoff is sharp. Implemented and tested
Ideal high-pass Frequency-domain filters Removes the low frequencies of the image and keeps the high ones, which leaves edges and fine detail. The cutoff is sharp. Implemented and tested
Ideal low-pass Frequency-domain filters Keeps the low frequencies of the image and removes the high ones, which blurs it. The cutoff is sharp. Implemented and tested
Log-Gabor filter Frequency-domain filters A band-pass filter that is a Gaussian on a log frequency scale, so it has no response at frequency 0 and a long tail toward fine detail. Implemented and tested
Notch-pass Frequency-domain filters Keeps only small regions of the spectrum around chosen frequencies, which extracts a periodic pattern. Implemented and tested
Notch-reject Frequency-domain filters Removes small regions of the spectrum around chosen frequencies, which removes a periodic pattern. Implemented and tested
Periodic-noise suppression Frequency-domain filters Finds the peaks of periodic noise in the spectrum on its own and removes them with notches. Implemented and tested
Phase-only filter Frequency-domain filters Keeps the phase of every frequency and gives them all the same magnitude, which leaves the edges and lines of the image. Implemented and tested
Radon and Fourier slice filtering Frequency-domain filters Sums the image along straight lines at many angles to make a sinogram, then rebuilds the image from it by back projection, with or without the ramp filter. Implemented and tested
Shearlet-inspired directional filter Frequency-domain filters Cuts the spectrum into smooth sheared tiles in a horizontal and a vertical cone, and removes noise in each tile or keeps the tiles of one direction. Inspired by shearlets, not a shearlet transform. Implemented and tested
Spectral whitening Frequency-domain filters Evens out the falling spectrum of a natural image, so fine and coarse detail get the same average strength. Implemented and tested
Contourlet filtering Wavelet and multiscale filters Splits the image into scales with a Laplacian pyramid, and each scale into directions with a directional filter bank. Then it shrinks the small coefficients toward zero and puts the image back together. Implemented and tested
Gaussian pyramid filtering Wavelet and multiscale filters Shrinks the image to half size a few times with a small Gaussian-like kernel, then expands it back. Only the coarse detail of the smallest level remains. Implemented and tested
Laplacian pyramid filtering Wavelet and multiscale filters Splits the image into detail levels of growing size plus a small coarse image, multiplies each detail level by a gain, and adds them back. Implemented and tested
Multiresolution diffusion Wavelet and multiscale filters Runs Perona-Malik diffusion on a Gaussian pyramid, from the coarsest level to the image. The coarse levels remove wide blotches of noise in a few steps. Each finer level starts from that smoothing and refines it near edges. Implemented and tested
Ridgelet filtering Wavelet and multiscale filters An approximate ridgelet filter. It takes the Radon transform, applies a 1-D wavelet transform along each projection, sets the small coefficients to zero and rebuilds the image. Implemented and tested
Scale-space filtering Wavelet and multiscale filters Blurs the image at a series of Gaussian scales, measures gradient, Laplacian or Hessian at each, and keeps at every pixel the scale with the strongest normalized response. Implemented and tested
Stationary wavelet filtering Wavelet and multiscale filters Wavelet thresholding on a transform that keeps every coefficient at every level, so the result does not depend on where the image starts. Implemented and tested
Steerable pyramid filters Wavelet and multiscale filters Splits each channel into oriented bands at several sizes with the steerable pyramid of Simoncelli and Freeman. It removes noise band by band, or shows one band steered to any angle. Available through an optional dependency
Wavelet Wiener filtering Wavelet and multiscale filters Multiplies each wavelet detail coefficient by a Wiener gain from 0 to 1, set by how much signal its neighborhood holds. Implemented and tested
Wavelet thresholding Wavelet and multiscale filters Splits the image into wavelet subbands, shrinks the small detail coefficients toward zero, and puts the image back together. Implemented and tested
Canny Edge detection and boundary analysis The classic edge detector. It smooths, finds the gradient, thins it to one-pixel lines and keeps edges with two thresholds. Implemented and tested
Deriche Edge detection and boundary analysis Finds the gradient with Deriche's derivative filter, which he derived from Canny's criteria for an infinitely long filter. It runs as a recursive filter, so its cost does not grow with the amount of smoothing. OpenCV computes it. Implemented and tested
Farid-Simoncelli derivative filter Edge detection and boundary analysis Estimates the gradient with 5-tap derivative and prefilter kernels optimized for accurate, rotation invariant derivatives. Implemented and tested
Frei-Chen Edge detection and boundary analysis Projects each 3x3 window onto nine orthonormal masks and reports how much of it looks like an edge or a line. Implemented and tested
Hough-based edge linking Edge detection and boundary analysis Links Canny edge pixels into straight line segments with the progressive probabilistic Hough transform of Matas, Galambos and Kittler. Unlike the standard Hough transform, it finds where each segment starts and ends, and it may bridge small gaps. Implemented and tested
Hysteresis thresholding Edge detection and boundary analysis Keeps strong pixels, and weak pixels that are joined to strong ones, so broken edges stay whole without keeping noise. Implemented and tested
Kirsch compass Edge detection and boundary analysis Turns one 3x3 mask in eight steps of 45 degrees and keeps the strongest response at each pixel. Implemented and tested
Marr-Hildreth Edge detection and boundary analysis Finds edges as the zero crossings of the Laplacian of Gaussian. Implemented and tested
Phase congruency Edge detection and boundary analysis Finds edges, lines and corners where the Fourier components of the image are in phase, after Kovesi. The measure goes from 0 to 1 and does not change with the brightness or the contrast of the image, so faint and strong edges count the same. Implemented and tested
Prewitt Edge detection and boundary analysis Estimates the brightness gradient with two 3x3 kernels that average plainly along the edge. Implemented and tested
Roberts Cross Edge detection and boundary analysis Estimates the gradient from the two diagonal differences of a 2x2 block of pixels. Implemented and tested
Robinson compass Edge detection and boundary analysis A compass filter built from the Sobel mask, turned in eight steps of 45 degrees. Implemented and tested
SUSAN edge detector Edge detection and boundary analysis Finds edges with the SUSAN principle of Smith and Brady. It counts how many pixels in a small disk are about as bright as the center pixel. A flat area fills the disk, and an edge about half of it. Where the count falls below three quarters, the pixel is an edge, and the smaller the count, the stronger. It takes no derivatives. Implemented and tested
Scharr Edge detection and boundary analysis Estimates the gradient with 3x3 kernels whose 3, 10, 3 smoothing makes the result nearly the same in every direction. Implemented and tested
Shen-Castan Edge detection and boundary analysis Smooths with the infinite symmetric exponential filter (ISEF), which Shen and Castan showed is optimal for step edges, and finds edges where a band-limited Laplacian changes sign. The ISEF runs as a recursion, so its cost does not depend on the amount of smoothing. The last steps, a gradient at the zero crossings and hysteresis, are our simplified version. Implemented and tested
Sobel Edge detection and boundary analysis Estimates the brightness gradient with two 3x3 kernels. Implemented and tested
Sobel with non-maximum suppression Edge detection and boundary analysis Keeps the Sobel magnitude only where it peaks across the edge, which thins edges to one pixel. Implemented and tested
Structured Edge Detector Edge detection and boundary analysis Finds the edges that people draw around objects, with a random forest trained on hand-drawn edges, after Dollar and Zitnick. It needs an optional model of 6.4 MB that downloads on your machine when you ask for it. The model is free for non-commercial use only, such as teaching and research. Available through an optional pretrained model
Zero-crossing detector Edge detection and boundary analysis Marks the pixels where a signed response changes sign, such as a Laplacian shown with the offset mapping. Implemented and tested
AKAZE Texture, corners, blobs and features Finds keypoints in a nonlinear scale space, which smooths flat areas but keeps edges, with AKAZE. Keypoints are maxima of the Hessian determinant, each with a size and an orientation. Only the detector runs, not the descriptor. Implemented and tested
BRISK Texture, corners, blobs and features Finds corner keypoints with their scale and orientation, with BRISK. It finds AGAST corners in a scale space of octaves and intra-octaves, refined in position and scale. Only the detector runs, not the binary descriptor. Implemented and tested
Determinant of Hessian Texture, corners, blobs and features Finds blobs and their sizes with the determinant of the Hessian, computed with box filters on the integral image as in SURF. It is the fastest of the three blob detectors and finds bright and dark blobs alike. Implemented and tested
DoG blob detection Texture, corners, blobs and features Finds round blobs and their sizes with differences of Gaussians, a fast stand-in for the Laplacian of Gaussian that SIFT also uses. Each blob comes with its center, radius and score. Implemented and tested
FAST corner detector Texture, corners, blobs and features Finds corners by testing a circle of 16 pixels for a long run of pixels that are all brighter or all darker. Implemented and tested
Frangi vesselness Texture, corners, blobs and features Finds lines and vessels from the curvature of the image at several scales, with the vesselness measure of Frangi et al. Each pixel gets a value from 0 to 1 for how much it looks like the middle of a line. Implemented and tested
GLCM features Texture, corners, blobs and features Measures texture from how often pairs of gray levels occur next to each other, after Haralick and coworkers. The table gives contrast, dissimilarity, homogeneity, energy, correlation and entropy for the whole image, and the map shows one of them in a window around every pixel. Implemented and tested
Gabor filter bank Texture, corners, blobs and features Many Gabor filters at several scales and orientations, combined into one texture or orientation map. Implemented and tested
Harris corner detector Texture, corners, blobs and features Finds corners, where the brightness changes strongly in every direction, from the structure tensor. Implemented and tested
Hessian-based filter Texture, corners, blobs and features The hybrid Hessian filter of Ng et al. for wrinkles and fine lines. It is Frangi's vesselness with a fixed structure constant. scikit-image sets every pixel whose response is exactly 0 to 1, so those pixels come out white. Implemented and tested
Histogram of Oriented Gradients Texture, corners, blobs and features Describes the shape in each small cell of the image by a histogram of its gradient directions, after Dalal and Triggs. The view draws each cell as a star of lines, one per direction, as bright as the gradients in that direction. Implemented and tested
Hough transform for circles Texture, corners, blobs and features Finds circles in the Canny edges of the image. For each radius, every edge pixel votes for the centers of all circles of that radius through it. Centers with a large share of their circle on edges win. The circles go to the Features panel and are drawn on the canvas, or the filter shows the accumulator. Implemented and tested
Hough transform for lines Texture, corners, blobs and features Finds straight lines in the Canny edges of the image. Every edge pixel votes for all lines through it, and the lines with the most votes win. The result draws the lines across the image, shows the accumulator of votes, or lists the lines in a table. Implemented and tested
Laws' texture energy filters Texture, corners, blobs and features Measures texture energy with 5x5 masks built from Laws' level, edge, spot, wave and ripple vectors. Implemented and tested
Line detectors Texture, corners, blobs and features Finds thin bright lines with four 3x3 masks for horizontal, vertical and the two diagonal directions. Implemented and tested
LoG blob detection Texture, corners, blobs and features Finds round blobs and their sizes with the scale-normalized Laplacian of Gaussian, as Lindeberg proposed. Each blob is a peak of the response over position and scale, and comes with its center, radius and score. Implemented and tested
Local Binary Pattern Texture, corners, blobs and features Describes the texture around each pixel with a small binary code, after Ojala, Pietikainen and Maenpaa. Each of P points on a circle around the pixel gives one bit, 1 when it is at least as bright as the center. The codes become a gray image, or a histogram that describes the texture of the whole image. Implemented and tested
Local Ternary Pattern Texture, corners, blobs and features Describes the texture around each pixel like a local binary pattern, but with three states, after Tan and Triggs. A neighbor counts as brighter, darker or about the same as the center, within a threshold t, so small noise no longer flips the code. The pattern is split into an upper and a lower binary code. Implemented and tested
MSER region detector Texture, corners, blobs and features Finds maximally stable extremal regions with OpenCV. These are blobs of any shape, brighter or darker than everything around them, whose area hardly changes over a range of thresholds. Each region is listed with its centroid, size, long axis and area. Implemented and tested
Matched vessel filter Texture, corners, blobs and features Finds thin dark or bright lines with a Gaussian profile, such as blood vessels, by matching kernels in many directions. Implemented and tested
Meijering filter Texture, corners, blobs and features Finds thin, faint lines such as neurites with the neuriteness measure of Meijering et al. It mixes each Hessian eigenvalue with a third of the other, which favors long, flat lines. Implemented and tested
Moravec corner detector Texture, corners, blobs and features Finds corners as points where a small window changes in every direction it is moved. Implemented and tested
ORB Texture, corners, blobs and features Finds corners quickly with ORB. It looks for FAST corners on an image pyramid, ranked by the Harris measure, each with an orientation from the intensity centroid. Only the detector runs, not the binary descriptor. Implemented and tested
SIFT Texture, corners, blobs and features Finds keypoints that stay the same when the image is scaled or turned, with Lowe's scale-invariant feature transform. Each keypoint has a position, a size and an orientation. Only the detector runs, not the descriptor. Implemented and tested
SURF-inspired detector Texture, corners, blobs and features Finds blob keypoints with the Fast-Hessian detector of SURF, in PixelNexus's own code. Box filters on the integral image approximate the Hessian at many sizes for the same cost, and each keypoint gets an orientation from Haar wavelets. Only the detector and the orientation are built, not the descriptor. Implemented and tested
SUSAN corner detector Texture, corners, blobs and features Finds corners with the SUSAN principle of Smith and Brady. It counts how many pixels in a small disk are about as bright as the center pixel. Flat areas are full, edges half full, and corners less, so a small count marks a corner. It uses no derivatives at all. Implemented and tested
Sato filter Texture, corners, blobs and features Finds tube-like lines with the multiscale line filter of Sato et al. Each pixel gets the larger curvature across the line, scaled by sigma squared, so lines of different widths are compared fairly. Implemented and tested
Shi-Tomasi Texture, corners, blobs and features Finds corners by the smaller eigenvalue of the structure tensor, the measure behind Good features to track. Implemented and tested
Adaptive histogram equalization Enhancement, illumination and color Equalizes the histogram of each tile of a grid on its own and blends the tile curves smoothly, so each region gets its own contrast. Implemented and tested
Bilateral tone mapping Enhancement, illumination and color Splits the log intensity into a base layer, from a bilateral filter, and a detail layer, then compresses only the base, so shadows and highlights come closer while detail stays. Implemented and tested
Black-and-white conversion Enhancement, illumination and color Turns the image gray with your own weights for red, green and blue, like a color filter in front of black-and-white film. Implemented and tested
CLAHE Enhancement, illumination and color Equalizes the histogram of each tile of a grid, with a clip limit that caps the contrast gain, and blends the tile curves smoothly. Implemented and tested
Channel mixer Enhancement, illumination and color Builds each output channel as a weighted sum of the input red, green and blue. Implemented and tested
Chroma denoising Enhancement, illumination and color Smooths only the color differences Cb and Cr and keeps the luma, so color blotches disappear while detail stays sharp. Implemented and tested
Chromatic adaptation Enhancement, illumination and color Converts colors seen under one light to how they would look under another, with a von Kries type adaptation such as Bradford. Implemented and tested
Color balance Enhancement, illumination and color Shifts the colors of the shadows, the midtones and the highlights on their own, toward red or cyan, green or magenta, and blue or yellow. Implemented and tested
Color threshold Enhancement, illumination and color Makes pixels white when their hue, saturation and value all lie in chosen ranges, and black otherwise. Implemented and tested
Contrast stretching Enhancement, illumination and color Remaps brightness with a curve of three straight segments through two control points. Implemented and tested
Demosaicing Enhancement, illumination and color Keeps one color per pixel, as a camera sensor with a Bayer filter does, then rebuilds the missing two colors with bilinear or Malvar-He-Cutler interpolation. Implemented and tested
Detail enhancement Enhancement, illumination and color Splits the image into an edge-preserving smooth base and the detail on top of it, then adds the detail back several times stronger. Implemented and tested
Gamma correction Enhancement, illumination and color Brightens or darkens the midtones with a power curve, while black and white stay put. Implemented and tested
Gray-world correction Enhancement, illumination and color Removes a color cast by assuming that the scene averages to gray, so it makes the mean of each channel equal. Implemented and tested
Grayscale conversion Enhancement, illumination and color Turns a color image into shades of gray with a weighted sum of red, green and blue. Implemented and tested
Histogram equalization Enhancement, illumination and color Spreads the brightness values so that each level is used about equally often, which raises contrast where most pixels are. Implemented and tested
Hue rotation Enhancement, illumination and color Turns every hue around the color wheel by the same angle, while the gray value of each pixel stays about the same. Implemented and tested
Hue, saturation and value adjustment Enhancement, illumination and color Shifts the hue and scales the saturation and the value of every pixel in the HSV color model. Implemented and tested
Invert Enhancement, illumination and color Turns the image into its negative, so black becomes white and white becomes black. Implemented and tested
Local Laplacian filtering Enhancement, illumination and color Raises or lowers fine detail without halos at strong edges, and can compress the edges themselves. It builds a Laplacian pyramid in which each coefficient comes from the image remapped around the local brightness, so small differences are treated as detail and large ones as edges. The fast algorithm of Aubry et al. samples the brightness at a fixed number of values and interpolates. Implemented and tested
Log transformation Enhancement, illumination and color Brightens the dark tones strongly and the bright tones a little, with a logarithm curve. Implemented and tested
Multi-scale Retinex Enhancement, illumination and color Averages single-scale Retinex at a small, a middle and a large scale, so it lifts detail and evens out light while keeping a good color rendition. Implemented and tested
Multi-scale Retinex with color restoration Enhancement, illumination and color Multi-scale Retinex on each channel, multiplied by a color restoration factor that brings back the colors the Retinex grays out. Implemented and tested
Percentile normalization Enhancement, illumination and color Stretches the image so its darkest and brightest few percent reach black and white. Implemented and tested
Saturation adjustment Enhancement, illumination and color Makes colors stronger or weaker by moving each color away from or toward its gray. Implemented and tested
Sepia Enhancement, illumination and color Gives the image the warm brown tone of old photographs. Implemented and tested
Single-scale Retinex Enhancement, illumination and color Divides each pixel by a Gaussian average of its surroundings, in the log domain, to remove slow changes of lighting and bring out detail in shadows. Implemented and tested
Temperature and tint Enhancement, illumination and color Removes the color of a light given by its temperature in kelvin and its tint, by adapting it to daylight. Implemented and tested
Tone mapping Enhancement, illumination and color Compresses a wide range of brightness into the range a screen can show, with one of three operators from OpenCV. Reinhard and Devlin model the eye's photoreceptors, Drago et al. use a logarithm with an adaptive base, and Mantiuk et al. compress contrast in a pyramid of gradients. On an ordinary 8-bit image they mostly reshape the tone curve and the local contrast. Implemented and tested
Vibrance Enhancement, illumination and color Raises the saturation of muted colors more than of colors that are already strong. Implemented and tested
White balance Enhancement, illumination and color Removes a color cast by making a color you pick, which should be neutral, into gray. Implemented and tested
White-patch correction Enhancement, illumination and color Removes a color cast by assuming that the brightest part of each channel is white, so it scales each channel until that part reaches white. Implemented and tested
Blind deconvolution Restoration and reconstruction Experimental. Estimates both the sharp image and the blur from one photo, by alternating Richardson-Lucy steps for the blur and for the image. Implemented and tested
Constrained least squares Restoration and reconstruction Undoes a known blur with a smoothness penalty whose weight is set from the noise level, so the result fits the image as closely as the noise allows. Implemented and tested
Dead-pixel correction Restoration and reconstruction Finds pixels that differ strongly from the median of their neighbors and replaces them with that median. Implemented and tested
Debanding Restoration and reconstruction Smooths the steps of color banding in gentle gradients. Each pixel is compared with four pixels at a random distance. Where all of them are close to it, it takes their mean. Implemented and tested
Deblocking Restoration and reconstruction Smooths the 8 x 8 blocks of JPEG images with Nosratinia's re-application of JPEG. It compresses shifted copies of the image again with the same quality and averages them. Implemented and tested
Dehazing Restoration and reconstruction Removes haze and fog with the dark channel prior of He, Sun and Tang. It estimates how much haze lies over each pixel and takes it away, with the haze map refined by a guided filter. Implemented and tested
Deringing Restoration and reconstruction Smooths the ripples next to strong edges that JPEG compression and sharpening leave, with a bilateral filter that works only in a zone around those edges. The zone rule is PixelNexus's own. Implemented and tested
Descreening Restoration and reconstruction Removes the regular dot pattern of printed halftones from scans. It finds the isolated bright peaks the pattern makes in the spectrum and lowers them to the level around them. Implemented and tested
Image inpainting Restoration and reconstruction Fills the selected area from the pixels around it, to remove scratches, spots, wires or small objects. Three classic methods are offered, from OpenCV and scikit-image. Implemented and tested
Inverse filtering Restoration and reconstruction Undoes a known blur by dividing the spectrum by the transform of the blur, only where the blur left enough of each frequency. Implemented and tested
JPEG artifact removal (classical) Restoration and reconstruction Cleans strongly compressed JPEG images in two steps. Deblocking re-applies JPEG on shifted grids, then deringing smooths the ripples next to strong edges. Implemented and tested
Landweber iteration Restoration and reconstruction Undoes a known blur step by step, by moving the estimate against the gradient of the squared error. Implemented and tested
Non-negative least-squares deconvolution Restoration and reconstruction Undoes a known blur step by step like Landweber iteration, and sets negative values to 0 after each step. Implemented and tested
Plug-and-play restoration Restoration and reconstruction Undoes a known blur with ADMM, where the step that would use an image prior is done by a denoiser instead. You choose the denoiser. Implemented and tested
Regularization by Denoising Restoration and reconstruction Undoes a known blur with a penalty built from a denoiser, x^T (x - D(x)), which is small when the denoiser leaves the image unchanged. Solved by fixed-point steps. Implemented and tested
Regularized Richardson-Lucy Restoration and reconstruction Richardson-Lucy deconvolution with a total variation term that keeps flat areas flat, so more iterations raise less noise. Implemented and tested
Richardson-Lucy Restoration and reconstruction Undoes a known blur step by step, with an update that keeps every value positive and the total brightness the same. Implemented and tested
Sparse regularization Restoration and reconstruction Undoes a known blur by finding the image whose blurred copy matches the photo and whose wavelet details are sparse, with the fast iterative shrinkage algorithm FISTA. Implemented and tested
Super-resolution reconstruction Restoration and reconstruction Enlarges the image 2, 3 or 4 times. It starts from a bicubic enlargement and then corrects it until shrinking it again gives back the original, by iterative back-projection after Irani and Peleg. Implemented and tested
Tikhonov regularization Restoration and reconstruction Undoes a known blur while keeping the result smooth, by adding a penalty on its size or its gradient. Implemented and tested
Total variation restoration Restoration and reconstruction Undoes a known blur by finding the image whose blurred copy matches the photo, with a total variation penalty that keeps flat areas flat and edges sharp. Implemented and tested
Wiener deconvolution Restoration and reconstruction Undoes a known blur while keeping noise in check, by dividing only as far as the noise allows. Implemented and tested
Active contours Segmentation and regions Places a chain of points on the outline of your selection and lets it slide onto the edges of the image, after Kass, Witkin and Terzopoulos. The chain acts like an elastic band that resists bending. It stays one closed curve. Implemented and tested
Adaptive Gaussian threshold Segmentation and regions Thresholds each pixel against the mean of its own neighborhood, minus an offset, so it copes with uneven lighting. Implemented and tested
Adaptive mean threshold Segmentation and regions Thresholds each pixel against the mean of its own neighborhood, minus an offset, so it copes with uneven lighting. Implemented and tested
Bradley threshold Segmentation and regions Makes each pixel black when it is a set percent darker than the mean of its window, and white otherwise. Implemented and tested
Chan-Vese segmentation Segmentation and regions Splits the image into two phases with a level set, after Chan and Vese. Each phase should be as even in brightness as it can be, and the boundary between them as short as it can be. It needs no edges, so it finds objects with soft or blurred borders. Implemented and tested
Connected-component labeling Segmentation and regions Gives every connected group of foreground pixels its own number, and shows each group in its own color. Implemented and tested
Felzenszwalb-Huttenlocher segmentation Segmentation and regions Splits the image into regions by merging neighboring pixels along a graph, after Felzenszwalb and Huttenlocher. Two regions merge when the step between them is no larger than the variation inside them, so regions grow large in smooth areas and stay small in busy ones. Implemented and tested
Global threshold Segmentation and regions Turns the image into black and white with one threshold for every pixel. Implemented and tested
GrabCut Segmentation and regions Cuts out the object inside a box, after Rother, Kolmogorov and Blake, with OpenCV. Everything outside the rectangle around your selection is background. It learns the colors of object and background, cuts the image with a graph cut, and repeats with the colors of the new result. Implemented and tested
Graph cuts Segmentation and regions Splits the image into object and background from seeds, after Boykov and Jolly. Every pixel is a node in a graph, joined to its neighbors and to two terminals. The cheapest cut that keeps the seeds on their own side gives the object. It weighs how well each pixel fits the seeds against the cost of cutting between similar neighbors. Implemented and tested
K-means color segmentation Segmentation and regions Groups the colors of the image into k clusters with k-means and paints each pixel with its cluster's mean color. Implemented and tested
Level sets Segmentation and regions Moves the outline of your selection until it rests on the edges of the image, with the morphological geodesic active contour of Marquez-Neila, Baumela and Alvarez. A balloon force shrinks or grows the outline, and edges stop it. The outline can split and merge, so one selection can end on several objects. Implemented and tested
Marker-controlled watershed Segmentation and regions Floods the gradient of the image from markers you draw with the selection, after Meyer and Beucher. Each separate part of the selection grows into one region, and the image edge can be one more marker for the background. Regions meet at the edges between the markers. Implemented and tested
Mean shift Segmentation and regions Moves each pixel in position and color to the nearest peak of the density of its neighbors, after Comaniciu and Meer. Pixels that end at the same peak take the same color, so the image becomes flat patches with sharp edges, and the patches are the regions. Implemented and tested
Multi-level Otsu Segmentation and regions Splits the gray levels into several classes with the thresholds that make the classes most different, extending Otsu's method to more than two classes. Liao, Chen and Chung gave a fast way to find them. Implemented and tested
Niblack threshold Segmentation and regions Thresholds each pixel at the local mean plus k times the local standard deviation. Implemented and tested
Otsu threshold Segmentation and regions Picks the global threshold that splits the histogram into two groups that are as far apart as possible, then thresholds the image. Implemented and tested
Quickshift Segmentation and regions Splits the image into regions by linking each pixel to its nearest neighbor of higher density in color and position, after Vedaldi and Soatto. Cutting the long links leaves trees, and each tree is a region. Implemented and tested
Random walker Segmentation and regions Splits the image into object and background from seeds, after Grady. Imagine a walker that starts at a pixel and steps to neighbors at random, rarely across edges. The pixel joins the seed that its walker most likely reaches first. scikit-image solves this as a linear system, with no walking. Implemented and tested
Region growing Segmentation and regions Starts at a seed pixel and grows a region over the connected pixels whose value is within a tolerance of the seed's. Implemented and tested
SLIC superpixels Segmentation and regions Splits the image into compact superpixels of about equal size that follow color edges, after Achanta and coworkers. It is k-means clustering on color and position, with each pixel searching only the nearby centers. Implemented and tested
Sauvola threshold Segmentation and regions Thresholds each pixel from its local mean and standard deviation, lowering the threshold where the contrast is low. Implemented and tested
Split-and-merge segmentation Segmentation and regions Splits the image into quarters again and again until each block is uniform, then merges neighboring blocks while the result stays uniform, after Horowitz and Pavlidis. A region counts as uniform when its brightness spans at most a threshold. Implemented and tested
Watershed Segmentation and regions Treats the gradient of the image as a height map and floods it from its deepest valleys, after Vincent and Soille. Where floods from two valleys meet, a boundary forms, so regions end at edges. Only valleys at least h deep start a flood, which keeps noise from making many tiny regions. Implemented and tested
Wolf threshold Segmentation and regions Thresholds each pixel from its local mean and standard deviation, measured against the darkest value and the highest local contrast of the whole image. Implemented and tested
DnCNN Deep learning and learned processing Removes noise with DnCNN, a network of 20 convolutions that predicts the noise and subtracts it. The color model is blind, so it needs no noise level. DnCNN-3, a gray model trained for noise, blur and JPEG blocking together, cleans JPEG artifacts on the brightness. Both need a downloaded model. Available through an optional pretrained model
EDSR Deep learning and learned processing Enlarges an image four times with EDSR, a deep residual network trained on clean, bicubically shrunk images. It is accurate on that kind of input and does not invent texture the way GAN models do. OpenCV's dnn_superres module runs it. It needs a downloaded model. Available through an optional pretrained model
FFDNet Deep learning and learned processing Removes noise with FFDNet, a network that takes the noise level as an input. You set how strong the noise is, so one model covers weak and strong noise, and you can trade detail against smoothness. It works on four half-size copies of the image, which makes it fast. It needs a downloaded model. Available through an optional pretrained model
Learned edge detector Deep learning and learned processing Finds the edges that people draw, with a network trained on hand-drawn outlines in the BSDS500 photos. HED, by Xie and Tu, adds up edge predictions from five scales of a VGG16 network. PiDiNet, by Su and colleagues, is a small network whose convolutions work on differences of neighboring pixels, as classic edge operators do. Each needs a downloaded model. Available through an optional pretrained model
Neural style and texture filters Deep learning and learned processing Repaints the image in the style of a painting with a fast feed-forward network, one network per style, after Johnson, Alahi and Fei-Fei. Each network was trained once to match the textures of its painting while keeping the content of any photo. Each style needs its own downloaded model. Available through an optional pretrained model
Real-ESRGAN Deep learning and learned processing Enlarges an image four times with the compact general model of Real-ESRGAN, which was trained on photos degraded by blur, noise, resizing and JPEG compression together. It invents plausible texture, so detail in the result may not exist in the original scene. It needs a downloaded model. Available through an optional pretrained model
Restormer Deep learning and learned processing Restores photos with Restormer, a U-shaped network of transformer blocks whose attention compares channels instead of pixels. One model removes the noise of real cameras, the other removes motion blur. Each needs a downloaded model. Available through an optional pretrained model
SRCNN and FSRCNN Deep learning and learned processing Enlarges an image two times with FSRCNN, the fast successor of SRCNN, the first convolutional network for super-resolution. It is tiny, under 0.1 MB, so it shows the idea in a few layers. OpenCV's dnn_superres module runs it. It needs a downloaded model. Available through an optional pretrained model
SwinIR Deep learning and learned processing Removes noise with SwinIR, a network of Swin Transformer blocks that compare pixels inside small windows that shift from block to block. This model was trained for Gaussian noise of sigma 25 in color photos. It needs a downloaded model. Available through an optional pretrained model
SwinIR super-resolution Deep learning and learned processing Enlarges an image two times with the lightweight SwinIR model, a small network of Swin Transformer blocks trained on clean images shrunk with bicubic. It rebuilds detail that bicubic resizing leaves soft, but it cannot recover what blur or noise destroyed. It needs a downloaded model. Available through an optional pretrained model
Barrel distortion Artistic and geometric effects Bows straight lines outward, as cheap wide-angle lenses do, by squeezing the image more toward its edges. Implemented and tested
Bloom and glow Artistic and geometric effects Makes bright areas glow by blurring their light and adding it back, as bright lights bloom in a camera or the eye. Implemented and tested
Bokeh blur Artistic and geometric effects Blurs the image the way an out-of-focus lens does, so bright points turn into bright disks. Implemented and tested
Cartoon effect Artistic and geometric effects Flattens colors with repeated edge-preserving smoothing and draws black lines along the edges, for a comic-book look. Implemented and tested
Dithering Artistic and geometric effects Reduces each channel to a few levels, and hides the rounding error in a fine pattern of dots, so the tones still look right from a distance. Implemented and tested
Edge enhance Artistic and geometric effects Sharpens edges with a fixed 3 x 3 kernel that adds a Laplacian to the image. Implemented and tested
Emboss Artistic and geometric effects Subtracts a diagonal neighbor from each pixel and adds mid gray, so edges look raised or pressed in, like a relief. Implemented and tested
Fisheye distortion Artistic and geometric effects Bends the image as a fisheye lens would, enlarging the center and pressing the edges together. Implemented and tested
Halftone Artistic and geometric effects Redraws the image as round black dots on a turned grid, larger where the image is darker, like printing in newspapers. Implemented and tested
Oil-painting effect Artistic and geometric effects Turns each pixel into the average color of the most common brightness around it, which gives flat, daubed patches like brush strokes. Implemented and tested
Outline Artistic and geometric effects Turns flat areas white and draws the darker side of every edge as a dark line, like a pen outline. Implemented and tested
Pencil sketch Artistic and geometric effects Turns the image into a light pencil drawing, where edges and dark details stay as gray lines and flat areas turn white. Implemented and tested
Pincushion distortion Artistic and geometric effects Bows straight lines inward, as telephoto lenses often do, by stretching the image more toward its edges. Implemented and tested
Pixelate Artistic and geometric effects Replaces each block of n by n pixels with its mean, so the image looks made of large square pixels. Implemented and tested
Posterize Artistic and geometric effects Reduces each channel to a few flat levels, for a poster-like look with bands of color. Implemented and tested
Ripple distortion Artistic and geometric effects Moves pixels toward and away from the center in rings, like ripples spreading on water. Implemented and tested
Solarize Artistic and geometric effects Inverts the values at or above a threshold and keeps the others, a mix of positive and negative. Implemented and tested
Swirl distortion Artistic and geometric effects Turns the image around its center, most strongly near the center and fading with distance, like a whirlpool. Implemented and tested
Tilt-shift blur Artistic and geometric effects Keeps a horizontal band sharp and blurs more and more above and below it, which makes scenes look like miniature models. Implemented and tested
Vignette Artistic and geometric effects Darkens the image smoothly toward its corners, as many lenses do, to draw the eye to the center. Implemented and tested
Wave distortion Artistic and geometric effects Shifts rows sideways, or columns up and down, by a sine wave, so straight lines become waves. Implemented and tested
Add Gaussian noise Utilities Adds random values with a normal distribution to every pixel. Implemented and tested
Add Poisson noise Utilities Simulates photon counting. Each value becomes a random count with that mean, so noise grows with the square root of the brightness. Implemented and tested
Add periodic noise Utilities Adds a sine wave of one frequency and direction to every pixel, a model of periodic interference. Implemented and tested
Add salt-and-pepper noise Utilities Turns a random share of pixels pure white or pure black. Implemented and tested
Add speckle noise Utilities Multiplies every pixel by a random factor around 1, so bright areas get more noise than dark ones. Implemented and tested
Apply a known blur Utilities Blurs the image with a Gaussian, motion or defocus point spread function, the known blur that the deconvolution filters undo. Implemented and tested
Crop Utilities Keeps a rectangle of the image and drops the rest. The rectangle starts at the bounds of the selection, or at the whole image. Pixel values do not change. Implemented and tested
Free rotation Utilities Turns the image by any angle around its center, with a choice of interpolation. Implemented and tested
Quality metrics Utilities Compares the active image with a reference and reports PSNR, SSIM, MSE and MAE. Implemented and tested
Resize Utilities Changes the size of the image in pixels, with a choice of resampling kernel. Implemented and tested
Rotate and flip Utilities Turns the image by a quarter or half turn, or mirrors it left to right or top to bottom. Whole pixels move, so no value changes. Implemented and tested

How to read a filter page

  • Overview says what the filter is for and shows its effect on a test image.
  • How it works explains the steps in plain words.
  • Mathematical foundation gives the formula with the default values, and defines every symbol.
  • Kernel or operator shows the kernel, the window or the curve, as the Inspector does.
  • Worked example follows one pixel through the filter, with numbers from the real code.
  • Tests names the reference library and the tolerance.

See Convolution and correlation for the conventions all kernel filters share.