From: JordanPainter Painter on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <96cc7589-a02a-428c-9e52-4e7a76a989e9(a)z11g2000yqz.googlegroups.com>...
> Depends on what color you define as "white." Maybe you'd like to see
> my color detection demo:
> http://www.mathworks.com/matlabcentral/fileexchange/26420-simplecolordetection

Thanks for that, these demos are really helpful. What i've done now is just used matlab to manually convert all my images to black and white 8 bit jpeg files. It got the job done. I just need to figure out this loop for multiple images. I want to pull out their whitepixel counts and plot them accordingly but all the for loops i've made so far don't seem to work. It has trouble with the imread function.
From: ImageAnalyst on
"JordanPainter Painter" <jordanpain...(a)hotmail.co.uk>:
I don't know why imread should have a problem. What is the problem?
Can't find the image? Are you passing it the full filename (folder +
base filename)? Is the image is corrupted? What is the error message?
From: JordanPainter Painter on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <633e71bd-b323-45e8-8b1c-8a892433a195(a)k33g2000yqc.googlegroups.com>...
> "JordanPainter Painter" <jordanpain...(a)hotmail.co.uk>:
> I don't know why imread should have a problem. What is the problem?
> Can't find the image? Are you passing it the full filename (folder +
> base filename)? Is the image is corrupted? What is the error message?

I get a filename error. But i'm not doing the loop properly. I'm not sure how to 'list' all the individual files in a sense and then call them all individually to be analysed. I've not done a loop like this before so i'm struggling. I'm not sure how to just input all the images originally so they can be called.
From: ImageAnalyst on
Well why don't you take a look at this:
http://www.mathworks.com/matlabcentral/fileexchange/24224
It shows you how to load up listboxes, select some files from the
listbox, and click "Process images" to batch process the selected
images one by one in a loop. It also shows you how to save results
and write them out to an Excel workbook, plus some other things.
First  |  Prev  | 
Pages: 1 2 3
Prev: Help with function and syms
Next: Bar graph in Matlab