<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.77">
<TITLE>Labeled neighborhoods</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I would like to label a 3D binary image by its neighborhood. In other words, everywhere there is a "1" sandwiched between two "0's", I would like to label it "1". Everywhere there are six "1's" sandwiched between two "0's", they would be labeled "6", and so on. It seems like the neighborhood iterators will probably be involved, but I not really sure how. Seems like I would want to recursively reshape the iterators in a for loop and test the image against them one by one. When there is a match, I'd change the pixel value of the output image to the desired label. Any advise on how to test the iterator against the image to fit a neighborhood criterion?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks</FONT>
<BR><FONT SIZE=2 FACE="Arial">Dan</FONT>
</P>
<P><FONT FACE="Times New Roman">Daniel R Einstein, PhD<BR>
Biological Monitoring and Modeling<BR>
Pacific Northwest National Laboratory<BR>
P.O. Box 999; MSIN P7-59<BR>
Richland, WA 99352<BR>
Tel: 509/ 376-2924<BR>
Fax: 509/376-9064<BR>
</FONT><A HREF="mailto:daniel.einstein@pnl.gov"><U><FONT COLOR="#0000FF" FACE="Times New Roman">daniel.einstein@pnl.gov</FONT></U></A>
</P>
<BR>
</BODY>
</HTML>