I have just been trying to register an image to a template using your script, but unfortunately it did not work. I used all the default options. Here is a summary of the output:
Start Affine part of Non-Rigid registration
...
Optimizer Results
Algorithm Used: limited memory BFGS (L-BFGS)
Exit message : Change in the objective function value was less than the specified tolerance TolFun.
... (repeat twice)
Start non-rigid b-spline grid registration
Current Grid size : 7x7
...
Optimizer Results
Algorithm Used: limited memory BFGS (L-BFGS)
Exit message : Change in the objective function value was less than the specified tolerance TolFun.
...
Registration Refinement
Current Grid size : 11x11
...
Optimizer Results
Algorithm Used: limited memory BFGS (L-BFGS)
Exit message : Line search cannot find an acceptable point along the current search
...
Registration Refinement
Current Grid size : 19x19
...
Optimizer Results
Algorithm Used: limited memory BFGS (L-BFGS)
Exit message : Line search cannot find an acceptable point along the current search
Then the program quits without doing any registration, as far as I can tell. I was just wondering whether you had any suggestions that I might try. For example, could I increase the specified tolerance TolFun somehow?
I tried this tool today, but I could not retrieve the output. All it gave me was a single number... Any ideas? I need an output telling me the ROI co-ordinates!
This sounds like what I am looking for, unfortunately I do not see my image when calling imSelectRoi(myimg);
I am using a 512x512 double image, which imshow displays without problems. Any ideas?