Registered movies keep a near-zero band where an online-motion step leaves superpixels unlit

Đang mở
#66 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
54/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

Start with registration/frames.py, especially the num/den frame formation and lineSuperPixelIDs, then trace slap2/onlineMotionXshift to determine how the current scan offset identifies unlit superpixels. Use the affected session data to confirm that edge superpixels with near-zero values become NaN in the registered movies. Check the resulting per-trial mean images and source measurements, and add or update focused registration tests if the existing test structure provides a location.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Registered movies keep a near-zero band where an online-motion step leaves superpixels unlit

In session 780125 (DMD1, 39 trials), SLAP2's online motion correction stepped its X offset from 8 to 11 px between acquisitions 29 and 30 (slap2/onlineMotionXshift, later 12). From acquisition 30 on, the last ~6 columns of one ROI are no longer lit. In the registered movies and the alignment files' meanIM, those pixels hold finite values near 0 (in the trial mean, 0.0–0.9 against 30–50 for the same pixels before the step; roughly a third of the 80 Hz frames are exactly 0) rather than NaN. Pixels just beyond them, which the pattern never covered, are NaN as expected. The registration's across-trial alignment moves that spot by less than 1 px, so nothing downstream sees the step as motion.

The values are finite because frame formation takes each pixel's weight from the static scan pattern (lineSuperPixelIDs). A pixel without samples does come out NaN, in GIAnT-Python (registration/frames.py, num/den with den 0) as in GIAnT-MATLAB. A superpixel that the shifted scan no longer lights still records valid samples, only with almost no photons, so it is formed like any other pixel. This last point is inferred from the code and from the values. I have not checked it against the acquisition's scan geometry.

Everything made from the registered movies inherits the band: the per-trial mean images, SILo's fits of sources at that ROI's end, the F0 network's baseline and anything exported from these. In the spine-size readout, sources reaching into the band shrank by 40–80% from acquisition 30 on, in both channels. Their dips were strong enough to change the trend shared by all sources. #65 now detects such bands in the readout and leaves them out, but the band is still in the movies and in SILo's results.

A fix in registration could mark, per trial (or per cycle), the superpixels that the current online offset moves outside the lit part of the scan, and give them NaN. If the scan's extent is not recorded in a form that allows this, the band can also be found from the data, as the spine readout does: per trial, pixels far below their usual level in every channel and connected to the pattern's edge. The same applies to GIAnT-MATLAB's slap2FrameSums / MultiRoiRegistration (AllenNeuralDynamics/GIAnT-MATLAB#61).

🤖 Generated with Claude Code

Ngôn ngữ chính
Python
Star
0
Fork
1
Merge trung bình
4 giờ 48 phút
Pull request đã merge (30 ngày)
55

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AllenNeuralDynamics/GIAnT-Python

Tất cả issue của AllenNeuralDynamics/GIAnT-Python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.