how to display a montage of images from a dataset

3 visualizaciones (últimos 30 días)
Newman el 27 de Jun. de 2016
Respondida: Walter Roberson el 27 de Jun. de 2016
Hello I am using the AT&T standard database for face recognition. I want to display a montage of just a particular face of one individual in the screen for all the 40 individuals in the database.
This is my initial code
%extract the face databse from the folders
%display montage for the first image
%createa a gallery of all individuals
for i=0:size((facedatabase),2)
In the second part of the code where I want to show a gallery of all the individuals as a montage in one image its showing the follwing error
Subscript indices must either be real positive integers or logicals.
Error in face_databse_extraction (line 11)
Kindly tell me how to resolve this error

Respuestas (1)

Walter Roberson
Walter Roberson el 27 de Jun. de 2016
You start your i loop from 0, and try to index at i. It is not permitted to index at 0 in MATLAB. Your loop should start at 1.


Más información sobre Image Processing and Computer Vision en Help Center y File Exchange.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by