Login  Register

Re: Extending ImageCanvas to display 1 Roi / slice?

Posted by dscho on Dec 23, 2009; 2:52pm
URL: http://imagej.273.s1.nabble.com/Extending-ImageCanvas-to-display-1-Roi-slice-tp3689935p3689936.html

Hi J-Y,

On Wed, 23 Dec 2009, Jean-Yves Tinevez wrote:

> For a plugin I am writing, I plan to extends the current ImageCanvas, in
> order to add a few specialized methods.
>
> I would need to get a canvas that can display 1 different ROI per slice.
> When the user changes the slice (e.g. clicks on the bottom slider), the
> ROI for this slice is taken from a list, and displayed on the image.
>
> Rather than re-invent the wheel, I wanted to ask this list if anyone had
> already done something similar before I try to do it. If so, please tell
> me.

We do something like this in the Segmentation Editor plugin in VIB_.jar:

http://pacific.mpi-cbg.de/cgi-bin/gitweb.cgi?p=VIB.git;a=blob;f=vib/segment/CustomStackWindow.java;hb=refs/heads/VIB#l417

I do not think that you can really do that in the ImageCanvas, as it is
inherently 2D (the slice selector is a sibling of the ImageCanvas
component).

Ciao,
Johannes