<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>Yes the gray scale morphology filers will work fined with signed, unsigned or real pixel types.</div><div><br></div><div>The quote you are referring to is describing the structuring element, not how the structuring element is applied. Essentially the structuring element is a binary image.</div><div><br></div><div>Brad</div><div><br><div><div>On May 20, 2014, at 10:20 AM, 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">Hi Bradley,<div><br><div>sorry to bother you again. Would the method that you suggested work also for DICOM images with values ranging from -1024 to 0? I got this doubt because reading the description of the GrayScaleDilateImageFilter it reads "<span style="background-color: rgb(255, 255, 255); font-family: 'Lucida Grande', Verdana, Geneva, Arial, sans-serif; font-size: 12px; line-height: 22px;">Only elements of the structuring element having values > 0 are candidates for affecting the center pixel.</span><span style="font-size: 12pt;">" So, I suppose that in this case I should use a different dilate filter instead?</span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">Thank you very much!</span></div><div><span style="font-size: 12pt;">Mirco</span></div><div><br><div><hr id="stopSpelling">From:<span class="Apple-converted-space"> </span><a href="mailto:mirco9091@hotmail.it">mirco9091@hotmail.it</a><br>To:<span class="Apple-converted-space"> </span><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a><br>Date: Thu, 15 May 2014 17:42:35 +0000<br>CC:<span class="Apple-converted-space"> </span><a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>Subject: Re: [ITK-users] Location of 4-connected voxels with a specific intensity<br><br><div dir="ltr">Great, thank you very much indeed!!<div><br><div><hr id="ecxstopSpelling">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 13:25:19 -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 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="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">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="ecxstopSpelling">Subject: Re: [ITK-users] Location of 4-connected voxels with a specific intensity<br>From:<span class="ecxApple-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="ecxApple-converted-space"> </span><a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>To:<span class="ecxApple-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></div></div></div><br>_____________________________________ Powered by<span class="Apple-converted-space"> </span><a href="http://www.kitware.com/">www.kitware.com</a><span class="Apple-converted-space"> </span>Visit other Kitware open-source projects at<a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><span class="Apple-converted-space"> </span>Kitware offers ITK Training Courses, for more information visit:<a href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><span class="Apple-converted-space"> </span>Please keep messages on-topic and check the ITK FAQ at:<span class="Apple-converted-space"> </span><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><span class="Apple-converted-space"> </span>Follow this link to subscribe/unsubscribe:<span class="Apple-converted-space"> </span><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></div></div></div></div></div></blockquote></div><br></div></body></html>