CBIR ,read image, index
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ragini Gaikwad
el 14 de Mayo de 2021
Comentada: Ragini Gaikwad
el 16 de Mayo de 2021
Guys, I want to take 10 images form my image database, read them, index them, find grey level and histogram. make bin to size 15. calculate feature vector of each image. calulate ED or MSE.
I tried with this
but, didnt get expected output
0 comentarios
Respuesta aceptada
Image Analyst
el 14 de Mayo de 2021
Start with this:
folder = pwd; % Wherever.
filePattern = fullfile(folder, '*.png')
imds = imageDatastore(filePattern)
numFiles = length(imds.Files)
for k = 1 : numFiles
subplot(2, 1, 1);
fullFileName = imds.Files{k};
[folder, baseFileNameNoExt, ext] = fileparts(fullFileName);
rgbImage = imread(imds.Files{k});
imshow(rgbImage);
caption = sprintf('File #%d of %d : %s', k, numFiles, [baseFileNameNoExt, ext]);
title(caption, 'Interpreter', 'none');
subplot(2, 1, 2);
imhist(rgbImage);
drawnow;
promptMessage = sprintf('Do you want to Continue processing,\nor Quit processing?');
titleBarCaption = 'Continue?';
buttonText = questdlg(promptMessage, titleBarCaption, 'Continue', 'Quit', 'Continue');
if contains(buttonText, 'Quit', 'IgnoreCase', true)
return; % or break or continue.
end
end
2 comentarios
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!