Filter löschen
Filter löschen

extract quiver magnitude of an image

1 Ansicht (letzte 30 Tage)
sreejini
sreejini am 8 Dez. 2014
Beantwortet: Thorsten am 8 Dez. 2014
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)

Antworten (1)

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

Kategorien

Mehr zu Vector Fields finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by