Your script works really great on our machines. One more thing, my research group has access to a cluster and we'd love to run your alignment program on it. I was wondering how difficult would it be to change the .c files so that they can also be compiled on Linux. Any thoughts on this issue?
Thanks a lot for sharing this great piece of work with us. This is a very nice contribution to the Mathworks file exchange repository.
I have one question about your code though. I am looking at your submission on Mar 4. When I run one of your examples, e.g. example_2d_nonrigid_1.m, the results figure shows four images, and I am not sure I understand what is being displayed.
Shouldn't 'transformed image 1' (Icor in your code) be the result of registering Image 1 (I1) onto image 2 (I2)? If so, 'transformed image 1' should look similar to 'image 2', right? However, in your figure 'transformed image 1' resembles more image 1 than image 2. Am I missing something? Is the registration really working in this example?
Hi Tianli, very nice and useful code. A quick comment about the memory leak issue. Aside from the glDeleteLIsts, you might also want to delete the depth texture in deconstructor of OffscreenGL. That, together with the list deleting, fixed my memory leak issue.