From: marwen on
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
"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
"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
"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
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.
 |  Next  |  Last
Pages: 1 2
Prev: Lower Triangle for a matirx
Next: Fitting a plane