Skip to content

Commit 4a0638d

Browse files
committed
Comment on transforms
1 parent 311e82d commit 4a0638d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/murfey/workflows/tomo/tomo_metadata.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,13 @@ def register_search_map_in_database(
201201
# Flip positions based on camera type
202202
camera = getattr(Camera, machine_config.camera)
203203
if camera == Camera.FALCON:
204+
# Flip in y
204205
corrected_vector = np.matmul(np.array([[1, 0], [0, -1]]), corrected_vector)
205206
elif camera == Camera.K3_FLIPX:
207+
# Flip in x
206208
corrected_vector = np.matmul(np.array([[-1, 0], [0, 1]]), corrected_vector)
207209
elif camera == Camera.K3_FLIPY:
210+
# Inversion (camera mounted upside-down)
208211
corrected_vector = np.matmul(np.array([[0, 1], [1, 0]]), corrected_vector)
209212

210213
# Convert from metres to pixels

0 commit comments

Comments
 (0)