Select a specific area of an RGB image
1 回表示 (過去 30 日間)
古いコメントを表示
Hi everybody,
i have an RGB image and i want to select (not cut) a specific area with the following dimensions: [Xmin Ymin width length].
How can i do it?
Thank you so much!
1 件のコメント
KALYAN ACHARJYA
2019 年 3 月 1 日
編集済み: KALYAN ACHARJYA
2019 年 3 月 1 日
Define four spatial co-ordinates.
Please elaborate, is there any issue?
or
RGB=insertShape(I,'rectangle',[Position],'LineWidth',xx);
回答 (1 件)
KALYAN ACHARJYA
2019 年 3 月 1 日
編集済み: KALYAN ACHARJYA
2019 年 3 月 1 日
Are you looking for this one?
im=imread('test.jpg');
%[Xmin Ymin width length].
%Values are for example purpose only
Xmin=24;
Ymin=25;
length=20;
width=20;
%%
result=insertShape(im,'rectangle',[Xmin Ymin Xmin+length Ymin+width],'LineWidth',2);
imshow(result);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!