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.
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?
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.
![2](https://user-images.githubusercontent.com/13837131/155619911-894c45d2-1ff4-4818-8a63-0dabe71a26b2.gif)
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.
.