Dear Rhod,
The code below should allow you to select the correct image by matching blue or red to its name:
title1=getTitle();
if (matches(title1, ".*blue.*")){
do something
}else{
if (matches(title1, ".*red.*")){
do something
}
}
Best wishes
Kees
Dr Ir K.R. Straatman
Senior Experimental Officer
Advanced Imaging Facility
Centre for Core Biotechnology Services
University of Leicester
http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Rhodri Wilson
Sent: 06 February 2017 20:05
To:
[hidden email]
Subject: Is it possible to read (in a maco) what LUT has been applie to an image?
I have a 3 channel image and when I split colours I want to apply a certain set of functions to one one channel (red) and another set of function to another channel (blue).
However the order of the channels are not always the same (with some gray thrown in for good measure measure)
so image one could be ch1 blue, ch2 red, ch3 white, but image 2 could be ch1 red, chh2 which and ch3 blue.
Is there anyway to read the colour channels and anem the images appropriately within the ImageJ macro language?
Thanks
Rhod
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html