np.array(gray, "uint8")
时间: 2024-04-25 11:25:20 浏览: 93
np.array(gray, "uint8")是将灰度图像gray转换为np.uint8类型的数组。这种转换可以通过使用numpy库中的array函数来实现。在这种情况下,将灰度图像gray的数据类型更改为np.uint8,以便在后续的图像处理中使用。\[2\]
#### 引用[.reference_title]
- *1* [OpenCV | 医学图像处理: np.uint8与np.uint16](https://blog.csdn.net/apfew/article/details/130774334)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [【计算机视觉】图像膨胀腐蚀](https://blog.csdn.net/liudongdong19/article/details/108954068)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文