extract quiver magnitude of an image

1 次查看(过去 30 天)
sreejini
sreejini 2014-12-8
回答: Thorsten 2014-12-8
The following code display the quiverplot.How can i get the magnitude of arrows in quiverplot??? I = imread('rice.png'); I=double(I); img_s = conv2(I,matrix,'valid'); [gx, gy] = gradient(img_s); imshow(gx, []); figure; imshow(gy, []); [x,y] = meshgrid(1:size(img_s,1),1:size(img_s,2)); quiver(x,y,gx,gy)

回答(1 个)

Thorsten
Thorsten 2014-12-8
To double the length of the arrows:
quiver(x,y,2*gx,2*gy)

类别

Help CenterFile Exchange 中查找有关 Vector Fields 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by