@ -217,6 +217,10 @@ class MtorImageAnalysis(QWidget):
def run_gui():
import traceback
try:
app = QApplication(sys.argv)
mia = MtorImageAnalysis()
app.exec_()
@ -242,5 +246,8 @@ def run_gui():
stderr=None,
close_fds=True,
)
except Exception as err:
traceback.print_exc()
input("Press enter to close this window")
finally:
sys.exit()
@ -12,7 +12,7 @@ from .commons import (
def open_as_array(tif_image):
with tif_image.path.open("rb") as filehandle:
image = Image.open(filehandle)
image = Image.open(filehandle).convert(mode="I")
image_array = numpy.array(image, dtype=numpy.int32)
return TifArray(
path=tif_image.path, frame=tif_image.frame, data=image_array
@ -11,7 +11,7 @@ def scan_tifs(parameters):
for tif in tqdm(parameters.tif_list):
with tif.path.open("rb") as filehandle:
mi, ma = image.getextrema()
lowest = min(lowest, mi)
highest = max(highest, ma)