I have written my own software in C# for performing microscopy imaging. See this screenshot.
The images that can be seen there are of the same sample but recorded through physically different detectors. It s crucial for my experiments that these images be exactly aligned. I thought the easiest would be to somehow blend/substract the two bitmaps but this doesn’t give me good results. Therefore I am looking for a better way to do this.
It might be useful to point out that the images exist as arrays of intensities in memory and are converted to bitmaps for on-screen painting to my self written image control.
I would greatly appreciate any help!
I got around solving this some time ago… Since I only need to verify that two images from two detectors are perfectly aligned and since I do not have to try and align them if they are not I solved it like this:
1) Use the Aforge Framework and apply a grayscale filter to both images. This will average the RGB values for each pixel.
2) On one image apply a ChannelFilter to retain only the red channel.
3) On the other image, apply a ChannelFilter to retain only the green channel.
4) Add Both images.
Here are the filters I used, I leave it to the reader to apply them if needed (it’s trivial and there are examples on the Aforge website).
When significant features are present in both images I want to check, they will show up in Yellow thus doing exactly what I need.
Thanks for all the input!