how to overlay vector plot using quiver on unit 18 (1024 * 1280 )image

조회 수: 2 (최근 30일)
sanyogita sanyogita
sanyogita sanyogita 2022년 12월 28일
답변: Walter Roberson 2022년 12월 28일
figure() ;
imshow(img)
hold on
q = quiver(x_axis,y_axis,flipud(D),flipud(B) , LineWidth=1)
This is not working

답변 (1개)

Walter Roberson
Walter Roberson 2022년 12월 28일
I recommend against imshow for this purpose.
Instead call image(). When you do, either pass in the two optional positions before the image data, or else use the XData and YData name/value pairs.
The positions to pass in should be the data coordinates of the centers of the lower left and upper right pixels. Those values would be similar to the min() and max() of your x-axis and y-axis values that you use for the quiver call.

카테고리

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