automating a code for image processing
7 views (last 30 days)
I have a code that reads an image and it gives two answers or two results about it
I want to automate it so it can give a matrix with results for each image
lets say i have images named like this:
image00 image01 image02 image03 image04 image05 image06
my code gives two answers when it reads an image lets say A and B.
i want the code to read the 7 images at the same time and give a matrix with the answers
like this maybe
[A00, A01, A02...] and [B00, B01, B02...]
IS THERE A WAY TO DO THIS?
ANY HELP WOULD BE GREATLY APPRECIATED
Image Analyst on 24 Jun 2014
Well you can try this framework: http://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component
This GUI will help the novice user get up to speed very quickly on using GUI-based applications. Everything is laid out in a very simple Step 1, Step 2, Step 3, etc. layout. It is a very good starting point for a typical image analysis application. This application uses GUIDE to do the user interface design, and has most of the basic controls such as buttons, listboxes, checkboxes, radio buttons, scrollbars, etc. It allows the user to select a folder of images, select one or more images and display them, to select a series of options, and to individually or batch process one or more images. The user can..................
Or you can read the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F and build that code into a button that batch processes all the images. Then have a function to process each one
for k = 1 : totalNumberOfImages
[A, B] = AnalyzeSingleImage(filename);
A lot is left out of that code obviously. MAGIC will have that and you just need to replace the contents of AnalyzeSingleImage() with your own code.