In my scenario i have two tiff image in different location say
c:/temp/img1.tiff
and x:/temp/img2.tiff
.
I need to merge these imag
There could be a couple ways to "merge" images. Here's a couple in pseudocode:
var NewImage = new Image();
ForEach (curPixel in img1)
{
var newColor = new Color();
newColor.RGB = (Pixel.Color.RGB + img2.PixelAt(curPixel.Location).Color.RGB) / 2
NewImage.PixelAt(curPixel.Location) = new Pixel(newColor);
}
///OR
int objCounter = 0;
ForEach (curPixel in Image)
{
if(objCounter % 2 == 0){
NewImage.PixelAt(curPixel.Location) = img1.PixelAt(curPixel.Location);
} else {
NewImage.PixelAt(curPixel.Location) = img2.PixelAt(curPixel.Location);
}
}