Re: macro help please
Posted by
Larry Nolan on
Dec 30, 2009; 6:37pm
URL: http://imagej.273.s1.nabble.com/macro-help-please-tp3689867p3689877.html
The inverted LUT is of interest since I have a set of 1000 images from
ten years ago that are only 320x240 pixels Jpeg and when I use the
macro with the changes they are all process as if they are inverted
and so I put back the run("Invert") statement for that batch and they
come out OK. Strange. I'll give a try modifying the macro to if-test
using is("Inverting LUT") to decide whether to run("Invert").
Larry
On Dec 30, 2009, at 11:43 AM, Gabriel Landini wrote:
> On Wednesday 30 December 2009, you wrote:
>> removing those two statements works well with my 3 test images. I'll
>> try it with the full set of 1000 images later.
>
> Good, I wonder if this is a problem of using batchMode.
>
>> How would I tell if there is an inverted LUT with a particular
>> image?
>
> That is explained in:
>
http://rsb.info.nih.gov/ij/developer/macro/functions.html>
> is("Inverting LUT")
> Returns true if the current image is using an inverting lookup table.
>
> but it might be unlikely since you say that all the images are taken
> with the
> same camera and they have not been edited.
>
> Cheers,
> G.