kushalkolar / MESmerize

Platform for Calcium Imaging analysis. DEPRECATED.
GNU General Public License v3.0
58 stars 14 forks source link

[BUG] ROIs are rotated 90degrees using CNMF #83

Closed cawarwick closed 9 months ago

cawarwick commented 2 years ago

Describe the bug When running CNMF on a 3D image, (in this case 7 Z-planes and 500 Time-frames) the output is rotated 90 degrees relative to the image.

To Reproduce

  1. Download the test files: https://www.dropbox.com/sh/klpfxg9mgcu0iw2/AAAExCvJBX6cyr3DhZvUXLfya?dl=0
  2. Load Warwick_test.tif using asarray and choose json_minimal format. This file should be loaded used a custom Image Axes order of tzyx, although the bug persists using the default order of tzxy so that isn't actually an issue. There should be 7 z-planes in this image.
  3. Make a batch and run default settings CNMF (the specific CNMF settings don't seem to matter)
  4. View the finished CNMF and the ROIs should be rotates 90 degrees relative the image.
  5. image

Expected behavior Using a single Z-plane for CNMF the ROIs are lined up correctly and I expected this to occur. image

**Operating System & specs (CPU, RAM etc.).

Details about your Mesmerize install -I am using the VirtualBox VM of Mesmerize