DrHanLim / EzColocalization

GNU General Public License v3.0
10 stars 2 forks source link

Custom function isn't working in Macro #4

Closed shenghuanjie closed 5 years ago

shenghuanjie commented 5 years ago

The following command doesn't return any result of the custom metric.

run("EzColocalization ", "reporter_1_(ch.1)=HL6187_DAPI.tif reporter_2_(ch.2)=HL6187_GFP.tif cell_identification_input=HL6187_Phase.tif alignthold4=default custom_metric");
shenghuanjie commented 5 years ago

Now, in version 1.1.1, Macro will record the path to the temporary .java source file. While running Macro, it will try to read the source code and compile it. If it fails, try to open ImageJ/Fiji as administrator. A typical Macro command with custom metric looks like:

run("EzColocalization ", "reporter_1_(ch.1)=HL6187_DAPI.tif reporter_2_(ch.2)=HL6187_GFP.tif cell_identification_input=HL6187_Phase.tif alignthold4=default custom_metric custom-javafile=C:\\sUsers\\HUANJI~1\\AppData\\Local\\Temp\\customCode.java");