Neuroglycerin / neukrill-net-tools

Tools coded as part of the NDSB competition.
MIT License
0 stars 0 forks source link

processing for just image sizes #43

Closed gngdb closed 9 years ago

gngdb commented 9 years ago

A processing function that just spits out the size of the image it's given, for every image it loads. Should be put in the image_processing.py code. Extra points: spits out the shape of the image it's given.

Note that processing functions are expected to output numpy arrays at the moment. But, it's duck programming so it might still work if you don't.

scottclowe commented 9 years ago

I these sorts of things in their own module called image_attributes.py.

This module contains a bunch of one-line functions which each will read in an image (only argument) and spit out a single scalar (may be float or int, depending).

I wrote a wrapper function attributes_wrapper which is in image_processing.py and is a very elegant (4 line) function. This is given a list of strings of image attribute names and returns a function which will provide a numpy array of the attributes of an input image.

We are now open for training a variety of sklearn classifiers on groups of these image properties to determine which are most informative.