[Insight-users] Computing the median value of a rectangular region

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Fri Jun 24 15:34:01 EDT 2011


Le 24 juin 11 à 21:26, David Doria a écrit :

> 2011/6/24 Neil Panjwani <paniwani at gmail.com>:
>> Or you could use a neighborhood iterator, which by default creates
>> rectangular regions, and collect the values the values that way.
>
> I imagine he's looking for a functions like:
>
> PixelType GetMedian(ImageRegion)
>
> Does anyone know if something like this exists? It seems like a
> reasonable request to me.
>

LabelMap/LabelObject can do that.
It may not be easy enough to create the LabelObject corresponding to  
the desired region though.

Gaëtan


-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://mima2.jouy.inra.fr  http://www.itk.org
http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110624/f5d86124/attachment.pgp>


More information about the Insight-users mailing list