removing second dimension reference in labelRects function of Imgproc