fix progressive morphological filter to stop at the max window size
Merge pull request #630 from chambbj/fix-progressive-morphological-filter

fix progressive morphological filter to stop at the max window size