# Cuda::bitwise\_and not working

**URL:** <https://forum.opencv.org/t/cuda-bitwise-and-not-working/5488>\
**Category:** C++\
**Tags:** cuda, core, cudaarithm\
**Created:** [October 6, 2021, 9:45am UTC](https://forum.opencv.org/t/cuda-bitwise-and-not-working/5488 "2021-10-06T09:45:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luzhenzheng1990](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@luzhenzheng1990](https://forum.opencv.org/u/luzhenzheng1990)\
**Post date:** [October 6, 2021, 9:45am UTC](https://forum.opencv.org/t/cuda-bitwise-and-not-working/5488/1 "2021-10-06T09:45:58Z")

</div>

My version is 4.5.2 and also seen a post for 4.5.3. cuda::bitwise\_and() is apprently not working.  
I passed a correct mask with same size and CV\_8UC1 type into it.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [October 6, 2021, 9:52am UTC](https://forum.opencv.org/t/cuda-bitwise-and-not-working/5488/2 "2021-10-06T09:52:34Z")

</div>

small example snippet w. synthetic data would be helpful to reproduce it
