IplImage => CvMat
Thinning