g22_thinRegion - one thinning step [dev.]