Hi Luis, Thanks for you help on Connectedness. What i'm trying to do is findout all 26-connected components in a volume, and keep largest of them.This way i want segment the brain tissues from the non-brain. Is there any algorithm implemented ITK for this Thank you. suresh