Alex Rivera | Logout

Convert RGB to Black & White in OpenCV

Asked 2009-10-18T17:41:40.580
67

I would like to know how to convert an RGB image into a black & white (binary) image.

After conversion, how can I save the modified image to disk?

Edit
Report

1 Answer

1

I do something similar in one of my blog postings. A simple C++ example is shown.

The aim was to use the open source cvBlobsLib library for the detection of spot samples printed to microarray slides, but the images have to be converted from colour -> grayscale -> black + white as you mentioned, in order to achieve this.

answered 2011-08-13T15:37:51.797

Your Answer