# Binary image showing color

**URL:** <https://forum.opencv.org/t/binary-image-showing-color/4601>\
**Category:** C++\
**Created:** [August 4, 2021, 6:35pm UTC](https://forum.opencv.org/t/binary-image-showing-color/4601 "2021-08-04T18:35:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rg0001](https://avatars.discourse-cdn.com/v4/letter/r/9dc877/32.png) [@rg0001](https://forum.opencv.org/u/rg0001)\
**Post date:** [August 4, 2021, 6:35pm UTC](https://forum.opencv.org/t/binary-image-showing-color/4601/1 "2021-08-04T18:35:57Z")

</div>

Kind of stuck: am converting a grey-scale image (imageUndistorted) from another part of the program, to be binarized. Where am I going wrong? The faux blob circles are correct, just not expected in the binary image.

```auto
imageUndistorted(works great from thread)
threshold(imageUndistorted, matBinaryImg, 60, 255, THRESH_BINARY);
imshow("Binary Image:", matBinaryImg);
waitKey(1);type or paste code here

```

 ![RedBlobBinary](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/a/a3c0b3085a72b638194d2bbaa5fde1080ab0f8f7.png)

---

<div class="post-metadata">

**Author:** ![sturkmen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/sturkmen/32/13_2.png) [@sturkmen](https://forum.opencv.org/u/sturkmen)\
**Post date:** [August 4, 2021, 8:01pm UTC](https://forum.opencv.org/t/binary-image-showing-color/4601/2 "2021-08-04T20:01:38Z")

</div>

see [the documentation](https://docs.opencv.org/master/d7/d1b/group __imgproc__ misc.html#gae8a4a146d1ca78c626a53577199e9c57)

cv::threshold accepts multiple-channel arrays and the result will be multiple-channel.
