import numpy as np import os pg.mkQApp() ## Define main window class from template path = os.path.dirname(os.path.abspath(__file__)) uiFile = os.path.join(path, 'imagingAnalysis.ui') WindowTemplate, TemplateBaseClass = pg.Qt.loadUiType(uiFile) import tifffile import numpy as np import db_access as dba fly_db = dba.get_db() default_rframe_data = { 'a1': np.array([51.5848967, -5.93928407]), 'a2': np.array([-0.09151179, 88.42505672]), 'p': np.array([26.66908747, 34.43488385]) } stacked_muscles = tifffile.TiffFile('stacked_muscles.tiff') overlay = np.transpose(stacked_muscles.asarray(), (1, 0, 2))[:, ::-1].astype(np.float32) #tiff_file = '/volumes/FlyDataB/FlyDB/Fly0212/T2_trial1_ND_04_1ms_exposure/T2_trial1_ND_04_1ms_exposure_MMStack.ome.tif' #tiff_file_name = '/media/FlyDataB/FlyDB/Fly0267/T2_trial1_ND_04_100us_exposure_td_refstack/T2_trial1_ND_04_100us_exposure_td_refstack_MMStack.ome.tif'
from pyqtgraph.Qt import QtCore, QtGui#QStringList,QString import numpy as np import os pg.mkQApp() ## Define main window class from template path = os.path.dirname(os.path.abspath(__file__)) uiFile = os.path.join(path, 'imagingAnalysis.ui') WindowTemplate, TemplateBaseClass = pg.Qt.loadUiType(uiFile) import tifffile import numpy as np import db_access as dba fly_db = dba.get_db() default_rframe_data = {'a1': np.array([ 51.5848967 , -5.93928407]), 'a2': np.array([ -0.09151179, 88.42505672]), 'p': np.array([ 26.66908747, 34.43488385])} stacked_muscles = tifffile.TiffFile('stacked_muscles.tiff') overlay = np.transpose(stacked_muscles.asarray(),(1,0,2))[:,::-1].astype(np.float32) #tiff_file = '/volumes/FlyDataB/FlyDB/Fly0212/T2_trial1_ND_04_1ms_exposure/T2_trial1_ND_04_1ms_exposure_MMStack.ome.tif' #tiff_file_name = '/media/FlyDataB/FlyDB/Fly0267/T2_trial1_ND_04_100us_exposure_td_refstack/T2_trial1_ND_04_100us_exposure_td_refstack_MMStack.ome.tif' class Basis(dict): def __setitem__(self,key,item): try: