未定义标识符 "CV_BGR2GRAY"
时间: 2023-09-08 16:10:36 浏览: 176
repositorio_prb_bgr_gh:repositorio_prb_bgr_gh
未定义标识符 "CV_BGR2GRAY"的问题发生在OpenCV中。根据引用[2]提供的信息,新版本的OpenCV中已经将CV_BGR2GRAY替换为COLOR_BGR2GRAY。所以,你只需要将CV_BGR2GRAY改为COLOR_BGR2GRAY即可解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [第三节 图像处理之色彩空间](https://download.csdn.net/download/zhulichao1/12012748)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [未定义标识符“CV_BGR2GRAY](https://blog.csdn.net/qq_43439217/article/details/117173287)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [C++ OpenCV cvtColor CV_BGR2GRAY未声明的标识符的解决办法(四)](https://blog.csdn.net/qq_39097425/article/details/84504507)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文