Prev: Text generator
Next: regionprops
From: Yagmur on 1 May 2010 07:10 Hello, How can I plot a rectangle on an image and save the modified image?
From: us on 1 May 2010 07:55 "Yagmur " <yagmurerkal1(a)hotmail.com> wrote in message <hrh26r$8u4$1(a)fred.mathworks.com>... > Hello, > > How can I plot a rectangle on an image and save the modified image? what do you mean by ...image... (?)... us
From: Yagmur on 1 May 2010 10:48 "us " <us(a)neurol.unizh.ch> wrote in message <hrh4qq$q2b$1(a)fred.mathworks.com>... > "Yagmur " <yagmurerkal1(a)hotmail.com> wrote in message <hrh26r$8u4$1(a)fred.mathworks.com>... > > Hello, > > > > How can I plot a rectangle on an image and save the modified image? > > what do you mean by ...image... (?)... > > us The image is a frame from a video, Im doing abandoned object detection so I want to plot a rectangle on some of the frames and save the image like this.. Can you help me please? Yagmur
From: ImageAnalyst on 1 May 2010 10:52 Just write the value (say, 255 or [255,255,255]) directly into the image (the numerical 2D array) and use imwrite to save that array out to disk. E.g., for the top line (line 50) of the box going from column 100 to column 150: imageArray(50, 100:150) = 255;
From: Yagmur on 1 May 2010 11:00
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <f8670dd5-1d1e-40b3-8818-007a8ed1874d(a)k19g2000yqm.googlegroups.com>... > Just write the value (say, 255 or [255,255,255]) directly into the > image (the numerical 2D array) and use imwrite to save that array out > to disk. E.g., for the top line (line 50) of the box going from > column 100 to column 150: > imageArray(50, 100:150) = 255; Yes, that should work! Thank you very much.. Can I still watch the sequence of frames by using implay() if I modify the arrays like this? |