[Insight-developers] Slicer usage of ITK

Bill Lorensen bill.lorensen at gmail.com
Fri Jan 28 16:16:25 EST 2011


Folks,

Using the newly discovered -MM flag of gcc, I gathered some statistics
on itk and slicer4.

I'm pretty sure they are correct, but I ran several scripts to get
these results. But the figures should be in the right ball park.

1) itk has 1211 classes (#include itk*.h)
2) Slicer4 uses 368 itk classes(.h files that are directly or
indirectly included)
3) Slicer4 has created 112 itk classes.

The numbers were created as follows:
I greped all Slicer4 source code for #include itk*.h
I compared this list with the list of itk*.h files.
Item 3) is the number of itk*.h files used in Slicer4 that are not in ITK.
Then, I created a .cxx file that contained all of the *.h files that
Slicer used from itk.
Item 2) is the output of gcc -MM run on the .cxx file.


Bill


More information about the Insight-developers mailing list