フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Why isnt this giving the desired output.

1 回表示 (過去 30 日間)
Hussain Hayat
Hussain Hayat 2015 年 8 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
The code is supposed to generate cars at different places. However its just generating one which is one the top left corner. Where is the error?
OUTPUT
This is what the command line shows.
COMMAND LINE IMAGE

回答 (1 件)

Star Strider
Star Strider 2015 年 8 月 8 日
I don’t have your ‘car’ and ‘road’ images, so I made a little green ‘plus’ sign appear in the centre of a yellow pepper. You assign the inserted image just as you would address any other matrix, remembering that in an image, the y-axis is the reverse of a plot y-axis. (I’m attaching the green plus sign image.) Perhaps this will help get you started:
I = imread('peppers.png');
p = imread('dndCopy.png');
I(200+[0:15],260+[0:15],:) = p; % Define ‘I’ Where You Want The ‘car’ (Or ‘+’) To Appear
figure(1)
image(I)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by