From: Peng Swee Yap on 2 Feb 2010 16:58 In my GUI, i have connected my webcam. The webcam will automatically snap 3 photo and store in a folder in my computer. The coding to snap photo and save photo are as below: img1 = getsnapshot(vid); fname = ['Image' num2str(ctr)]; % make a file name imwrite(img1, 'C:\Images\img1.tiff' , 'tiff'); I have created 3 axes in my GUI as well. When the first image has been captured and stored, the first axes will show the first image. When the second image has been captured and stored, the second axes will show the first image. And third image as well. As i know is using imread() and imshow() to read and display the photo. But i not really know how to do display it. Can someone guide me/show me? Thank you.
From: us on 2 Feb 2010 17:06 "Peng Swee Yap" > As i know is using imread() and imshow() to read and display the photo. But i not really know how to do display it. Can someone guide me/show me? > > Thank you. but: IMSHOW -does- display the data(?)... us
From: Peng Swee Yap on 2 Feb 2010 17:15 "us " <us(a)neurol.unizh.ch> wrote in message <hka7kc$o51$1(a)fred.mathworks.com>... > "Peng Swee Yap" > > As i know is using imread() and imshow() to read and display the photo. But i not really know how to do display it. Can someone guide me/show me? > > > > Thank you. > > but: IMSHOW -does- display the data(?)... > > us imread() is use to read the file location in my folder imshow to display the photo. My current problem is i do not know how to how to display the first image on the axes1, display second image on axes2, and third image on axes3. Did anyone know how to do it?
From: ImageAnalyst on 2 Feb 2010 22:46 axes(handleToAxes1); imshow(imageArray1); axes(handleToAxes2); imshow(imageArray2); axes(handleToAxes3); imshow(imageArray3); I think you can also pass in the handles as arguments to imshow() instead of having a separate call to the axes() function.
|
Pages: 1 Prev: Melard's Algorithm Next: dir function and my poor numbering system |