Hello,
I recently installed the Magick.NET library for an application I am developing for high throughput image screening.
one of the requirements is to be able to overlay multiple images (no more than 3). The original images are scanned in gray-scale 16bits channel so the first thing I do is convert them to 8bits, RGB mode image. Then each image needs to be colorized (either red, green or blue).
The last step is to overlay them (order is not important). However, I've been unsuccessful in doing so and I am hoping someone can help me.
This is what I tried so far:
MagickImage img1 = new MagickImage(filename1)
MagicImage img2 = new MagickImage(filename2);
//first attempt
MagickImageCollection col = new MagickImageCollection() {img1, img2};
col.Merge(); // caused the result image to be fully colorized
// second attempt
MagickImageCollection col = new MagickImageCollection() {img1, img2};
col.Combine(); // the RGB colors were combined into the resulting color.
// third attempt
img1.Composite(img2, Gravirt.Center); // generated a mesh of RGB colors
I don't really have much image processing experience so I apologize in advance for not being able to use proper terminology. But what I am really trying to achieve here is to overlay the pixels of one image with the pixels of the other image.
I tried to upload images to show you what I mean by overlaying pixels but it doesn't seem to work.
I hope you can help me.
Thanks,