Added GPUImage to project, libGPUImage.a and OpenGLES.framework to project. Added in Header Search Paths the path to GPUImage/Sources.
In ViewController.h: Imported GPUImage.h.
In ViewController.mm: At OpenCV side: made “std::vector<cv::Vec4i> lines” a global variable, tried to implement a way to draw in the screen the lines fond by cv::HoughLinesP, but without success. Attempted to create another CALayer under recordPreview and delegate it to self, then convert the lines from OpenCV to be draw in CALayer, but without success.
Created a method to use GPUImage instead of OpenCV, using Hough Transform Line Detector, but it throws BAD_ACCESS when tried to process.
At storyboard: added a 3rd method selector to use GPUImage.