function LMphotoalbum(varargin); % % LMphotoalbum(D, pagename); % % or % % for i = 1:length(D); % folderlist{i} = D(i).annotation.folder; % filelist{i} = D(i).annotation.filename; % end % LMphotoalbum(folderlist, filelist, pagename); % % This function allows building an interface that communicates with the % LabelMe web annotation tool. % % It can be used to label specific images. % % 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(D, 'folder', 'kitchen'); % LMphotoalbum(D, 'myphotoalbum.html'); % % This will create a web page with thumbnails of the selected images. But % more importantly, the images will be link with the LabelMe online tool. % So, whenever you will click on one image it will call the annotation tool % and will open that specific image showing the annotations available % online (not the local ones that you have). Now you can label more objects % in that image and download later the annotations. if nargin == 2 D = varargin{1} pagename = varargin{2}; for i = 1:length(D) folderlist{i} = D(i).annotation.folder; filelist{i} = D(i).annotation.filename; end ADDSUMMARY = 1; end if nargin > 2 folderlist = varargin{1}; filelist = varargin{2}; pagename = varargin{3}; ADDSUMMARY = 0; end Nimages = length(folderlist); webpage = 'http://labelme.csail.mit.edu/tool.html?collection=LabelMe' % Hearder page = {}; page = addline(page, '