|
|
Subject: Re: Median of an array - msg#00227
List: java.imagej
It's a general programming question, not image specific, so its not
likely to be in the imageJ library. However, you can almost certainly
find open source sorting code you could borrow :)
If you're dealing with a reasonably small array, I'd use selection sort
or insertion sort (google will give you lots of info on either) because
they are both simple and easy to understand.
If you have to sort arrays frequently or the arrays are pretty large (in
the hundreds of items or more), it might be worth looking up a faster
algorithm. Quick sort is the best, in general, and doesn't require much
code, but the algorithm is a nightmare to understand at first. It's also
massively recursive.
Hope this helps!
david
-----Original Message-----
From: ImageJ Interest Group [ mailto:IMAGEJ@xxxxxxxxxxxx] On Behalf Of
Pedro Ramos
Sent: Wednesday, July 27, 2005 3:26 AM
To: IMAGEJ@xxxxxxxxxxxx
Subject: Re: Median of an array
Ok, that is the way to calculate the median of an array, I know that. I
was
wondering if there is a command to do it automatically without
programming
the whole process you have described. But thanks anyhow for your help.
That's how I'll proceed if I can't find a "shortcut".
Pedro
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Help
hi,
Le 27 juil. 05, à 23:04, Pedro Alejandro Herve Fernandez Carrera
Licenciatura en Cs.Biologicas a écrit :
Hi, my problem is either to simple or to dificult, i´m working on
isopod
behaviour and i´m recording the movement, i´ve managed to convert my
avi
files in to a series of pictures (jpg), but i can´t make the
mesurements, the
video that the program makes is to fast and i can´t measure the
distance that
the isopod moves.
if someone knows how to slow down the series of pictures, or even
better if
someone knows how can i make the analisis automaticly
I'm doint this with fish larvae: record a video, slow it down = extract
a frame every second, record the mouvement.
Video part:
I do this with mplayer/mencoder, an open source utility found on all
platforms a typical command line would be
mencoder source_video.??? -nosound -ovc lavc -ofps 1 -o
destination_video.avi
the ofps parameters sets the numer of frames per second of the
destination video (here: one frame per second)
then I export the images to pgm files (because they load very quickly
in imageJ) but you can export them to JPG if you prefer.
mplayer -vo pnm:pgm destination_video.avi
I do all this in a bash script that runs on linux or mac os X platforms.
Tracking part:
Depending on your source material this can be automatic. if your images
are completely still except for the isopods, if you have few isopods
(one is even better ;-) ), and if the luminosity and contrast of all
the video are identic, you can make this automatic. Check the Mtrack2
plugin on the web. There was a demo and a how to somewhere with a video
of some small insects in a Petri box.
If you cannot meet the requierements, you have to track tehm manually
and you can do this with the manual tracking plugin.
hope that helps.
JiHO
---
Windows, c'est un peu comme le beaujolais nouveau :
a chaque nouvelle cuvee on sait que ce sera degueulasse,
mais on en prend quand meme par masochisme.
---
http://jo.irisson.free.fr/
Next Message by Date:
click to view message preview
Need help with analyizing images
Hi,
I am new to using any image analysis and have been posed with a
problem. you can access a bunch of folders by click the following link
ftp://129.186.105.169
when it prompts for the user id and password, use mstremler for both.
you will see a few folders and if you open say Re0.8, you will see
some images which are numbered sequentially. from one image to the
other, you will see a increase in the purple color. It is very obvious
from the figure to see that, but I am having problem quantifying it by
doing some image analysis. Any help regarding this would be very
appreciated. I have so far played with just measuring mean intensities
and that doesn't seem to solve my problem.
Thanks,
Vishwa
Previous Message by Thread:
click to view message preview
Brightness/Contrast variation
Hello everybody,
Does anyone know where can I find the source code corresponding to the
"Brightness/Contrast variation" function used in the ImageJ ??
Chears,
Blandine
Next Message by Thread:
click to view message preview
Need help with analyizing images
Hi,
I am new to using any image analysis and have been posed with a
problem. you can access a bunch of folders by click the following link
ftp://129.186.105.169
when it prompts for the user id and password, use mstremler for both.
you will see a few folders and if you open say Re0.8, you will see
some images which are numbered sequentially. from one image to the
other, you will see a increase in the purple color. It is very obvious
from the figure to see that, but I am having problem quantifying it by
doing some image analysis. Any help regarding this would be very
appreciated. I have so far played with just measuring mean intensities
and that doesn't seem to solve my problem.
Thanks,
Vishwa
|
|