In [1]:
from openpiv import tools, pyprocess, scaling, filters, \
                    validation, process, preprocess
from skimage import io
import matplotlib.pyplot as plt
%matplotlib inline

import numpy as np

from pkg_resources import resource_filename as filename
In [2]:
file_a = filename('openpiv','examples/test4/Camera1-0101.tif')
file_b = filename('openpiv','examples/test4/Camera1-0102.tif')

im_a  = tools.imread( file_a )
im_b  = tools.imread( file_b )

plt.figure(figsize=(11,8))
plt.imshow(np.c_[im_a,im_b],cmap='gray')
Out[2]:
<matplotlib.image.AxesImage at 0x124c8cb80>
In [3]:
plt.figure(figsize=(11,8))


# let's crop the region of interest
frame_a =  im_a[380:1980,0:1390]
frame_b =  im_b[380:1980,0:1390]
plt.imshow(np.c_[frame_a,frame_b],cmap='gray')
Out[3]:
<matplotlib.image.AxesImage at 0x1251454c0>