Ok thanks i will have a look with ITK first, otherwise i made an algorithm that seems to work in most cases I find it strange because in the source code of ITKBinary imageFilter there are hard-coded 2 dimensions check ... Anyway i will give it a try Thanks again for your replies ! -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html