minor changes
added function argument from_idx, so we can keep track of different video datasets. for example we might have DFO2013, DF02014 etc. when code renames the video files it will put this as a prefix.
tidied up code. defined functions extract_data etc and made calls to these instead, so that we can customize the video files we are working with rather than sticking everything in one big for-loop. also modified the code that writes the txt files for the principal components so that we can set the desired number of image files we will create for the principal components. also changed this in 4_Output_prcomp.py
modified code to add variable n, which is the desired number of principal component images to write to jpg. code runs through a four-loop of length n. the txt files must first be created by 4_Apply_clustering.r for this to work, so it is better to run this as a system call within 4_Apply_clustering.r
commented line that prints the height, width, depth
initial commit, python code from http://stackoverflow.com/questions/2745612/incremental-pca that applies a incremental PCA algorithm. applies it to test data generated from normal distribution, will modify it to apply to our data