Skip to content

Unwarper#12

Merged
huangziwei merged 8 commits into
mainfrom
unwarp
Feb 23, 2026
Merged

Unwarper#12
huangziwei merged 8 commits into
mainfrom
unwarp

Conversation

@huangziwei

@huangziwei huangziwei commented Feb 12, 2026

Copy link
Copy Markdown
Collaborator

This RP added an approximate1 inverse of warped nodes (unwarp_nodes and unwarp_skeleton).

Footnotes

  1. It's just an approximation because the algorithm from the original MATALB implementation uses per-node local polynomial least-squares fitting for the forward warping, which can not be exactly reversed.

Copilot AI review requested due to automatic review settings February 12, 2026 10:49
@huangziwei huangziwei changed the title [WIP] Unwarper + New Warping Mode [WIP] Unwarper Feb 12, 2026
@huangziwei
huangziwei removed the request for review from Copilot February 12, 2026 10:49
Copilot AI review requested due to automatic review settings February 12, 2026 12:27

This comment was marked as spam.

@huangziwei huangziwei changed the title [WIP] Unwarper Unwarper Feb 19, 2026
@jonathanoesterle

jonathanoesterle commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

I tested it on an EW2 skeleton:
image
Seems good

@jonathanoesterle

jonathanoesterle commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

For the toy data. These might be quite far away from the SAC bands at the boundaries and where the tissue is warped the most.

image

So far away from the SACs it can actually fail, as we expected

@jonathanoesterle

Copy link
Copy Markdown
Contributor

Here is a HC, so quite far away from the SACs:
image

@jonathanoesterle

Copy link
Copy Markdown
Contributor

And a GLuMI cell:
image

@huangziwei

Copy link
Copy Markdown
Collaborator Author

For the purpose we intended (putting post-processed, unwarped skeletons back to the neuroglancer for visualization only), a bit of errors is tolerable (unless someone wants to do analysis on the unwarped skeletons, but why?). I will merge it now and make a new release (v0.2.5).

@huangziwei
huangziwei merged commit 294b0d5 into main Feb 23, 2026
4 checks passed
@huangziwei
huangziwei deleted the unwarp branch March 3, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants