求8方向的sobel算子在matlab中的源代码答:int t0,t1,t2,t3,t4,t5,t6,t7;///sobel模板的八个邻域值 int ab1,ab2,ab3,ab4,ma,ma1,ma2;int m_max_ab=0;if(m_Img_sobel!=NULL){ delete []m_Img_sobel;m_Img_sobel=NULL;} m_Img_sobel=new unsigned char[aLineByte*aHeight];if(m_iBitCount!=8){ //AfxMessageBox("sobe...