function LMthumbnailsbar(folderlist, filelist, pagename, HOMEIMAGES);
%
% LMthumbnailsbar(folderlist, filelist, pagename, HOMEIMAGES);
%
% HOMEIMAGES should be the path for the images in your local copy of the
% database.
%
% This function allows building an interface that communicates with the
% LabelMe web annotation tool.
%
% It can be used to label specific images. It adds a bar with thumbnails at
% the left side of the annotation tool.
%
% You can use this to label images that have some characteristic that you
% want. You can use this function in combination with the LMquery function.
%
% For instance, if you want to create a web page with images only of
% kitchens so that the thumbnails are connected to the LabelMe web
% annotation tool online, you can do the next thing:
%
% [D,j] = LMquery(database, 'folder', 'kitchen');
% for i = 1:length(D);
% folderlist{i} = D(i).annotation.folder;
% filelist{i} = D(i).annotation.filename;
% end
% LMthumbnailsbar(folderlist, filelist, 'myphotoalbum.html', HOMEIMAGES);
%
%
% See also LMphotoalbum
%
Nimages = length(folderlist);
webpage = 'http://labelme.csail.mit.edu/tool.html?collection=LabelMe'
thumbpage = 'http://people.csail.mit.edu/brussell/research/LabelMe/Thumbnails/'
% Header
page = {};
% Create links for each image
for i = 1:Nimages
imageline = sprintf('
', thumbpage, folderlist{i}, filelist{i});
page = addline(page, sprintf('%d
',i));
page = addline(page, ...
[sprintf('%s', ...
webpage, folderlist{i}, filelist{i}, imageline)]);
end
% Close web page
page = addline(page, '