The success of the ITK Wiki Examples depends on the contributions from the ITK user community. If you wish to contribute to this valuable resource, please follow these guidelines. If you are a Wiki Example User, go here or a Wiki Example Administrator go here.

Create an Example

C++, Tcl, Python and Java examples are welcome. Examples should illustrate a single concept.

Follow the Coding Guidelines

When you write an example, please follow the coding guidelines. Create the example on your local system, compile and run it before you store it on the wiki.

Choose a Topic

The examples are organized by topic. Current topics include etc.

Create a Wiki Page

 What you want to display as the link
=ExampleName.cxx==
<source lang="cpp">
// your code here
</source>

There are two templates available that will generate proper CMakeLists.txt files. Place one of these at the bottom of the wiki page.

{{ITKCMakeLists|{{SUBPAGENAME}}}}
{{ITKVTKCMakeLists|{{SUBPAGENAME}}}}

Wiki Example Boilerplate

Here is boilerplate you can cut and paste to start:

A description of the example.
Contributed by:
==ITKExample.cxx==
<source lang="cpp">
// Insert your c++ code here
int main (int argc, char *argv[])
{
  return EXIT_SUCCESS;
}
</source>
{{ITKCMakeLists|{{SUBPAGENAME}}}}
A description of the example.
Contributed by:
==ITKVTKExample.cxx==
<source lang="cpp">
// Insert your c++ code here
#include <QuickView.h>
int main (int argc, char *argv[])
{
  return EXIT_SUCCESS;
}
</source>
{{ITKVTKCMakeLists|{{SUBPAGENAME}}}}

Check the Nightly Dashboard

If the example is a C++ program, the example should show up on the Nightly Dashboard the morning after you edit the wiki page..