Testing alt.tbo with Atl3_bis 20171112a

import numpy as np
import matplotlib.pyplot as plt
import math
import bim as USTk
DATFile = "ProbeA"
## Creates the npz files from the DAT files, with reshaped signal, and filtered images
# Raw,Hilbed = USTk.CreateUsPack(DATFile+".DAT") 
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()

png

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()

png





results matching ""

    No results matching ""