The default "custom" mode for ImageViewer implements a connected component method based on the intensity values at the pixels around the point under the cursor when the mouse button is pressed (which also defines the connected component's seed point) and the point under the current position of the cursor as the mouse is dragged.
In this modification, the algorithm also computes the radius of the maximally inscribed circle centered near the point of initial mouse button press.
The default "custom" mode for ImageViewer implements a connected component method based on the intensity values at the pixels around the point under the cursor when the mouse button is pressed (which also defines the connected component's seed point) and the point under the current position of the cursor as the mouse is dragged.
In this modification, the algorithm also computes the radius of the maximally inscribed circle centered near the point of initial mouse button press.