[ImageJ-devel] K-means clustering plugin

Safaa Al-Haj Saleh alhaj.safa at yahoo.com
Thu Jan 2 12:21:50 CST 2014


Hi all,

I have installed "ij_clustering.jar" that contains KMeansClustering plugin. I am trying to call this plugin from java code as the following:

IJ.runPlugIn(imp,"KMeansClustering","");


or using 

IJ.run(imp,"k-means Clustering","number=2 cluster=0.00010000 enable randomization=176");
to run the installed plugin from imageJ menus.

The problem is that the resulted image is not clustered at all (i.e. it remains the same). I think the third parameter (arg) should be set in the first command, but I have no idea how to set it.

My point is that how to run installed imageJ plugins in my java code?


Regards,
Safaa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20140102/1b6b2500/attachment.html>


More information about the ImageJ-devel mailing list