|
Hello everybody.
I am using imagej lib to programm, I need a automatic roi into a image and if it is ok to the user he push ok and the software will process the image.
Thats ok, but I cant see a roi in my image, that is what I have done:
ImagePlus img = IJ.openImage("myImage.jpg")
Roi roi = new Roi(10, 10, img); //10x10 is just a test
img.setRoi(roi);
ImageCanvas canvas = new ImageCanvas(img);
//after that I added the canvas to my frame:
this.add(canvas);
Well, I only can see the image, I cant see the square roi into it
I´ve making something wrong, but why?
Thanks in advance for any tip
bye bye
Jorge
|