Dear all,
i create application on ImageJ, i want to open my macro, see progress bar while calculate and final show message window that is my result. but i got a problem, Results and Log window are show while calculate all time! . i don't want to show Results and Log window. i try to close window by select it and command to close, but it will show while calculate again. How do i? Thank, Pavita |
Hi Pavita,
the Log and Results windows are opened automatically as soon as your macro creates output to them. For the Log window, the solution is easy: simply store everything that you want to write in a String, and print the string to the Log window when your macro has finished. For the Results Window, if it is populated by 'Analyze Particles' or the like, where you can't suppress output: A simple solution might be selecting it and using setLocation(x, y) to put it into some place at the right or bottom edge of the screen where the user barely notices its presence (see screenWidth, screenHeight). Put it back to a more obvious place when done. By the way, concerning the Progress Bar: If you want to control it by the 'showProgress(progress)' macro command, it should be a Batch Mode macro. Then the other commands should not affect the Progress bar. Michael ________________________________________________________________ On 11 May 2010, at 10:36, Pavita wrote: > Dear all, > > i create application on ImageJ, i want to open my macro, see > progress bar while calculate and final show message window that is > my result. but i got a problem, Results and Log window are show > while calculate all time! . > i don't want to show Results and Log window. > > i try to close window by select it and command to close, but it > will show while calculate again. How do i? > > > Thank, > Pavita |
In reply to this post by Pavita
Dear all,
I'm observing particles in a stack. The stack was extracted from a VHS video, therefore some images contain outliers and "ghost" particles every one and then (video signal artifacts). My goal is to automatize the counting and tracking for the whole stack (as I have several stacks). Therefore I'm trying to "erase" everything from the stack that is not relevant (i.e., non actual particles). I can do the 98% of the job using the directly available tools in ImageJ to erase minor particles and enhance the visibility of the particles I want (adjusting brightness, despeckle, find edge, etc.). BUT there are still a couple of dots in some frames (slices), which unfortunately are the same size as my particles and therefore I can not make ImageJ distinguish from the interest particles. The particularity of these evil dots is that they appear only in one or to consecutive slices, and then disappear. I can get rid of almost all the non-important particles with the Particle Remover plugin (which is great!), but still have these "transient" dots. My question: do you know of something like a Particle Remover but with a temporal (or stack-playback) function? The parameter would be not only circularity and size, but also minimal frames of existence or something like that. Or maybe I should try to create a macro in which I can tell the program that if the particle is present only in X consecutive frames (in my case, 2 as maximum), then delete those frames or mark them, etc.? I guess that this could be done with a macro or plugin (counting particles and comparing the number with the previous slice, etc.) but maybe some of you has already done it. Thanks a lot in advance for your time, Rodrigo ________________________ Rodrigo J. Gonçalves Igualdad - Equality Libertad - Freedom www.maketradefair.com www.oxfam.org ________________________ |
Mtrack2 will require a particle to exist for N frames, and allow size
discrimination. it works nicely with fly larvae, so maybe it will have a hint for you http://valelab.ucsf.edu/~nico/IJplugins/MTrack2.html chris On 11/05/2010 16:35, Rodrigo Gonçalves wrote: > Dear all, > > I'm observing particles in a stack. The stack was extracted from a VHS video, therefore some images contain outliers and "ghost" particles every one and then (video signal artifacts). > > My goal is to automatize the counting and tracking for the whole stack (as I have several stacks). Therefore I'm trying to "erase" everything from the stack that is not relevant (i.e., non actual particles). I can do the 98% of the job using the directly available tools in ImageJ to erase minor particles and enhance the visibility of the particles I want (adjusting brightness, despeckle, find edge, etc.). > > BUT there are still a couple of dots in some frames (slices), which unfortunately are the same size as my particles and therefore I can not make ImageJ distinguish from the interest particles. The particularity of these evil dots is that they appear only in one or to consecutive slices, and then disappear. I can get rid of almost all the non-important particles with the > Particle Remover plugin (which is great!), but still have these > "transient" dots. > > > My question: do you know of something like a Particle Remover but with a temporal (or stack-playback) function? The parameter would be not only circularity and size, but also minimal frames of existence or something like that. > > Or maybe I should try to create a macro in which I can tell the program that if the particle is present only in X consecutive frames (in my case, 2 as maximum), then delete those frames or mark them, etc.? I guess that this could be done with a macro or plugin (counting particles and comparing the number with the previous slice, etc.) but maybe some of you has already done it. > > Thanks a lot in advance for your time, > Rodrigo > > ________________________ > > Rodrigo J. Gonçalves > > > > Igualdad - Equality > > Libertad - Freedom > > > > www.maketradefair.com > > www.oxfam.org > > ________________________ > > > > |
Free forum by Nabble | Edit this page |