#!/usr/bin/python
import cv2 as cv
import numpy as np
from numpy import diff
from matplotlib import pyplot as plt
from scipy.signal import savgol_filter
#import imgshowcv


def initimages(directory):
    images = []
    for x in range(1, 6):
        img = cv.imread(directory %x)
        img = np.array(img)
        images.append(img)

initimages('/media/sf_VboxGemein/Calibration/rpi%s.jpg')

#img = images[0]
#print(shape(img))

def showimage(n, img):
    plt.figure(n)
    plt.imshow(img)
    plt.show()

showimage(2, images[0])

def img(n):
    img = plt.imread(n)
    plt.imshow(img, cmap='gray', interpolation='bicubic')
    plt.show()


print 'done'
