SuperElastix / SimpleElastix

Multi-lingual medical image registration library
http://simpleelastix.github.io
Apache License 2.0
507 stars 149 forks source link

Non-Rigid Registration issue related to background removed images #462

Open reventropy opened 2 years ago

reventropy commented 2 years ago

I'm trying to register some 16-bit microscope images. Following the example here: https://simpleelastix.readthedocs.io/NonRigidRegistration.html works quite well prior to background removal. On the other hand if I do background removal (setting background pixels to zero) and then try to register I end up with a mess of bright (>63k) pixels.

Figure one is before registration and figure 2 is the result after. 1 2

A quick fix would be for me to set a high threshold after registration to remove the hot pixels but I'm reluctant to do that since they range (somewhat) in value. I'm wondering if there's a more rigorous way to fix this?

Thanks.

.