jni / affinder

Quickly find the affine matrix mapping one image to another using manual correspondence points annotation
https://jni.github.io/affinder/
BSD 3-Clause "New" or "Revised" License
18 stars 13 forks source link

Allow alignment of mixed dimensionality layers #41

Closed jni closed 9 months ago

jni commented 2 years ago

Sometimes we want to align a projection to its 3D volume, or a 2D shape with measurements that change over time, e.g. the segmentation of a neuron aligned with a calcium imaging time series. What to do is different in each case (treat the 2D image as a very thin 3D slice, or treat it as "limited" to the two right-aligned dimensions), and this could be controlled by an option switch.

thanushipeiris commented 2 years ago

@jni Could you please provide a bit more explanation about how these two use cases differ? I am unfamiliar with them.

I think I understand what you mean by

treat the 2D image as a very thin 3D slice

That's like if you did a low res scan of a 3D volume and a high res imaging of an ROI in 2D then wanted to position your ROI within the larger volume. But I don't get

treat it as "limited" to the two right-aligned dimensions

Is the neuron segmentation in 2D while the calcium imaging timeseries in 2D + t? So you'd just want to copy the same neuron segmentation over time?

jni commented 2 years ago

Yep, both your interpretations are correct. The segmentation applies equally to every time point. One specific example that triggered this issue was aligning an island's contour coordinates (a shapes layer) with a time-series of surface temperature on the island.