correct connected threshold filter bounds
Merge pull request #189 from gpasquie/MagicWandCorrection

Magic wand correction