[Insight-users] Using ITK in Mac OS X
Ruben Schilling
r.b.schilling at googlemail.com
Wed May 9 04:05:54 EDT 2007
Hi Gang,
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).
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.
By the way: Are you using XCode to edit your source files? If you do,
than you want to check under Format -> 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.
Best
Ruben
Am 08.05.2007 um 22:55 schrieb Gang Cheng:
> Hi, Ruben,
>
> Sorry to bother you again, but I sent an email to the ITK mail list
> this morning asking for help on how to use
> DanielssonDistanceMapImageFilter and so far no one has responded.
> Hope you don’t mind giving me some
> much-needed advice here.
>
> As a first step of learning how to use
> DanielssonDistanceMapImageFilter, I'm trying to run the example code
> (no changes made) on the image FivePoints.png that came in the
> Example/Data directory. I learned that the
> usage of this filter should be
>
> Usage: ./DanielssonDistanceMapImageFilter inputImageFile
> outputDistanceMapImageFile outputVoronoiMapImageFilter
> outputVectorMapImageFilter
>
> My questions are:
> 1. Is the outputDistanceMapImageFile supposed to be a new image
> file in any format (e.g., png, tif, jpg) writable by ITK?
> 2. What format(s) should I set outputVoronoiMapImageFilter and
> outputVectorMapImageFilter to be? Data file? Image file? Do I need
> to do
> anything in the source code besides specifying the file names for
> these two in the command line?
>
> Any of your help will be greatly appreciate!
>
> -Gang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070509/1c13499a/attachment.html
More information about the Insight-users
mailing list