<br> 对于数字图像,可以用一阶差分代替一阶微分;<br><br> △xf(x,y)=f(x,y)-f(x-1,y);<br><br> △yf(x,y)=f(x,y)-f(x,y-1)<br><br> 求梯度时对于平方和运算及开方运算,可以用两个分量的绝对值之和表示,即:<br><br> G[f(x,y)]={[△xf(x,y)] +[△yf(x,y)] } |△xf(x,y)|+|△yf(x,y)|;<br><br> Sobel梯度算子是先做成加权平均,再微分,然后求梯度,即:<br><br> △xf(x,y)= f(x-1,y+1) + 2f(x,y+1) + f(x+1,y+1)- f(x-1,y-1) - 2f(x,y-1) - f(x+1,y-1);<br><br> △yf(x,y)= f(x-1,y-1) + 2f(x-1,y) + f(x-1,y+1)- f(x+1,y-1) - 2f(x+1,y) - f(x+1,y+1);<br><br> G[f(x,y)]=|△xf(x,y)|+|△yf(x,y)|;<br><br>你所说的G是上面叙述的G[f(x,y)]吗?
[此贴子已经被作者于2006-4-21 22:31:19编辑过]
|