
Creates a temporary layer with the density of objects of a certain class as intensity information.
The snippet creates a temporary layer with information about object density. This is very usefull for all types of decisions that are based on object density, like defining medula and cortex in kidney tissue based on the density of glumeruli.
The idea is to use a large filter kernel on a class mao image. The size of the kernel is an important parameter on the density measure.
If the kernel is big compared against the size of the object this method allows very robust distinction between singular objects or small clusters and large dense clusters of objects.
Comments