Prev: Lower Triangle for a matirx
Next: Fitting a plane
From: marwen on 20 May 2010 14:37 Hello, Well when i use iminfo('picture.bmp'),it shows me evrything (all details) ! But since i want to display special details on my interface about the picture: as size,BitDepth and ColorType . Thank you all.
From: Walter Roberson on 20 May 2010 15:12 "marwen " <hi.marwen(a)gmail.com> wrote in message <ht3vgh$qnp$1(a)fred.mathworks.com>... > Well when i use iminfo('picture.bmp'),it shows me evrything (all details) ! > But since i want to display special details on my interface about the picture: > as size,BitDepth and ColorType . iminfo() does not appear to be part of Matlab. imfinfo() with an 'f' after the 'im' returns a structure containing the information. Assign the structure to a variable and display the fields of it that you are interested in.
From: Reetam Biswas on 20 May 2010 15:38 "Walter Roberson" <roberson(a)ibd.nrc-cnrc.gc.ca> wrote in message <ht41i4$fll$1(a)fred.mathworks.com>... > "marwen " <hi.marwen(a)gmail.com> wrote in message <ht3vgh$qnp$1(a)fred.mathworks.com>... > > > Well when i use iminfo('picture.bmp'),it shows me evrything (all details) ! > > But since i want to display special details on my interface about the picture: > > as size,BitDepth and ColorType . > > iminfo() does not appear to be part of Matlab. > > imfinfo() with an 'f' after the 'im' returns a structure containing the information. Assign the structure to a variable and display the fields of it that you are interested in. u can use im= imread('picture.bmp') s=size(im); if s(3)==3 then its coloured image else grayscale image
From: Walter Roberson on 20 May 2010 15:46 "Reetam Biswas" <reetamoceans(a)gmail.com> wrote in message <ht432s$rai$1(a)fred.mathworks.com>... > u can use im= imread('picture.bmp') > s=size(im); > if s(3)==3 > then its coloured image > else grayscale image s(3) will not even exist for a grayscale image. ndims(s) will be 3 for a truecolor image -- but if ndims is 2, then the image could be grayscale or it could be indexed, or it could be black and white (logical).
From: ImageAnalyst on 20 May 2010 15:58
If you want to display it in a static text label on your GUI, then use sprintf() to construct a string. Then use set() to send the string to the static text label where you want it displayed. If you want it displayed over the image, use text() to display the string in the overlay of the image. |