ValueError: win_size exceeds image extent. Either ensure that your images are at least 7x7; or pass win_size explicitly in the function call, with an odd value less than or equal to the smaller side of your images. If your images are multichannel (with color channels), set channel_axis to the axis number corresponding to the channels.
时间: 2024-02-16 07:01:33 浏览: 394
python学习笔记-面向对象高级编程-20200324
这是一个错误提示,通常发生在使用Python中的scikit-image库中的函数时。错误提示说明窗口大小(win_size)超出了图像的范围。建议确保图像至少为7x7,或在函数调用中显式传递win_size参数,其必须为奇数且小于或等于图像较小的一侧。如果图像是多通道(具有颜色通道),则应设置channel_axis参数为对应于通道的轴编号。
阅读全文