ecr05 / MSM_HOCR

Multimodal Surface Matching with Higher order Clique Reduction: Mac OS and Linux binaries
35 stars 10 forks source link

How to limit the amount of deformation? #2

Closed r03ert0 closed 6 years ago

r03ert0 commented 6 years ago

Hello! Thank you for MSM : ) I'm working with the version that comes with FSL, and although it often works very nicely, sometimes there are regions that get veery large deformations. Is there a way of limiting the maximum amount of deformation allowed? I tried lowering down the lambdas, from 0,0.1,0.2,0.3 to 0,0.01,0.02,0.03, but I still get the very large deformations... Would this improve if I move to msm_hocr?

ecr05 commented 6 years ago

Hi Roberto,

You must increase regularisation, not decrease. Not knowing your data it is difficult to be confident in what values to suggest, but try running 0,0.3,0.4,0.5. Generally I optimise by running one resolution level at a time using the --levels parameter so run --levels=2 (as 2 is your first discrete level) with different regularisation parameters for the second level i.e. currently its 0.1, try 0.2, 0.3, 0.4 ... 0.5 then move onto the third level.

The regularisation in msm_hocr is much more robust, and will lead to better alignment with lower distortions, particularly for noisy data such as fMRI. However, if you are just working with folding patterns I think the FSL version will work well for you - just increase the regularisation somewhat. Note, the optimisation used in the FSL version means it is also much faster to run.

Let me know if you need more help

Thanks

Emma

On 9 January 2018 at 12:00, Roberto Toro notifications@github.com wrote:

Hello! Thank you for MSM : ) I'm working with the version that comes with FSL, and although it often works very nicely, sometimes there are regions that get veery large deformations. Is there a way of limiting the maximum amount of deformation allowed? I tried lowering down the lambdas, from 0,0.1,0.2,0.3 to 0,0.01,0.02,0.03, but I still get the very large deformations... Would this improve if I move to msm_hocr?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ecr05/MSM_HOCR_macOSX/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AP5rvC6U5k4krMcALingSWyesVHiGFE9ks5tI1T2gaJpZM4RXuRX .

r03ert0 commented 6 years ago

now it works much better : )

I'm registering brains of ferrets. I have a small one and a larger one. The code I use to generate the spheres makes spheres which keep the original mesh volume (i don't remember why...). Is it a problem if the two spheres have different sizes? Could this add to the distorsion?

ecr05 commented 6 years ago

I'm fairly sure msm rescales the spheres to have same radius. You can check the output?

On 9 Jan 2018 13:27, "Roberto Toro" notifications@github.com wrote:

now it works much better : )

I'm registering brains of ferrets. I have a small one and a larger one. The code I use to generate the spheres makes spheres which keep the original mesh volume (i don't remember why...). Is it a problem if the two spheres have different sizes? Could this add to the distorsion?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ecr05/MSM_HOCR_macOSX/issues/2#issuecomment-356283446, or mute the thread https://github.com/notifications/unsubscribe-auth/AP5rvHNl19l4PYzHx_4j7n3db-hw2tziks5tI2lTgaJpZM4RXuRX .

r03ert0 commented 6 years ago

(is it ok to post issue about MSM here or should I better use the FSL e-mail forum?)

On Tue, Jan 9, 2018 at 2:42 PM, Emma Claire Robinson < notifications@github.com> wrote:

I'm fairly sure msm rescales the spheres to have same radius. You can check the output?

On 9 Jan 2018 13:27, "Roberto Toro" notifications@github.com wrote:

now it works much better : )

I'm registering brains of ferrets. I have a small one and a larger one. The code I use to generate the spheres makes spheres which keep the original mesh volume (i don't remember why...). Is it a problem if the two spheres have different sizes? Could this add to the distorsion?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ecr05/MSM_HOCR_macOSX/issues/2# issuecomment-356283446, or mute the thread https://github.com/notifications/unsubscribe-auth/AP5rvHNl19l4PYzHx_ 4j7n3db-hw2tziks5tI2lTgaJpZM4RXuRX

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ecr05/MSM_HOCR_macOSX/issues/2#issuecomment-356286944, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNCTERUNmkcNqF_7yzwCHRM__HI3aO3ks5tI2y4gaJpZM4RXuRX .

ecr05 commented 6 years ago

Yes, of course. It is easier for me as I do not yet have a filter on the FSL list for MSM emails and so might miss them.

Longer term I should move to the FSL list as that way everyone will see and be able to search for the responses, but until there is sufficient critical mass, this route is fine.

On 10 January 2018 at 17:31, Roberto Toro notifications@github.com wrote:

(is it ok to post issue about MSM here or should I better use the FSL e-mail forum?)

On Tue, Jan 9, 2018 at 2:42 PM, Emma Claire Robinson < notifications@github.com> wrote:

I'm fairly sure msm rescales the spheres to have same radius. You can check the output?

On 9 Jan 2018 13:27, "Roberto Toro" notifications@github.com wrote:

now it works much better : )

I'm registering brains of ferrets. I have a small one and a larger one. The code I use to generate the spheres makes spheres which keep the original mesh volume (i don't remember why...). Is it a problem if the two spheres have different sizes? Could this add to the distorsion?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ecr05/MSM_HOCR_macOSX/issues/2# issuecomment-356283446, or mute the thread https://github.com/notifications/unsubscribe-auth/AP5rvHNl19l4PYzHx_ 4j7n3db-hw2tziks5tI2lTgaJpZM4RXuRX

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ecr05/MSM_HOCR_macOSX/issues/2# issuecomment-356286944, or mute the thread https://github.com/notifications/unsubscribe- auth/ACNCTERUNmkcNqF_7yzwCHRM__HI3aO3ks5tI2y4gaJpZM4RXuRX .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ecr05/MSM_HOCR_macOSX/issues/2#issuecomment-356676119, or mute the thread https://github.com/notifications/unsubscribe-auth/AP5rvDxXBEVPzB9e9MTqj9DBtT0mbbw5ks5tJPPsgaJpZM4RXuRX .

r03ert0 commented 6 years ago

cool : ) I'll go and close this issue, because you already answered how to minimise deformation (by using larger lambda values, not smaller one)