@ -127,8 +127,8 @@ def find_guard_threshold(data_frame, parameters):
guard_counts = numpy.concatenate([[0], guard_data[0]]).astype(
numpy.float16
)
guard_edges = guard_data[1]
pyplot.clf()
seaborn.lineplot(x=guard_edges, y=guard_counts)
pyplot.title("Histogram of Guard Avarages (not filtered)")
@ -57,7 +57,7 @@ def safe_cut(tif_array, parameters):
with cut_path.open("wb") as outhandle:
cut_array = tif_array.data[top:bottom, left:right]
cut_img = Image.fromarray(cut_array)
cut_img.save(outhandle, compression='tiff_lzw')
cut_img.save(outhandle, compression="tiff_lzw")
del cut_img