[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

Examples |

Demonstration programs for VIGRA's usage.

Click on the hyperlinks to view the commented source code for the demos. Most examples can be applied to both gray-scale and RGB images. See Installation for instructions on how these programs can be compiled. For convenience, the directory contains the test images lenna_gray.gif and lenna_color.gif.

- Convert an image file into another file type: convert.cxx
  Usage: `convert infile outfile`

- Read an image file and write out a subimage: subimage.cxx
  Usage: `subimage infile outfile`

- Invert an image file (create a negative) using the function transformImage(): invert.cxx
  Usage: `invert infile outfile`

- Invert an image file (create a negative) by coding the loop explicitly: invert_explicitly.cxx
  Usage: `invert_explicitly infile outfile`

- Resize an image using resizeImageSplineInterpolation(): resize.cxx
  Usage: `resize infile outfile`

- Smooth an image using Recursive convolution functions functions: smooth.cxx
  Usage: `smooth infile outfile`

- Find the gray value profile along the image diagonal by means of a vigra::LineIterator : profile.cxx
  Usage: `profile infile`, generates `profile.gif`

- Create series of slices through different color spaces.: palette.cxx
  Usage: `palette lab`, generates `lab_*.gif` (44 images)

- Reduce image size by mean of a Gaussian pyramid: pyramid.cxx
  Usage: `pyramid infile outfile`

- Find edges by means of a differenceOfExponentialEdgeImage(): edge.cxx
  Usage: `edge infile outfile`

- Segment image by means of the watershed algorithm, using seededRegionGrowing(): watershed.cxx
  Usage: `watershed infile outfile`

- Generate a Voronoi diagram, using distanceTransform() and seededRegionGrowing(): voronoi.cxx
  Usage: `voronoi`, generates: `distances.gif` (Euclidean distance transform) and `voronoi.gif` (Voronoi diagram)

- Measure boundary and corner strengths with the boundaryTensor(): boundarytensor.cxx
  Usage: `boundarytensor infile`, creates `boundarystrength.tif` and `cornerstrength.tif`

- Total Variation (TV) Regularization total_variation.cxx
  Usage: `total_variation parameterfile` (cf. example parameter files *.par for standard TV regularization, anisotropic and second order TV)

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany | html generated using doxygen and Python vigra 1.9.0 (Tue Nov 6 2012)