필터 지우기
필터 지우기

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