<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>I am suggesting using a cross structuring element, which has the same topology as the 4-connected neighborhood. The output of gray scale dilation is the maximum value of the pixels contained in the structuring element at a location. There are plenty of textbooks and website which provide a more in depth description of grayscale morphology if you need further information.</div><div><br></div><div>SimpleITK's python binding may be a good tool to interactively explore how to combine some of these filters to get your desired results.</div><div><br></div><div><br></div><div>Hope that helps,</div><div>Brad</div><div><br><div><div>On May 15, 2014, at 1:15 PM, Mirco Serra <<a href="mailto:mirco9091@hotmail.it">mirco9091@hotmail.it</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><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:<span class="Apple-converted-space"> </span><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a><br>Date: Thu, 15 May 2014 11:49:32 -0400<br>CC:<span class="Apple-converted-space"> </span><a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>To:<span class="Apple-converted-space"> </span><a href="mailto:mirco9091@hotmail.it">mirco9091@hotmail.it</a><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></div></div></div></div></div></blockquote></div><br></div></body></html>