Thresholding an image in iOS

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

Hi,

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 :

http://www.youtube.com/watch?feature=player_embedded&v=Ko3K_xdhJ1I

at 0:24 and 0:53

This tutorial: http://docs.opencv.org/doc/tutorials/ios/image_manipulation/image_manipulation.html 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