-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to enable meshconvert to warp mesh files. #2617
base: dev
Are you sure you want to change the base?
Conversation
@@ -81,6 +85,10 @@ void run () | |||
case 2: transform->set_voxel2real(); break; | |||
case 3: transform->set_real2voxel(); break; | |||
case 4: transform->set_fs2real (); break; | |||
case 5: | |||
transform->set_warp(); | |||
transform->set_warp_image(Image<float>::open(opt[0][1])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transform->set_warp_image(Image<float>::open(opt[0][1])); | |
transform->set_warp_image(H.get_image<float>()); |
Also transform->set_warp()
shouldn't be necessary; it should be possible to set that internal flag when set_warp_image()
is called.
|
As suggested by @Lestropie, this enhancement enables users to specify a new mode for
meshconvert
through setting-transform warp <warp image>
to apply a deformation field to mesh files. The approach is similar totcktransform
. It works well on my data!