Thread Subject:
probléme dans l'affichage de la commande imfinfo

Subject: probléme dans l'affichage de la commande imfinfo

From: taha

Date: 28 Jul, 2012 15:41:14

Message: 1 of 3

bonjour,
j'ai utilisé le code suivant pour afficher le résultat de imfinfo dans une tableau mais le problème il ne m'affiche pas les entiers tels que size et width


img = imread('lenna.png');
% Reads the image and store it to a variable.
axes(handles.axes1);
imshow(img);
guidata(hObject, handles);
X = imfinfo('lenna.png');
F = fieldnames(X);
C = struct2cell(X);
for n = 1:numel(C)
    if isstruct(C{n})
        C{n} = 'MATLAB struct...'
    end
end
C = cellfun(@char, C,'uniformoutput',false);
f = figure('Position', [100 100 752 350]);
t = uitable('parent', f, 'Position', [25 25 700 200],'data',[F C]);

Subject: probléme dans l'affichage de la commande imfinfo

From: Bruno Luong

Date: 28 Jul, 2012 18:44:12

Message: 2 of 3

"taha " <taher_kriaa@hotmail.com> wrote in message <jv116q$qt9$1@newscl01ah.mathworks.com>...
>
> C = cellfun(@char, C,'uniformoutput',false);

Please try to replace @char with @num2str

Bruno

Subject: probléme dans l'affichage de la commande imfinfo

From: taha

Date: 28 Jul, 2012 22:21:19

Message: 3 of 3

it works thank you :)

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us