Image Overlay

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Image Overlay

dataprocess951
Hello,

I am trying to overlay two images with an ImageJ macro. I am running ImageJ 1.51g.

I did a search and found code that I thought would work, but it keeps returning the original image file in the specified output folder.

Code:

run("Add Image... ", "image= Test.tif x=0 y=0 opacity=100 zero");

The image I am trying to overlay is called Test.tif and I am trying to overlay it on all the .tif images in the specified input and then save these files to a separate location.

Any help with this would be greatly appreciated.

Thank you

Reply | Threaded
Open this post in threaded view
|

Re: Image Overlay

MChapman
It may not be the best way to do an overlay in ImageJ, but I simply create a mask of the image that I want to overlay with a threshold so that the overlay region is 0 and the rest is 1.  Then I multiply the mask by the image to be overlayed (this makes the masked region 0 in the image).  Then I do an image calculator and sum the overlay image with the image to be overlayed.

Mike