Closed subhajitchatu closed 7 years ago
You're presentation of the experimental input+output is slightly off. What you actually have is:
In general to evaluate the quality of registration you need to use data that is not used by the registration process. In many cases these are pairs of corresponding points in the two coordinate spaces. A somewhat coarser approach is to use two segmentations of the same structures in both coordinate spaces and then evaluate the overlap/surface distance etc. We currently have no better way of evaluating registration.
The approach you are suggesting in the "Thoughts" section is incorrect. Providing the same point set twice means you are expecting the transformation_matrix to be the identity. If you expect the transformation to be the identity then there is no need for registration as the data is already aligned.
Finally, if you only have N transformations and you want to compare them you could use the same similarity metric you used for registration. As the goal is to minimize the similarity measure the transformation that corresponds to the minimal value is the best. This doesn't necessarily mean that it yields the best alignment, it could be that your similarity measure has deeper minima that are far from the correct alignment.
For further information please look into the registration literature (surveys/overviews etc.).
@zivy
Thanks for the reply! Correct me if I am wrong.
"In general to evaluate the quality of registration you need to use data that is not used by the registration process" No I am not telling about a new method. Its all about standard method. I just want to check how well our data set has been registered. Just need that precision. Like A method gives arounf 4mm error after registration, B gives 3mm in our dataset. Thats all I want to know.
Similarity metric can only compare between A,B,C,D but it will never give us the idea how good the registration is. Anyway what I am trying to say is if we apply Rigid Registration it will not take care of local motions as it is more about the global registration. Right?
Now what we have
Fixed image -------> Tx -------> Moving Image
That means if we apply Tx inverse back on moving image we will get an image which will be aligned optimally with the Fixed Image. I mean if we overlay the two image, it should be aligned properly, thats the motivation of registration as per my knowledge. Now the Tx throughly depends on the parameter we are selecting or the optimization algorithm we are using. So that makes the difference in A,B,C,D methods.
Now what I claimed is that if we choose some random points in domain of fixed image and if it is possible to find these points in the target aligned (after applying Tx inverse to moving image) image and if we take difference we can comment about registration accuracy. So I was thinking is it possible to use registration_errors() for this purpose.
Can you please tell how do u recommend to use registration_errors() function. If I have only one dataset, some standard method , I just want to know the error term in mm. As this is multimodal diff image is normally not a good measurement. Rather it would be great if I can show the euclidean distance difference between some points.
"This doesn't necessarily mean that it yields the best alignment, it could be that your similarity measure has deeper minima that are far from the correct alignment." -
What do u mean by deeper minima? When we are applying Gradient Descent , then the objective function a convex one. Right? Which has only one minima which is global also. Correct me if I am wrong.
Thanks
Hi @zivy
I have another simple question. As you suggested multiple box shaped regions of interest can be segmented using the ROIDataAquisition component found in the gui.py module.
If I can put a mask on both fixed image and registered image(applying inverse Tx on moving image) and then Can this function be used for overlap measures(Jaccard, dice) , Hausdroff distance for Image registration evaluation?
Please elaborate.
Thanks
If you are able to identify the exact same box in both datasets then, yes the two "segmentations" are expected to overlap after registration. This would be equivalent to a real segmentation of the same anatomical structure in both images. Then you can use all of the overlap and surface distance measures to evaluate registration. I doubt though that it is easy to identify the same box shaped region in two anatomical images (I am assuming this is the data you are working with and not images of man made structures).
Hi,
This is not an issue, this is regarding a problem I have been encountered in image registration. Let me first discuss my problem in brief.
Experiment :
Thoughts :
Now while I come across this registration_utilities function, I thought if the fixed image is registered with moving image accurately, then ideal case, fixed image coordinate space = registered image coordinate space. Now if we pass some random point from Fixed image in two arguments of registration_errors(fixed_image_random,fixed_image_random,transformation_matrix). Then fixed_image_random will be transformed to a new point set, and will be compared with fixed_image_random in some sort of distance measurements. Should this be a measure for accuracy of registration?
Other Inputs:
Is there any other way to check which method A,B,C,D is better in registration. How can we measure registration accuracy with just