Organize Images

I deleted and recovered a large number of photos (thanks foremost). However, a large number of images from a browser cache was messing up my photo library.

Who wants to keep 10,000 of these images stored on my harddrive?

I used the number of unique colors to filter them out via MATLAB.

As expected, if I plot this, I get a nice s-curve:

plot(sort(nonzeros(ucolors)))

Or, viewing this as a histogram

histogram(nonzeros(ucolors),100)

So I modified the script to move all images with unique color counts less than 4500 unique colors to a folder: potential bad

This worked perfectly and saved my whole Saturday.


Posted

in

by

Tags:

Comments

One response to “Organize Images”

  1. Laurel Avatar
    Laurel

    I don’t really understand it, but it sounded like a time saver. Good job, Tim!

Leave a Reply

Your email address will not be published. Required fields are marked *