HOME/Articles/

matplotlib example reading image (snippet)

Article Outline

Python matplotlib example 'reading image'

Modules used in program:

  • import matplotlib.pyplot as plt
  • import numpy as np
  • import pandas as pd

python reading image

Python matplotlib example: reading image

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
from skimage.io import imread, imshow

image = imread('image_8_original.png', as_gray=True)
imshow(image)