{"id":6012,"date":"2015-05-29T09:00:05","date_gmt":"2015-05-29T13:00:05","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/?p=6012"},"modified":"2015-05-27T09:50:33","modified_gmt":"2015-05-27T13:50:33","slug":"imageset-viewer","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2015\/05\/29\/imageset-viewer\/","title":{"rendered":"imageSet Viewer"},"content":{"rendered":"<i>Avi Nehemiah is the product marketing manager for computer vision applications.<\/i>\r\n<\/br>\r\n<\/br><a href=\"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/4291457-avi-nehemiah\">Avi's<\/a> pick of the week is <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/50231-imagesetviewer\">imageSet viewer<\/a> by <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/profile\/authors\/845693-brett-shoelson\">Brett Shoelson<\/a>.\r\n\r\n<\/br>\r\n<\/br>My pick of the week is the <a href=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/50231-imagesetviewer\">imageSet Viewer<\/a> user interface created by my friend Brett Shoelson. The biggest challenges I face when working with large sets of images(that are normally stored in several different directories) is it was difficult to bring the data into MATLAB, and interactively visualize the images.\r\n\r\n<\/br>\r\n<\/br>The imageSet functionality in the <a href=\"https:\/\/www.mathworks.com\/products\/computer-vision\/\">Computer Vision System Toolbox<\/a> helps me bring the data into MATLAB. I can bring all the images in a folder into MATLAB, and maintain the hierarchical relationship between folders using the imageSet. The image data I am using is from <a title=\"http:\/\/www.vision.caltech.edu\/Image_Datasets\/Caltech101 (link no longer works)\">Caltech 101<\/a>, collected by Fei-Fei Li, Marco Andreetto, and Marc 'Aurelio Ranzato. imageSet functionality is new in R2014b, you can learn more about it in the <a title=\"https:\/\/www.mathworks.com\/help\/vision\/ref\/imageset-class.html (link no longer works)\">documentation<\/a> .\r\n<pre class=\"codeinput\">imageData = imageSet(<span class=\"string\">'Data'<\/span>,<span class=\"string\">'recursive'<\/span>);\r\n<\/pre>\r\nNow let's take a look at some of properties of the imageData variable I just created.\r\n<pre class=\"codeinput\">numImages = [imageData.Count]'\r\nfolderDescriptions = {imageData.Description}'\r\n<\/pre>\r\n<pre class=\"codeoutput\">numImages =\r\n          17\r\n           8\r\n           2\r\n        2092\r\n        2292\r\n         472\r\n         790\r\n         770\r\n         118\r\nfolderDescriptions = \r\n    'InteractiveTest'\r\n    'InteractiveTest_NoiseCompare'\r\n    'InteractiveTest_TestClassifier'\r\n    'Motorbikes'\r\n    'airplanes'\r\n    'car_side'\r\n    'Motorbikes'\r\n    'airplanes'\r\n    'car_side'\r\n<\/pre>\r\nThis is where the imageSet Viewer comes in to help me interactively visualize this data\r\n<pre class=\"codeinput\">imageSetViewer(imageData)\r\n<\/pre>\r\n&nbsp;\r\n\r\n<a href=\"https:\/\/blogs.mathworks.com\/pick\/files\/AviPOWT1_01.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-6016 size-large\" src=\"https:\/\/blogs.mathworks.com\/pick\/files\/AviPOWT1_01-1024x514.png\" alt=\"AviPOWT1_01\" width=\"1024\" height=\"514\" \/><\/a>\r\n\r\n<\/br>\r\n<\/br>Other options to navigate through your images using the user interface are\r\n<div>\r\n<ul>\r\n\t<li>Click on the tabs at the top to view different folders or categories<\/li>\r\n\t<li>Click on an image to view in a separate window<\/li>\r\n\t<li>Right click on an image to save to workspace<\/li>\r\n\t<li>Automatically creates imageSet if you pass in the directory name as an argument<\/li>\r\n\t<li>Click on the name of an image to copy to clipboard<\/li>\r\n<\/ul>\r\n<\/div>\r\n<\/br>I'd recommend trying out the imageSet viewer anytime you are working with sets of images.<\/br>\r\n\r\n&nbsp;","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/pick\/files\/AviPOWT1_01-1024x514.png\" onError=\"this.style.display ='none';\" \/><\/div><p>Avi Nehemiah is the product marketing manager for computer vision applications.\r\n\r\nAvi's pick of the week is imageSet viewer by Brett Shoelson.\r\n\r\n\r\nMy pick of the week is the imageSet Viewer user... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2015\/05\/29\/imageset-viewer\/\">read more >><\/a><\/p>","protected":false},"author":132,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/6012"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/132"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=6012"}],"version-history":[{"count":24,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/6012\/revisions"}],"predecessor-version":[{"id":6041,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/6012\/revisions\/6041"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=6012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=6012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=6012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}