convert between PIL Image and ndarray
来源:互联网 发布:美国红脖子 知乎 编辑:程序博客网 时间:2024/06/05 06:31
arr = imread(‘a.jpg’)
img = Image.fromarray(arr)
arr = np.asarray(img)
References:
1. http://effbot.org/zone/pil-changes-116.htm
2. http://stackoverflow.com/questions/384759/pil-and-numpy
0 0
- convert between PIL Image and ndarray
- convert between characters and values
- convert between RGB565 and RGB888
- PIL.Image和np.ndarray图片与Tensor之间的转换
- Convert Character between Upper and Lower
- Matrix to convert between HSL and RGB
- Matrix to convert between HSV and RGB
- How to convert between TDes8 and TDes16
- Groovy Convert between string and date
- Convert between JSON and String in Javascript
- C++ convert between string and CString (LPWSTR)
- Transforming between image coordinates and world coordinates
- python ndarray image process
- Convert Image to Base64 String and Base64 String to Image
- Convert Base64 to Image and Image to Base64 in Java
- ITU601 Matrix to convert between YCbCr and RGB
- ITU709 Matrix to convert between YCbCr and RGB
- EBU Matrix to convert between YCbCr and RGB
- 管理android应用的自启动应用---自启动管理
- 菜狗的学习之路
- Programming the Thread Pool in the .NET Framework
- 解决 id_rsa 权限不够
- Object 的 registerNatives() 方法的作用
- convert between PIL Image and ndarray
- 一个COM例子
- Windows8.1自定义右键发送到菜单
- Abstract Data Type(ADT)
- Android PullToRefreshView巴黎埃菲尔铁塔效果
- openfire2
- redhat静态Ip配置
- 总结
- 盒模型代码简写