From bc87c805042308271dc63b4e609cfcbdd9591787 Mon Sep 17 00:00:00 2001 From: lauraporta <29216006+lauraporta@users.noreply.github.com> Date: Thu, 18 Jul 2024 16:40:03 +0100 Subject: [PATCH] Delete commented method --- derotation/analysis/full_rotation_pipeline.py | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/derotation/analysis/full_rotation_pipeline.py b/derotation/analysis/full_rotation_pipeline.py index 22000a0..990f9cb 100644 --- a/derotation/analysis/full_rotation_pipeline.py +++ b/derotation/analysis/full_rotation_pipeline.py @@ -790,32 +790,6 @@ def plot_rotation_angles(self): ) ### ----------------- Derotation ----------------- ### - def find_center_of_rotation(self): - # concentric_circles = np.max(self.image_stack, axis=0) - # pc_95 = np.percentile(concentric_circles, 95) - # circles_binary = concentric_circles > pc_95 - - # # detect outermost circle - # from skimage.transform import hough_ellipse - - # result = hough_ellipse(circles_binary, accuracy=20, - # threshold=250, min_size=100, max_size=265) - # result.sort(order="accumulator") - - # best = list(result) - # yc, xc, a, b = [int(round(x)) for x in best[1:5]] - - # # draw the ellipse - # from skimage.draw import ellipse_perimeter - - # rr, cc = ellipse_perimeter(yc, xc, a, b, orientation=best[5]) - # concentric_circles[rr, cc] = 1 - - # plt.imshow(concentric_circles) - - # return yc, xc - pass - def rotate_frames_line_by_line(self) -> np.ndarray: """Rotates the image stack line by line, using the rotation angles by line calculated from the analog signals.