ROI and IJ.run()

Posted by Eddie Iannuccelli on
URL: http://imagej.273.s1.nabble.com/ROI-and-IJ-run-tp3700890.html

Hello,
my plugin use a Wand method in order to get particles ROI for further
processing . Some of these processing are done using IJ.run () calls,
but it does not seem to be effective in results. Here is my code :

// ipProcess is my source ImageProcessor containing particles
// impProcess is my source ImagePlus containing particles
// x and y are coordinate of my first particle

WindowManager.setTempCurrentImage(impProcess);  //show nothing
Wand myWand = new Wand(ipProcess);  
myWand.autoOutline((int)x,(int)y);
PolygonRoi myROI= new PolygonRoi(myWand.xpoints,
myWand.ypoints,myWand.npoints, Roi.TRACED_ROI);          
impProcess.setRoi(myROI);
IJ.run("Convex Hull");                          --> do nothing  !
IJ.run("Enlarge...", "enlarge=100");       --> do nothing  !

Thanks