Login  Register

Problem with ROI (bounding rectangle)

Posted by JCS Trans Jakub Szafarek on Jan 15, 2008; 9:17am
URL: http://imagej.273.s1.nabble.com/Problem-with-ROI-bounding-rectangle-tp3697595.html

Hi,

I am the new user of ImageJ library... So I have got one question.
I want to make PolygonRoi, make it active and add to each pixel in selected ROI some Value.
I wrote code:

roi=new Polygon(xpoints,ypoints, 4, imageplus, Roi.POLYGON);
imageplus.setRoi(roi)
imageprocesor.add(value)


When I Start aplication, roi is made, is selected and "add" operation is done well, but it makes "add" for the selected polygonroi and the bounding rectangle of this roi,

What is wrong? what must I change to work it correct?


Thx a lot

Jakub