|
|
@ -241,8 +241,8 @@ namespace OpenCV |
|
|
|
{ |
|
|
|
{ |
|
|
|
morp = new IplImage(src.Size, BitDepth.U8, 1); |
|
|
|
morp = new IplImage(src.Size, BitDepth.U8, 1); |
|
|
|
bin = Binary(src, threshold); |
|
|
|
bin = Binary(src, threshold); |
|
|
|
Cv.Erode(morp, morp, convKernel, iteration); |
|
|
|
Cv.Erode(bin, morp, convKernel, iteration); |
|
|
|
Cv.Dilate(bin, morp, convKernel, iteration); |
|
|
|
Cv.Dilate(morp, morp, convKernel, iteration); |
|
|
|
|
|
|
|
|
|
|
|
return morp; |
|
|
|
return morp; |
|
|
|
} |
|
|
|
} |
|
|
|