Size
Sets the radius/size of the local neighborhood.
Local min/median/max neighborhood filter
Filters each pixel by rank within a local neighborhood, ranging from minimum-like through median-like to maximum-like behavior.
RankFilter is useful for suppressing isolated noise, dust and small artifacts or for expanding/contracting bright and dark image structures.
Overview
Size defines the neighborhood examined around each pixel. Rank chooses which ordered value from that neighborhood becomes the output.
Ranks near the middle behave like a median filter and are useful for impulse noise. Ranks toward the minimum or maximum can shrink or expand bright structures in ways related to morphological filtering.
Large sizes can flatten texture quickly, so cleanup work should use the smallest neighborhood that removes the unwanted artifact.
Think of it as sorting the pixel values around each location and choosing one item from that sorted list.
Flow anatomy
The port structure shows how this node fits into a Fusion graph.
Source image for the operation.
The processed result from this node.
Inspector
Start with these controls before reaching for more complicated workarounds.
Sets the radius/size of the local neighborhood.
Chooses which ordered value from the neighborhood becomes the output.
Practical setup
Start with the smallest Size that covers the artifact.
Set Rank near the median for impulse-noise cleanup.
Move Rank toward the extremes only when you intentionally want min/max behavior.
Inspect fine texture and edges.
Mask the effect if only local cleanup is needed.
Examples
Use a median-like rank to suppress isolated bright and dark specks.
Use rank behavior to alter small matte features before compositing.
Troubleshooting
Production notes
Related nodes