[Insight-users] Re: One last call for help - neighborhood operator

Ruben Schilling r.b.schilling at googlemail.com
Wed Aug 22 16:11:00 EDT 2007


Hi Dave,

the question is how you define an image of arbitrary shape. In itk  
and all other software/theory I know of a 2D image is a rectangular  
matrix. You could fill the image with background values, but I don't  
know, if that is what you really want. When operating on arbitrary  
shaped neighborhoods it can be quite tricky to define good boundary  
conditions. Maybe you really want to stick to the neighborhood  
iterator and define operations voxel-wise to keep your arbitrary shape?

Best,
Ruben

Am 22.08.2007 um 21:19 schrieb dave:

> Here is my code as well.  This works, but is a bit slow and I would  
> like to experiment with other neighborhood sizes without doing it  
> all manually.  The feature extraction loop, lines 95-155, are what  
> I would like to improve.
> <kmeans.cxx>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list