Added a custom filter to the SimpleVideoFilter example!
Hardcoded to segment red - working well at 15 fps.
Framework complete for the Naive Bayes GPUImage filter. Still need to test it.
Having odd issues where I can't pass a uniform float array to the fragment shader.
Switched to using uniform vec3 and it works
Basic functionality for the normal hayes classifier using hardcoded data.
Testing with some actual recorded data (mean and covariance values). The classification seems wrong. It certainly is classifying generally correct but it is too generous classifying pixels as belonging to the line class.
Responds well to simple hardcoded colors. Still having trouble getting the output from OpenCV's Normal Bayes and using that as the color model.
Working well with real training data from OpenCV.