<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello Bradley,<div>thanks again for your help. Just to make sure, you are suggesting I use use the itkGrayScaleDilateImageFilter with a binary ball structuring element of radius 1 followed by a itkThresholdImageFilter. Is that correct? How is the dilation helping find the 4-connected voxels that share the intensity property?<br><br>Many many thanks,</div><div>Mirco<br><div><hr id="stopSpelling">Subject: Re: [ITK-users] Location of 4-connected voxels with a specific intensity<br>From: blowekamp@mail.nih.gov<br>Date: Thu, 15 May 2014 11:49:32 -0400<br>CC: insight-users@itk.org<br>To: mirco9091@hotmail.it<br><br>Hello,<div><br></div><div>I think a Grayscale dilate and then a threshold may do what you want, if you use a cross with a radius one. The dilate with take the maximum over this template.</div><div><br></div><div>Hope that helps.</div><div>Brad</div><div><br><div><div>On May 15, 2014, at 11:45 AM, Mirco Serra <<a href="mailto:mirco9091@hotmail.it">mirco9091@hotmail.it</a>> wrote:</div><br class="ecxApple-interchange-newline"><blockquote><div class="ecxhmmessage" style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;"><div dir="ltr">Hi guys,<div><br></div><div>I have a 2D gray-scale image and I need to locate all the sets of 4-connected voxels that have an intensity below a certain threshold. Do you know which method may be the best in order to do so?</div><div><br></div><div>Many thanks in advance for your help,</div><div>Mirco</div></div>_____________________________________<br>Powered by<span class="ecxApple-converted-space"> </span><a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a></div></blockquote></div><br></div></div></div>                                      </div></body>
</html>