any simple example code for learning c++ and ITK for a beginner?

I am new to c++ and ITK. I learned to build and running examples.
I want to write a basic program when I can give my input image(not through command window) directly in the code and do certain changes like scaling,intensity contrast, intensity equalization, cropping an image etc. and write the output image in different file.

ALL I want is “HOw to read an image in C++ ??”

The simplest example of reading and writing an image is here. You might want to consult software guide, or its HTML version.

If you want to take advantage of ITKv5 (available in master branch, and will be released within a couple of months), you can take a look at ParallelizeImageRegion and FilterAndParallelizeImageRegion examples. The documentation of how to run these examples is here.

2 Likes