Geodesic Morphological Reconstruction
Geodesic morphological reconstruction according to L. Vincent (1993): Morphological Grayscale Reconstruction in Image Analysis: Applications and Efficient Algorithms. IEEE Transactions on Image Processing, Vol. 2, No 2Here we use the algorithm on p. 194: Computing of Regional Maxima and Breadth-first Scanning.A marker is derived from the input image INPUT_GRID by subtracting a constant SHIFT_VALUE. Optionally the SHIFT_VALUE can be set to zero at the border of the grid ("Preserve 1px border Yes/No"). OUTPUT_GRID is the difference between the input image and the morphological reconstruction of the marker under the input image as mask. If the Option "Create a binary mask" is selected, the OUTPUT_GRID is thresholded with THRESHOLD, creating a binary image of maxima regions.