Thresholding an image in iOS

asked 2013-06-02 16:40:32 -0500


I am fairly new to iOS development and to opencv. However I have done a fair amount of image processing on MATLAB. I have been googling a lot in order to setup opencv on iOS and have managed to import the framework into xcode. What I am trying to do is A) Convert an RGB image to Grayscale B) Binarise (threshold) it, based on a slider.

Both of the above are shown in the video below :

at 0:24 and 0:53

This tutorial: Says that I should copy and paste the given code in order to convert UIImage object to Mat object. However it doesnt say in which file that code should be pasted?

Could someone please point me in the right direction for achieving A and B and which file to paste the code please?

Many thanks.

Kind Regards

edit retag flag offensive close merge delete