Login  Register

Re: CLAHE plugin

Posted by Wayne Rasband on Nov 14, 2009; 3:54pm
URL: http://imagej.273.s1.nabble.com/Getting-the-selected-points-tp3690467p3690471.html

On Nov 13, 2009, at 8:15 PM, David William Webster wrote:

> All,
>
> I don't understand the phrase "compiles and runs in bare
> ImageJ as well". Does this imply that plugins written for
> Fiji don't necessarily work for ImageJ

They work with a little effort. Here is what you need to do get the  
CLAHE plugin on the Fiji website to run in ImageJ:

1. Find and downloaded a version of the source without line numbers.

2. Change the file name from mpicbg-ij-CLAHE.java to CLAHE_.java.

3. Change the class name from CLAHE to CLAHE_.

4. Remove the package statement.

5. Remove the "import mpicbg.util.Util;" statement.

6. Find the source for the mpicbg.util.Util class.

7. Copy the round() function from Util.java and paste it into  
CLAHE_.java.

9. Change "Util.round()" to "round()" in nine places.

10. Use Plugins>Compile and Run to compile and run the plugin.

-wayne