Re: ROI and IJ.run()

Posted by dscho on
URL: http://imagej.273.s1.nabble.com/ROI-and-IJ-run-tp3700890p3700892.html

Hi,

On Thu, 30 Nov 2006, Eddie Iannuccelli wrote:

> 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  !

I suspect that you need to call impProcess.updateAndDraw() after
IJ.run(...).

Hth,
Dscho