Watershed segmentation assigns the pixels of an image file to different regions, depending on the gradient values at each pixel. The image is treated as a height function. Local minima in the gradient of the height are treated as watershed lines, or the locations of water basins if water flowed over the surface defined by the height function. The technique is usually preceded by a preliminary filter to smooth out noise and identify edges. The input parameters set the minimum threshold value for the watershed and the watershed level.
Usage: itk-WatershedImageFilter inputImageFile outputImageFile dimension lowerThreshold level