plt.imshow(mask,'gray')
时间: 2023-09-29 17:06:57 浏览: 231
23.傅里叶变换之高通滤波和低通滤波.pdf
plt.imshow(mask,'gray')是一个使用matplotlib库来显示灰度图像的方法。其中,mask是一个灰度图像的数组。通过使用cmap参数将颜色映射设置为'gray',可以将图像显示为灰度图像。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [python plt.imshow函数显示图像颜色失真](https://blog.csdn.net/jzwong/article/details/115874822)[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* [第七节 图像处理之直方图计算](https://download.csdn.net/download/zhulichao1/12012755)[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* [python中plt.imshow(img)显示不了图片](https://blog.csdn.net/zqx951102/article/details/88861375)[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 ]
阅读全文