Hello J,
What you want to do is quite easy using a macro. Writing a plugin won't be necessary.
The Macro Recorder is your friend. Read up on how to use it. (Just run it and do what you do to manually calculate your images. Then edit the resulting file to make it more general and allow the operator to select the files to use.)
If you haven't already, read up the pages of the ImageJ macro language and scan the macro functions page. Scan the list of prewritten macros for valuable examples.
Give it a try and let us know if you get stuck.
--
Harry Parker
Senior Systems Engineer
Digital Imaging Systems, Inc.
----- Original Message ----
From: J PIke <james.pike@PLYMOUTH.AC.UK>
To: IMAGEJ@LIST.NIH.GOV
Sent: Friday, May 11, 2007 1:30:14 PM
Subject: Macro/plugin for image calculations: is this possible?
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.
--
View this message in context:
http://www.nabble.com/Macro-plugin-for-image-calculations%3A-is-this-possible--tf3728638.html#a10436253Sent from the ImageJ mailing list archive at Nabble.com.
____________________________________________________________________________________Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
http://tv.yahoo.com/collections/222