Further options for the transformations#14
Further options for the transformations#14dzenanz merged 3 commits intoInsightSoftwareConsortium:masterfrom
Conversation
|
Why does 67b6b68 (similar to while 5759bec works? |
|
You might need a |
1cd9c24 to
ce8459d
Compare
|
Many thanks @dzenanz for that hint, works well now. |
No changes needed for itkCartesianToPolarTransform, because acos is only defined for [0, pi]
a3b936b to
16f7334
Compare
16f7334 to
a6ee109
Compare
|
NumFOCUS copyright is unrelated. Merging. |
|
Thanks @dzenanz for merging. Was it intended that it was a fast-forward and not a merge commit? This way the PR number (and its discussion and tests) is not recorded in the history. |
|
It was intentional. I prefer rebase-and-merge because it does not produce merge commits which are almost as numerous as content commits. I did not realize this makes it hard to work back from which PR they came. Your comment made me realize that merge is preferable when there is significant discussion in a PR, so thanks. |
|
Yes, I used to wonder what |
|
Done |
This PR adds the option to scale the transform with the radius. This allows to use it with the
itkResampleImageFilterto realize a transformation from cart. coords to polar/cylindrical coords (unfold, similar to http://hdl.handle.net/10380/3605) such that the arc-length/surface area is preserved.It also adds the option to return NaN for values outside [-pi,pi], such that
itkResampleImageFilteruses theDefaultPixelValueinstead of repeating the pattern periodically, and the option to specify an offset for the angle allowing to adjust the center of the output.