How to display rgb image from a matrix as well as insert rectangular shape in the same image.
8 ビュー (過去 30 日間)
I have a M x N matrix array which I have to display in rgb image. At the same time I want to insert a rectangular shape in the same image so that final image looks like a small portion is highlighted. Can somebody please tell me the appropriate code for it. In my case M=1065 N=1030 I want a rectangle of dimension 20 x 10 around [835,504]. Please help me out.
harjeet singh 2015 年 12 月 30 日
rectangle('position',[roi(1)-box(1)/2 roi(2)-box(2)/2 box(1),box(2)]);