Got working with threshholding individual video frames; must be compiled in release mode