Skip to content
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

Transformation On PointSets (-rs) #17

Open
faeze-el opened this issue Jul 21, 2020 · 2 comments
Open

Transformation On PointSets (-rs) #17

faeze-el opened this issue Jul 21, 2020 · 2 comments

Comments

@faeze-el
Copy link

faeze-el commented Jul 21, 2020

I used the following commands for registration and it worked perfectly. After that, I applied transformation (warp(affine)) on pointset like .vtk or .obj formats but there is a problem that the result (vtkresult.vtk) is exactly the same as MovingImg and it seems that the transformation doesn't have any effect on the MovingImg.vtk. Would you help me with applying transformation on pointset?

greedy -d 3 -a -i fixedImg.nrrd MovingImg.nrrd -dof 12 -o affinematrix.mat -m SSD -ia-image-centers -n 100x0 -float
greedy -d 3 -m SSD -i fixedImg.nrrd MovingImg.nrrd -it affinematrix.mat -o warp.nii.gz -oinv inverse_wrap.nii.gz -n 100x0 -float
greedy -d 3 -rf fixedImg.nrrd -rm MovingImg.nrrd finalOutput.nrrd -ri LABEL 0.2vox -r warp.nii.gz affinematrix.mat -float
_

before registration .nnrd images:
https://drive.google.com/file/d/1UP0-A2XK2aumJQl1N0qR5_MsYO0KEep5/view?usp=sharing

after registration .nrrd images:
https://drive.google.com/file/d/1e4lmPDTOqng6octnIxqDyCw2f8paalaz/view?usp=sharing

transformation on vtk:
greedy -d 3 -rf fixedImg.nrrd -rs MovingImg.vtk vtkresult.vtk -r warp.nii.gz affinematrix.mat

@pyushkevich
Copy link
Owner

pyushkevich commented Jul 21, 2020 via email

@faeze-el
Copy link
Author

faeze-el commented Jul 22, 2020

thanks @pyushkevich for quick reply.
I tried this:
greedy -d 3 -rf fixedImg.nrrd -rs MovingImg.vtk vtkresult_affine.vtk -r affinematrix.mat
But the "vtkresult_affine.vtk" is exactly the same as "MovingImg.vtk". I also compared them using notepad++.

Greedy Version 1.0.1, Release date: Mar 21, 2019. (the greedy.exe file on itk-snap 3.8)

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

No branches or pull requests

2 participants