|
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]);
|