Re: ROI and IJ.run()

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

Thanks for your response,

impProcess.updateAndDraw() still do nothing .... but if I show
impProcess instead of masking it  (by replacing
WindowManager.setTempCurrentImage(impProcess)  by impProcess.show() at
the first line),  it's fine !
My processing become a bit "verbose" but it does the job, I am still
interested for a silent solution ...
Thanks


Johannes Schindelin a écrit :

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