Re: clojure and fiji
Posted by
Jan Eglinger on
Jan 28, 2015; 4:33pm
URL: http://imagej.273.s1.nabble.com/clojure-and-fiji-tp5011348p5011356.html
Hi,
using the functions built into ImageJ, you can do something like this in
Clojure:
(def ^:dynamic *imp* (ij.WindowManager/getCurrentImage))
(.setRoi *imp* 10 10 40 40)
(ij.IJ/run "Set Measurements..." "standard redirect=None decimal=3")
(ij.IJ/run *imp* "Measure" "")
Hope that helps
Jan
On 28.01.15 16:29, Albert Cardona wrote:
> Rabih: all the pieces you need are listed in
http://fiji.sc/Clojure_> Scripting
>
> I know because I wrote them myself.
>
> Albert
>
> 2015-01-28 10:17 GMT-05:00 rabih assaf <
[hidden email]>:
>
>> Hello, does anyone know how to calculate variance of a selected area using
>> clojure?
>>
>>> Date: Wed, 28 Jan 2015 14:24:31 +0100
>>> From:
[hidden email]
>>> Subject: Re: clojure and fiji
>>> To:
[hidden email]
>>>
>>> Hi Rabih,
>>>
>>> On 28.01.15 14:03, rabih assaf wrote:
>>>> Is there anyone familiar with using clojure language in imagej?
>>>>
>>>
>>> You can find some clojure scripting examples here:
>>>
http://fiji.sc/Clojure_Scripting>>>
>>> For more specific questions, this list is the best place to ask.
>>>
>>> Cheers,
>>> Jan
>>>
>>> --
>>> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>>
>> --
>> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>>
>
>
>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html