Neural-Systems-at-UIO / nutil

https://nutil.readthedocs.io/en/latest/
GNU General Public License v3.0
12 stars 5 forks source link

Nonlinear coordinates - fix error to speed up extraction #292

Closed sharoncy closed 1 year ago

sharoncy commented 1 year ago

Gergely pointed out that coordinate extraction is not set up optimally in Nutil, it recalculates the deformation field for each pixel (only needs to be done once). I don't understand the details here, great if @leuat and @Tevemadar could discuss and get this fixed.

Tevemadar commented 1 year ago

A possible modification is that I move the triangulation so it happens immediately when the descriptor file is loaded.

leuat commented 1 year ago

This has been implemented. The CoordinateTransform object is now shared in a map, and will only be initialised on creation.