Skip to content

Motion correction parameter to maintain the same image size #1244

Closed Answered by kfouke1
kfouke1 asked this question in Q&A
Discussion options

You must be logged in to vote

With this data, I have actually been running Suite2p for source extraction. These motion correction parameters are actually inherited by Matt, which works on the data that we collect, but for my photostimulation work I do need the full pixel size for analysis.

This is the code that I run for motion correction:

def run_movement_correction(
    base_fish,
    caiman_ops=None,
    keep_mmaps=False,
    force=False,
):
    import caiman as cm
    from tifffile import imsave   

if "rotated_image" in base_fish.data_paths.keys():
        original_image_path = base_fish.data_paths["rotated_image"]
    else:
        original_image_path = base_fish.data_paths["image"]

if not caiman_ops:
        c…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@kfouke1
Comment options

@EricThomson
Comment options

@kfouke1
Comment options

Answer selected by EricThomson
@EricThomson
Comment options

@kfouke1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants