Login  Register

Re: Getting the ImagePlus in an ImageCanvas

Posted by Wayne Rasband on Dec 02, 2009; 4:01pm
URL: http://imagej.273.s1.nabble.com/Getting-the-ImagePlus-in-an-ImageCanvas-tp3690250p3690251.html

 > Hi folks,
 >
 > I am writing something involving user interaction. In one
 > of the steps, I catch mouse events: when the user clicks in
 > a frame, I get the source of the click as an ImageCanvas.
 >
 > But of course, what I would like to get is the ImagePlus
 > within this canvas. How would you do that, knowing that
 > there is not getter for the ImagePlus in the ImageCanvas
 > class?
 >
 > Cheers

The ImageCanvas class in the ImageJ 1.43m daily build has a getImage()
getter that returns the ImagePlus.

-wayne