1 | initial version |
Better is to use :
Size ksize = new Size(5, 5);
MorphKernel = Imgproc.getStructuringElement(Imgproc.MORPH_CROSS, ksize);
Imgproc.morphologyEx(Rgb, Rgb, Imgproc.MORPH_RECT, MorphKernel);
2 | No.2 Revision |
Better is to use :
Size ksize = new Size(5, 5);
Mat MorphKernel = Imgproc.getStructuringElement(Imgproc.MORPH_CROSS, ksize);
Imgproc.morphologyEx(Rgb, Rgb, Imgproc.MORPH_RECT, MorphKernel);