最終更新:2012-02-28 (火) 16:57:58 (4438d)  

cvSobel
Top / cvSobel

void cvSobel( const CvArr* src, CvArr* dst, int xorder, int yorder, int aperture_size=3 );

1次のx-微分画像

  • (xorder=1, yorder=0, aperture_size=3)

Sobelカーネルは

-101
-202
-101

1次のy-微分画像

  • (xorder=0, yorder=1, aperture_size=3)

Sobelカーネルは

-1-2-1
000
121

あるいは

121
000
-1-2-1

どちらになるかは画像原点(IplImage構造体のoriginフィールド)に依存する.

関連

参考