-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Point based registration #1222
Comments
Did you look at this example where .csv files are used as input into a point set metric? |
Thank you for your reply. I have carefully studied the 'chicken' example. The three codes in this example use the nii.gz file in the form of grid as the input of point set. I don't see an example where CSV files can be input into ICP or PSE. If I change the fixedpoint or movingpoint file in the example from nii.gz file to CSV file, the file cannot be read. |
What is the format of your csv file? And please post the actual error message. |
Please post the fixed and moving point set files. |
The actual .csv files, not images. |
What I provided before is a screenshot of the contents of the CSV file. The following is the original file: |
It took me a bit to remember that the labeled point set reader doesn't take .csv files. Input should be a space-delimited file (no header) with a .txt filename suffix. I'm attaching your modified files. Please try these. |
I tried the .txt file you gave, and the program can run normally. Thank you very much for your help! |
I want to realize the function of calibration point assisted image registration, similar to this form: -m ICP[${fixedPoints},${movingPoints},1] I try to use ICP + Mi parameters for image registration. I hope that the internal marker points are as close as possible during image registration, but adding ICP parameters does not help the distance of marker points. I don't know what's wrong. Here's my code: |
The wiki page is wrong. I will fix it If the weights are 0.6 and 0.4 then the first metric has more weight. If they are 0.5 and 0.5 they are equal. The weights are normalized so it's also valid to have equal weights of (1,1). Weights (2,1) would weight the first metric 2/3 and the second 1/3. |
Thank you for your answer. I found that the writing order of parameters will lead to different results, such as: -m ICP[${fixedPoints},${movingPoints},1] Two different writing methods in the program will get different results. Although they have the same meaning.Why does this happen? Which parameter should I put in the first place and which in the second place? |
If you think that's strange, you should try running it twice without changing the order. |
I tried a simple affine registration, and the results of different orders are really different. At the same time, I also ran the program twice without changing the order, and the results did not change. This is my code. I don't know if there's anything wrong: |
Outside of the well-known random perturbations associated with running the |
If you use multiple threads, MI metrics will differ between runs. I'm not sure about ICP. https://github.com/ANTsX/ANTs/wiki/antsRegistration-reproducibility-issues I would start by taking the affine out of the equation. Run the affine part only, save the output transform, and check the results. Then try this:
To quantify differences, You might also want to rethink |
Hi,
Thank you for your excellent work, but I have a problem using it. When I use ICP points for auxiliary matching, my file is a point set in CSV or TXT format, which can not be directly input into ICP[fixedPointSet,movingPointSet,metricWeight,<samplingPercentage=[0,1]>,<boundaryPointsOnly=0>], but needs to be converted into grid. Can I only convert the point set into grid image for ICP registration, or is there an error in my operation. Because I want to be able to input point sets directly, not a grid composed of point sets.
Finally, I want to realize point-based auxiliary registration:
-m mattes[ fixed.nii.gz, moving.nii.gz, 1 ] -m ICP [fixedPoints.csv, movingPoints.csv,1]
Thanks
The text was updated successfully, but these errors were encountered: