Testing alt.tbo with Atl3_bis 20171112a
import numpy as np
import matplotlib.pyplot as plt
import math
import bim as USTk
DATFile = "ProbeA"
DATA = np.load(DATFile+".npz")
Image, rawSignal = DATA['arr_1'], DATA['arr_0']
IMGs, GoodV, tmp = USTk.CreateRawImgs (Image,5)
plt.figure(figsize=(15,5))
plt.imshow(np.transpose(tmp))
for k in GoodV:
plt.axvline(k, color='w', linestyle='--')
plt.suptitle('Unpacking images in the '+DATFile+' file')
plt.savefig('Unpacking_'+DATFile+".jpg", bbox_inches='tight')
plt.show()
N = len(IMGs)
f, AX = plt.subplots(1, N, figsize=(15,5))
for i in range(N):
tmp = USTk.CreateSC(IMGs[i])
AX[i].imshow(tmp[4])
plt.suptitle('Getting a ultrasound image from a mechanical ATL3 ultrasound probe('+str(DATFile)+')')
plt.savefig('ImagesIn_'+DATFile+".jpg", bbox_inches='tight')
plt.show()