Page history Edit this page How do I edit this website?
Original MediaWiki page

Granulometric Filtering

The content of this page has not been vetted since shifting away from MediaWiki. If you’d like to help, check out the how to help guide!


Gran_Filter.jar (39,559 Bytes)


in .jar file


This plugin can be used to identify and select structure of a certain size in a B&W image. It allows e.g. to get all circular structure of a certain radius within an image.


The figure is sieved with a structuring element of increasing size. Each sieving step removes structures with sizes that matches or are smaller that the structuring element size. Individual size disks are obtained by subtracting derived images (e.g. to obtain 10 px radius size, one subtract the image obtained after sieving by a structuring element of size 10 by the image sieved with size 9).

Plugin parameters

  • Type of structure element: select between circle, diamond, square, and lines to identify corresponding shape
  • Radius of structure element: the minimal size (radius in pixel) of the structuring element to apply
  • Step: the maximal size of the structuring element will be the previous value plus this one

For example, to detect all circular shapes whose radii are between 10 and 12 pixels, one would select circle, 10, 2 respectively as parameters.

The plugin also works on grayscale images, tough it gives difficult to interpret results.


This plugin and technique is described by its author (and colleagues) in the following paper, where more documentation can be found: