Skip to content

Algorithms and ends mapping

Eugene Katrukha edited this page Jun 12, 2026 · 2 revisions

This page contains a bit of "in-depth" explanation/illustration
of algorithms in CurveMorph and ends mapping.
Let's start with a bit more straightforward

XY interpolation

For two ROIs, it re-samples them with the same number of equidistant
points along the normalized length line. The segment number is equal
to the length of the longer ROI in pixels.
Then it linearly interpolates XY coordinates of each resampled point.
The only thing the algorithms needs to know is ends to ends mapping
or corresponence.
Let's see an example, where "first" and "last" ends of ROIs are "aligned".
compare algos max proj

This would be the output for any ends mapping settings:
"Closest" or "Always first/last".
But if the ends of one ROI are switched, then for "Always first/last"
the result will look like:

compare algos max proj

While for the "Closest" it would be the same as in the first picture,
since "first" end of left ROI is the closest to the "last" end of the ROI on the right.

Shape morphing

Clone this wiki locally