In [1]:
%pylab inline
from skimage.data import camera
%load_ext autoreload
%autoreload 2
import simrecon_utils as su
In [2]:
data = camera()
In [4]:
imshow(data)
Out[4]:
In [6]:
split_data = su.split_img(data, 64)
rdata = su.combine_img(split_data)
np.array_equal(data, rdata)
Out[6]:
In [17]:
split_data_pad = su.split_img_with_padding(data, 64, 64)
rdata_pad = su.combine_img_with_padding(np.asarray(split_data_pad), 64)
np.array_equal(data, rdata_pad)
Out[17]:
In [18]:
imshow(rdata_pad)
Out[18]:
In [45]:
rdata_pad_win = su.combine_img_with_padding_window(np.ones_like(np.asarray(split_data_pad), dtype=float), 64)
In [46]:
imshow(rdata_pad_win)
plt.colorbar()
Out[46]:
In [47]:
hist(rdata_pad_win.ravel())
Out[47]:
In [49]:
rdata_pad_win.max()
Out[49]:
In [ ]: