OvalRoi bug

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

OvalRoi bug

Leon Espinosa-3
Dear all and developpers, the OvalRoi constructor (at least..) seems to ignore the "right position" if the properties of the image have changed the origin of coordinates, this script illustrates this :

importClass(Packages.ij.IJ);
importClass(Packages.ij.gui.OvalRoi);
imp = IJ.createImage("Untitled", "8-bit black", 200, 200, 10);
IJ.run(imp, "Properties...", "channels=1 slices=10 frames=1 unit=pixel pixel_width=1.0000 pixel_height=1.0000 voxel_depth=1.0000 frame=[1 frame] origin=100,100");
imp.show();
imp.setRoi(new OvalRoi(0, 0, 10, 10));

The ROI is created in the upleft corner instead the center of the image as expected.

("Edit/Selection/Specify..." also pass over the new origin changes in properties)


Thank you... !
All the best, Leon



PS. Dear Johannes please note the individual imports for each class... !   ;-)

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html