Updating display in a CompositeImage Virtual Hyperstack

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

Updating display in a CompositeImage Virtual Hyperstack

Bill Mohler
Hi All-

I'm driving myself nuts with this one:

I can create a Virtual Hyperstack which displays the multiple channels
as CompositeImage.

The sliders, mousewheel, arrow keys all work perfectly when I adjust
position in the hyperstack.

Now I'm using a PluginFrame with some adjusters to change properties of
the display.  If I have the hyperstack animating, these adjustments are
seen in the image in "real-time".  If the hyperstack is in a single czt
position, however, no adjustments are seen in the image until I move to
a new position in z or t.

In other words, the adjustments do not update the display unless the
hyperstack position is updated.  This is different from the behavior of
the ContrastAdjuster, which gives a live update even when the image is
not animating.

What is a method that can be called at the end of an adjustment in my
PluginFrame that will make the display do a live-update?  I have tried
inserting a long list of commands (one at a time) that seem like they
might be bringing about the effect in either the ConstrastAdjuster or in
the StackWindow.adjustmentValueChanged() method.  But none gives the
desired result.  I'm fairly confident that I'm missing something simple,
but I don't know what.

Thanks for any advice,
Bill

--
William A. Mohler
Associate Professor
Dept. of Genetics and Developmental Biology
University of Connecticut Health Center
MC-3301
263 Farmington Ave.
Farmington, CT   06030-3301

[hidden email]
*Mobile: (860) 985-2719*
alt. mobile: (860) 331-8514
skype: wmohler

Office: (860) 679-1833, room E2029
Lab: (860) 679-1834, room E2032
Fax: (314) 689-1833

G&DB dept. ofc.: (860) 679-8350
G&DB dept. fax : (860) 679-8345
http://genetics.uchc.edu/Faculty/Mohler/Mohler.html
P Think before you print
Reply | Threaded
Open this post in threaded view
|

Re: Updating display in a CompositeImage Virtual Hyperstack

Michael Schmid
Hi William,

is it the ImagePlus.updateAndDraw() that is missing?
If your image is not in an ImagePlus but in a PlugInFrame you  
probably have to duplicate the code of ImagePlus.updateAndDraw() for  
your own updateAndDraw() method.

Michael
________________________________________________________________

On 16 Mar 2010, at 18:06, Bill Mohler wrote:

> Hi All-
>
> I'm driving myself nuts with this one:
>
> I can create a Virtual Hyperstack which displays the multiple  
> channels as CompositeImage.
>
> The sliders, mousewheel, arrow keys all work perfectly when I  
> adjust position in the hyperstack.
>
> Now I'm using a PluginFrame with some adjusters to change  
> properties of the display.  If I have the hyperstack animating,  
> these adjustments are seen in the image in "real-time".  If the  
> hyperstack is in a single czt position, however, no adjustments are  
> seen in the image until I move to a new position in z or t.
>
> In other words, the adjustments do not update the display unless  
> the hyperstack position is updated.  This is different from the  
> behavior of the ContrastAdjuster, which gives a live update even  
> when the image is not animating.
>
> What is a method that can be called at the end of an adjustment in  
> my PluginFrame that will make the display do a live-update?  I have  
> tried inserting a long list of commands (one at a time) that seem  
> like they might be bringing about the effect in either the  
> ConstrastAdjuster or in the StackWindow.adjustmentValueChanged()  
> method.  But none gives the desired result.  I'm fairly confident  
> that I'm missing something simple, but I don't know what.
>
> Thanks for any advice,
> Bill
>
> --
> William A. Mohler
> Associate Professor
> Dept. of Genetics and Developmental Biology
> University of Connecticut Health Center
> MC-3301
> 263 Farmington Ave.
> Farmington, CT   06030-3301
>
> [hidden email]
> *Mobile: (860) 985-2719*
> alt. mobile: (860) 331-8514
> skype: wmohler
>
> Office: (860) 679-1833, room E2029
> Lab: (860) 679-1834, room E2032
> Fax: (314) 689-1833
>
> G&DB dept. ofc.: (860) 679-8350
> G&DB dept. fax : (860) 679-8345
> http://genetics.uchc.edu/Faculty/Mohler/Mohler.html
> P Think before you print
Reply | Threaded
Open this post in threaded view
|

Re: Updating display in a CompositeImage Virtual Hyperstack

Bill Mohler
No, the image is in an ImagePlus/CompositeImage.
I think ImagePlus.updateAndDraw() is the first thing that I tried and failed with...
I just tried again, and it doesn't work.

Thanks,
Bill