<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear David,<div><br></div><div>I think using the ImageToListSampleAdaptor seems reasonable since you can easily </div><div><br></div><div>access the coordination of the pixels using an IteratorWithIndex after the labeling process</div><div><br></div><div>is done, this way you can input the ListSampleAdaptor all at once instead of iterating over </div><div><br></div><div>the image. </div><div><br></div><div>Another approach could be using the itkScalarImageKmeansImageFilter and then </div><div><br></div><div>using a IteratorWithIndex to access the coordination of the pixels but I'm not sure </div><div><br></div><div>how would a decision rule fit in that scenario.</div><div><br></div><div>Regards,</div><div><br></div><div>Dawood Masslawi</div></td></tr></table><br>