Macro/plugin for image calculations: is this possible?
Posted by J PIke on May 11, 2007; 6:30pm
URL: http://imagej.273.s1.nabble.com/Macro-plugin-for-image-calculations-is-this-possible-tp3687283.html
I have been normalizing images and creating composite images successfully using imageJ and have written some simple macros to speed up the processing of the large quantities of images I am analysing. I now want to speed things up further, the problem which I'm not sure is surmountable is that the output from one calculation or measurement is the input for the next calculation.
Briefly, these are pairs of images of the same target captured at different wavelengths (a,b), the images are normalized to a calibration panel which is in the image field, a mathematical function is then applied to the 2 images to create a composite image:
A = (a x 18) / calibration panel value for a
B = (b x 18) / calibration panel value for b
Final composite image = (A – B)/(A + B)
Does somebody know whether it is feasible to write a plugin which when fed two raw images will output the desired composite image? If so any pointers?
Thanks
P.S. If you’re curious this is to calculate an index of photosynthetic biomass, the final image is the normalized difference vegetation index (NDVI) and the two wavelengths are near infrared and red.