File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/Segmentation/Watersheds/SegmentWithWatershedImageFilter Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 28
28
#include " itkGradientMagnitudeImageFilter.h"
29
29
30
30
// Run with:
31
- // ./WatershedImageFilter threshold level
31
+ // ./SegmentWithWatershedImageFilter inputImageFile outputImageFile threshold level
32
32
// e.g.
33
- // ./WatershedImageFilter 0.005 .5
33
+ // ./SegmentWithWatershedImageFilter BrainProtonDensitySlice.png OutBrainWatershed.png 0.005 .5
34
34
// (A rule of thumb is to set the Threshold to be about 1 / 100 of the Level.)
35
35
36
36
int main ( int argc, char *argv[] )
Original file line number Diff line number Diff line change 17
17
# Run with:
18
18
# ./WatershedImageFilter.py <InputFileName> <OutputFileName> <Threshold> <Level>
19
19
# e.g.
20
- # ./WatershedImageFilter.py BrainProtonDensitySlice.png OutBrainWatersehd .png 0.005 .5
20
+ # ./WatershedImageFilter.py BrainProtonDensitySlice.png OutBrainWatershed .png 0.005 .5
21
21
# (A rule of thumb is to set the Threshold to be about 1 / 100 of the Level.)
22
22
#
23
- # threshold: is used to set the absolute minimum height value used during processing.
23
+ # threshold: absolute minimum height value used during processing.
24
24
# Raising this threshold percentage effectively decreases the number of local minima in the input,
25
25
# resulting in an initial segmentation with fewer regions.
26
26
# The assumption is that the shallow regions that thresholding removes are of of less interest.
31
31
# A level of 1.0 is analogous to flooding the image up to a
32
32
# depth that is 100 percent of the maximum value in the image.
33
33
# A level of 0.0 produces the basic segmentation, which will typically be very oversegmented.
34
- # Level values of interest are typically low (i.e. less than about 0.40 or 40% ),
34
+ # Level values of interest are typically low (i.e. less than about 0.40 or 40%),
35
35
# since higher values quickly start to undersegment the image.
36
36
37
37
import sys
You can’t perform that action at this time.
0 commit comments