sandz24 0 Newbie Poster

Can anyone discuss how to convert a jpeg color image into binary using OpenCv and C++. I find it hard understanding it on my own. I found sample programs but that really doesn't help much if I don't understand the meaning of every line of code. At least a step by step guide on what I should do will be very helpful.

Thanks!!!