import gl gl.resetdefaults() gl.view(16) #open background image gl.loadimage('spm152') #open overlay: show positive regions gl.overlayload('spmMotor') gl.minmax(1, -4, 4) gl.colorname(1, 'blue2red') gl.opacity(1, 80) gl.orthoviewmm(0, 0, 60) gl.zerointensityinvisible(1, 1)
gl.minmax(1, 0, 3) gl.minmax(2, 0, 3) gl.colorname(1, '1red') gl.colorname(2, '3blue') output_dir_path = os.path.join(analysis_path, 'imageSequenceFolders', 'pVal_inv_sig_InDe') if not os.path.exists(output_dir_path): os.mkdir(output_dir_path) y_min = -13.15 y_max = 0 y_step = 0.05 y = y_min count = 0 while y <= y_max: print(y) count = count + 1 print(count) gl.orthoviewmm(0, y, -4) gl.view(2) gl.linewidth(0) gl.colorbarposition(0) filepath = os.path.join(output_dir_path, 'imagenew' + '_' + str(round(count)).rjust(3, '0')) + '_' + str(y) gl.savebmp(filepath) y = y + y_step
#import glob #import imageio #import PIL.Image #from PIL import Image #help(PIL) #PIL.ImageChops #sys.path.append('C:\Users\Enzon\Documents\Projects\MEP\mep-scripts\venv\Lib\site-packages') #import numpy as np #help(np) help(gl) gl.linewidth(1) gl.view(64) round(0.1) nRot = 50 data_path = 'C:/Users/enzon/Documents/Projects/MEP/mep-scripts/Data/Mouse/Processed_Old/' analysis_path = 'C:/Users/enzon/Documents/Projects/MEP/mep-scripts/Data/Mouse/Analysis/imageSequenceFolders/' subjects = [ 'WT_50', 'KO_6', 'KO_3A_2' ] ####################################################################### for subject in subjects: for i in range(5): if i == 0: