issue #1179 wonky mask calculation for objects touching border in measureobjectneighbors