반응형
In matlab, it is very easy to show an image. However, in python, you need to know which library do I have to import before plotting the graph.
In python, skimage library supports showing an image like matlab.
Here is an example. Enjoy!
import skimage.io as io
img = io.imread(file_name)
io.imshow(img)
io.show()
'Python' 카테고리의 다른 글
how to plot a histogram : matplotlib (0) | 2017.09.26 |
---|---|
How to resize an image : skimage library (0) | 2017.08.01 |
How to plot a graph : mathplotlib library (0) | 2017.07.21 |
[NYU depth] How to read NYU depth dataset in python (0) | 2017.07.20 |
How to write values in csv files (0) | 2017.07.18 |