<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi, all -<br><br>&nbsp; I have a very basic question -<br><br>in ITK, I threshold an image (&gt; thd) to generate the binary mask, in normal case, we can get the binary mask and do further processing for this mask. but if the image values are all less than thd, then mask will be an empty image, it will crash when if I do further processing on it. <br><br>&nbsp; To avoid this crash, I can do a pixel value check for the mask, if it is zero, then I will stop doing the further process. But I think it is pretty time consuming. <br><br>&nbsp; Is there any other better way to avoid the crash?<br><br>&nbsp; Thanks.<br><br>Suyang <br></td></tr></table><br>