image = | checkMultiphasedNeighourhood3dImg (inLabelImg,nbLabels,bIgnoreForeground) |
Set the intensity to 1 if the number of neighbours with higher values are greater than the specified input value.
Given an iput label image, the algorithm computes a binary image in which pixels are set to 1 if the label image counts at least InNbLabels different labels in its 3x3x3 neighbourhood.
It is possible to process only background pixels by setting the InIgnoreForeground flag to true.
A 2D example is given in the Check multiphased 2d neighourhood description.