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 2828#include " itkGradientMagnitudeImageFilter.h"
2929
3030// Run with:
31- // ./WatershedImageFilter threshold level
31+ // ./SegmentWithWatershedImageFilter inputImageFile outputImageFile threshold level
3232// e.g.
33- // ./WatershedImageFilter 0.005 .5
33+ // ./SegmentWithWatershedImageFilter BrainProtonDensitySlice.png OutBrainWatershed.png 0.005 .5
3434// (A rule of thumb is to set the Threshold to be about 1 / 100 of the Level.)
3535
3636int main ( int argc, char *argv[] )
Original file line number Diff line number Diff line change 1717# Run with:
1818# ./WatershedImageFilter.py <InputFileName> <OutputFileName> <Threshold> <Level>
1919# e.g.
20- # ./WatershedImageFilter.py BrainProtonDensitySlice.png OutBrainWatersehd .png 0.005 .5
20+ # ./WatershedImageFilter.py BrainProtonDensitySlice.png OutBrainWatershed .png 0.005 .5
2121# (A rule of thumb is to set the Threshold to be about 1 / 100 of the Level.)
2222#
23- # threshold: is used to set the absolute minimum height value used during processing.
23+ # threshold: absolute minimum height value used during processing.
2424# Raising this threshold percentage effectively decreases the number of local minima in the input,
2525# resulting in an initial segmentation with fewer regions.
2626# The assumption is that the shallow regions that thresholding removes are of of less interest.
3131# A level of 1.0 is analogous to flooding the image up to a
3232# depth that is 100 percent of the maximum value in the image.
3333# 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%),
3535# since higher values quickly start to undersegment the image.
3636
3737import sys
You can’t perform that action at this time.
0 commit comments