LUT

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

LUT

Bo de Lange
Can I permanently add a LUT to the Image-Lookup tables menu?
If not, how do I easily apply a LUT, that's not in the menu, to all my
open images?

Bo
Reply | Threaded
Open this post in threaded view
|

Re: LUT

Elena Kardash
 hi, Bo,
i had the same question ann could not add the desired lut to the menu,  
instead  i run the macro: it calls the desired lut from the Lookup_Tables
plugin in the ImageJ
folder.
for example:
open("/location/ImageJ/plugins/Lookup_Tables/Blue_Green_Red.lut");
it applies to the activated image but maybe you could apply it to all ...
 elena

-------------------
> Can I permanently add a LUT to the Image-Lookup tables menu?
> If not, how do I easily apply a LUT, that's not in the menu, to all my
> open images?
>
> Bo
>
Reply | Threaded
Open this post in threaded view
|

Re: LUT

Gabriel Landini
There may be a simpler way but this should also work.

1. Make a *plugin* that only applies the LUT you wish or runs the macro you
wish.
2. Compress the plugin class into a zip archive
3. Look at the jar examples in the IJ website how to write the plugins.conf
file so the entry appears in the menu.
4. Add the plugins.conf file to the zip archive.
5. Rename the zip file as ".jar"
6. Restart IJ.

Cheers,
G.

>
> > Can I permanently add a LUT to the Image-Lookup tables menu?
> > If not, how do I easily apply a LUT, that's not in the menu, to all my
> > open images?
> >
> > Bo
Reply | Threaded
Open this post in threaded view
|

Re: LUT

Kurt De Vos
You could just add them in the ij_props.tx file that is in the IJ.jar

snip

# Plugins installed in the Image/Lookup Tables submenu
lookup01="Fire",ij.plugin.LutLoader("fire")
lookup02="Grays",ij.plugin.LutLoader("grays")
lookup03="Ice",ij.plugin.LutLoader("ice")
lookup04="Spectrum",ij.plugin.LutLoader("spectrum")
lookup05="3-3-2 RGB",ij.plugin.LutLoader("3-3-2 RGB")
lookup06="Red",ij.plugin.LutLoader("red")
lookup07="Green",ij.plugin.LutLoader("green")
lookup08="Blue",ij.plugin.LutLoader("blue")
lookup09="Cyan",ij.plugin.LutLoader("cyan")
lookup10="Magenta",ij.plugin.LutLoader("magenta")
lookup11="Yellow",ij.plugin.LutLoader("yellow")
lookup12="Red/Green",ij.plugin.LutLoader("redgreen")
lookup13=-
lookup14="Invert LUT",ij.plugin.LutLoader("invert")
lookup15="Apply LUT",ij.plugin.filter.LutApplier

snip


kurt
On 29 Mar 2006, at 11:07, Gabriel Landini wrote:

> There may be a simpler way but this should also work.
>
> 1. Make a *plugin* that only applies the LUT you wish or runs the  
> macro you
> wish.
> 2. Compress the plugin class into a zip archive
> 3. Look at the jar examples in the IJ website how to write the  
> plugins.conf
> file so the entry appears in the menu.
> 4. Add the plugins.conf file to the zip archive.
> 5. Rename the zip file as ".jar"
> 6. Restart IJ.
>
> Cheers,
> G.
>
>>
>>> Can I permanently add a LUT to the Image-Lookup tables menu?
>>> If not, how do I easily apply a LUT, that's not in the menu, to  
>>> all my
>>> open images?
>>>
>>> Bo

*--*--*--*--*--*--*--*--*--*--*--*--*--*
University of Sheffield
Academic Neurology Unit
Division of Genomic Medicine
E Floor, Medical School
Beech Hill Road
Sheffield
S10 2RX
United Kingdom

Tel: ++44 (0) 114 271 2473
Fax: ++44 (0) 114 226 1201
Email: [hidden email]
*--*--*--*--*--*--*--*--*--*--*--*--*--*
Reply | Threaded
Open this post in threaded view
|

Re: LUT

Jerome Mutterer
In reply to this post by Bo de Lange
Bo,

You can sort of override ImageJ open command with the following macro,  
which can be run by pressing 'F1'. You can also add this macro to  
StartupMacros.txt so that it is installed every time you start ImageJ.

Jerome.


macro "Open with LUT [F1]" {
open();
if (bitDepth()==8)
open("/location/ImageJ/plugins/Lookup_Tables/Blue_Green_Red.lut");
}



}Quoting Elena Kardash <[hidden email]>:

>  hi, Bo,
> i had the same question ann could not add the desired lut to the menu,
> instead  i run the macro: it calls the desired lut from the Lookup_Tables
> plugin in the ImageJ
> folder.
> for example:
> open("/location/ImageJ/plugins/Lookup_Tables/Blue_Green_Red.lut");
> it applies to the activated image but maybe you could apply it to all ...
>  elena
>
> -------------------
>> Can I permanently add a LUT to the Image-Lookup tables menu?
>> If not, how do I easily apply a LUT, that's not in the menu, to all my
>> open images?
>>
>> Bo
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: LUT

Bo de Lange
Thanks for your input. I would not want to open all my images with my
specific lut, so what I've done is I've added two macros to my
StartupMacros so that I can switch between the normal 'Grays' lut and my
specific lut at the press of their assinged function key. It only works
on the active image, but I can live with that.

Bo

Jerome Mutterer wrote:

> Bo,
>
> You can sort of override ImageJ open command with the following macro,
> which can be run by pressing 'F1'. You can also add this macro to
> StartupMacros.txt so that it is installed every time you start ImageJ.
>
> Jerome.
>
>
> macro "Open with LUT [F1]" {
> open();
> if (bitDepth()==8)
> open("/location/ImageJ/plugins/Lookup_Tables/Blue_Green_Red.lut");
> }
>
>
>
> }Quoting Elena Kardash <[hidden email]>:
>
>>  hi, Bo,
>> i had the same question ann could not add the desired lut to the menu,
>> instead  i run the macro: it calls the desired lut from the
>> Lookup_Tables
>> plugin in the ImageJ
>> folder.
>> for example:
>> open("/location/ImageJ/plugins/Lookup_Tables/Blue_Green_Red.lut");
>> it applies to the activated image but maybe you could apply it to all
>> ...
>>  elena
>>
>> -------------------
>>> Can I permanently add a LUT to the Image-Lookup tables menu?
>>> If not, how do I easily apply a LUT, that's not in the menu, to all my
>>> open images?
>>>
>>> Bo
>>>
>>


--
R.P.J. de Lange, PhD
Rudolf Magnus Institute of Neurosciences
P.O. box 80040
3508 TA Utrecht
The Netherlands

visiting address:
Stratenum, room 4.241
Universiteitsweg 100
3584 CG Utrecht

tel: +31-30-253 8924
        +31-30-253 8837 (lab)
fax: +31-30-253 9032