<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi Gang,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>As a general rule you need to add extensions for your output files such as .tif or .vtk, since ITK determines the file type from the extension you provide. For non scalar images it is often a good idea to provide .vtk as extension, it can hold e.g. vector valued output. I have no idea of the Danielsson filter though, check it's source code, original research paper and itk software guide (which most often also provides a reference to the research paper implemented in itk).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I strongly suggest you to read through the appropriate sections in the itkSoftwareGuide anyways, which can be considered obligatory to using itk. ITK is too complex to be fully intuitive before reading at least the essential sections of the guide.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>By the way: Are you using XCode to edit your source files? If you do, than you want to check under Format -&gt; Syntax Coloring the C++ style highlighting for any .txx (template) file you edit.  To let XCode recognize .txx files automatically you need to do a little more tricky stuff in your Library directory - don't have time to go in here, but you would find the needed hacks for that on Google.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Best</DIV><DIV>Ruben</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>Am 08.05.2007 um 22:55 schrieb Gang Cheng:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><FONT face="Verdana, Helvetica, Arial"><SPAN style="font-size:12.0px; font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">Hi, Ruben,</SPAN><BR style="font-family: Verdana; "><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">Sorry to bother you again, but I sent an email to the ITK mail list this morning asking for help on how to use </SPAN><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">DanielssonDistanceMapImageFilter and so far no one has responded. Hope you don’t mind giving me some</SPAN><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">much-needed advice here.</SPAN><BR style="font-family: Verdana; "><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">As a first step of learning how to use DanielssonDistanceMapImageFilter, I'm trying to run the example code </SPAN><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">(no changes made) on the image FivePoints.png that came in the Example/Data directory. I learned that the </SPAN><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">usage of this filter should be</SPAN><BR style="font-family: Verdana; "><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">Usage: ./DanielssonDistanceMapImageFilter inputImageFile outputDistanceMapImageFile  outputVoronoiMapImageFilter  outputVectorMapImageFilter </SPAN><BR style="font-family: Verdana; "><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">My questions are:</SPAN><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">1. Is the outputDistanceMapImageFile supposed to be a new image file in any format (e.g., png, tif, jpg) writable by ITK? </SPAN><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">2. What format(s) should I set outputVoronoiMapImageFilter  and outputVectorMapImageFilter to be? Data file? Image file? Do I need to do </SPAN><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">anything in the source code besides specifying the file names for these two in the command line?</SPAN><BR style="font-family: Verdana; "><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">Any of your help will be greatly appreciate!</SPAN><BR style="font-family: Verdana; "><BR style="font-family: Verdana; "><SPAN class="Apple-style-span" style="font-family: Verdana; ">-Gang</SPAN><BR style="font-family: Verdana; "></SPAN></FONT></SPAN></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>