1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
|
/** \page ExampleList 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 <a href="Installation.html">Installation</a> for instructions on how these
programs can be compiled. For convenience, the directory contains the test images
<a href="lenna_gray.gif">lenna_gray.gif</a> and
<a href="lenna_color.gif">lenna_color.gif</a>.
<ul>
<li> Convert an image file into another file type:
<a href="convert_8cxx-example.html">convert.cxx</a> <br>
Usage: <TT>example_convert infile outfile</TT>
<li> Read an image file and write out a subimage:
<a href="subimage_8cxx-example.html">subimage.cxx</a> <br>
Usage: <TT>example_subimage infile outfile</TT>
<li> Invert an image file (create a negative) using the function
\ref transformImage():
<a href="invert_8cxx-example.html">invert.cxx</a> <br>
Usage: <TT>example_invert infile outfile</TT>
<li> Invert an image file (create a negative) by coding the loop
explicitly:
<a href="invert_explicitly_8cxx-example.html">invert_explicitly.cxx</a> <br>
Usage: <TT>example_invert_explicitly infile outfile</TT>
<li> Resize an image using \ref resizeImageSplineInterpolation():
<a href="resize_8cxx-example.html">resize.cxx</a> <br>
Usage: <TT>example_resize infile outfile</TT>
<li> Smooth an image using \ref RecursiveConvolution functions:
<a href="smooth_8cxx-example.html">smooth.cxx</a> <br>
Usage: <TT>example_smooth infile outfile</TT>
<li> Find the gray value profile along the image diagonal
by means of a \ref vigra::LineIterator :
<a href="profile_8cxx-example.html">profile.cxx</a> <br>
Usage: <TT>example_profile infile</TT>, generates <TT>profile.gif</TT>
<li> Create series of slices through different color spaces.:
<a href="palette_8cxx-example.html">palette.cxx</a> <br>
Usage: <TT>example_palette lab</TT>, generates <TT>lab_*.gif</TT> (44 images)
<li> Reduce image size by mean of a Gaussian pyramid:
<a href="pyramid_8cxx-example.html">pyramid.cxx</a> <br>
Usage: <TT>example_pyramid infile outfile</TT>
<li> Find edges by means of a
\ref differenceOfExponentialEdgeImage():
<a href="edge_8cxx-example.html">edge.cxx</a> <br>
Usage: <TT>example_edge infile outfile</TT>
<li> Segment image by means of the watershed algorithm, using
\ref seededRegionGrowing():
<a href="watershed_8cxx-example.html">watershed.cxx</a> <br>
Usage: <TT>example_watershed infile outfile</TT>
<li> Generate a Voronoi diagram, using \ref distanceTransform() and
\ref seededRegionGrowing():
<a href="voronoi_8cxx-example.html">voronoi.cxx</a> <br>
Usage: <TT>example_voronoi</TT>, generates: <TT>distances.gif</TT> (Euclidean distance transform) and <TT>voronoi.gif</TT>
(Voronoi diagram)
<li> Measure boundary and corner strengths with the
\ref boundaryTensor():
<a href="example_boundarytensor_8cxx-example.html">boundarytensor.cxx</a> <br>
Usage: <TT>boundarytensor infile</TT>, creates <tt>boundarystrength.tif</tt> and <tt>cornerstrength.tif</tt>
<li> Total Variation (TV) Regularization
<a href="total_variation_8cxx-example.html">total_variation.cxx</a> <br>
Usage: <TT>example_total_variation parameterfile</TT>
(cf. example parameter files *.par for standard TV regularization, anisotropic and second order TV)
<li> Non-negative least-squares regression
<a href="nnlsq_8cxx-example.html">nnlsq.cxx</a> <br>
Usage: <TT>example_nnlsq</TT> (no parameters - example data are defined in nnlsq.cxx)
</ul>
*/
/** \example convert.cxx
Convert an image file into another file type
<br>
Usage: <TT>example_convert infile outfile</TT>
*/
/** \example subimage.cxx
Read an image file and write out a subimage
<br>
Usage: <TT>example_subimage infile outfile</TT>
*/
/** \example invert.cxx
Invert an image file (create a negative) using the function
\ref transformImage()
<br>
Usage: <TT>example_invert infile outfile</TT>
*/
/** \example invert_explicitly.cxx
Invert an image file (create a negative) by coding the loop
explicitly
<br>
Usage: <TT>example_invert_explicitly infile outfile</TT>
*/
/** \example resize.cxx
Resize an image using \ref resizeImageSplineInterpolation()<br>
Usage: <TT>example_resize infile outfile</TT>
*/
/** \example smooth.cxx
Smooth an image using \ref RecursiveConvolution functions:
<a href="smooth.cxx-example.html">smooth.cxx</a> <br>
Usage: <TT>example_smooth infile outfile</TT>
*/
/** \example profile.cxx
Find the gray value profile along the image diagonal
by means of a \ref vigra::LineIterator <br>
Usage: <TT>example_profile infile</TT>, generates <TT>profile.gif</TT>
*/
/** \example palette.cxx
Create series of slices through different color spaces.
Usage: <TT>example_palette luv</TT>, generates <TT>luv_*.gif</TT> (44 images)
*/
/** \example pyramid.cxx
Reduce image size by mean of a Gaussian pyramid<br>
Usage: <TT>example_pyramid infile outfile</TT>
*/
/** \example edge.cxx
Find edges by means of a
\ref differenceOfExponentialEdgeImage()<br>
Usage: <TT>example_edge infile outfile</TT>
*/
/** \example watershed.cxx
Segment image by means of the watershed algorithm, using
\ref seededRegionGrowing()<br>
Usage: <TT>example_watershed infile outfile</TT>
*/
/** \example voronoi.cxx
Generate a Voronoi diagram, using \ref distanceTransform() and
\ref seededRegionGrowing()<br>
Usage: <TT>example_voronoi</TT>, generates: <TT>distances.gif</TT> (Euclidean distance transform) and <TT>voronoi.gif</TT> (Voronoi diagram)
*/
/** \example boundarytensor.cxx
Measure boundary and corner strengths with the
\ref boundaryTensor():
<a href="boundarytensor.cxx-example.html">boundarytensor.cxx</a> <br>
Usage: <TT>example_boundarytensor infile</TT>, creates <tt>boundarystrength.tif</tt> and <tt>cornerstrength.tif</tt>
*/
/** \example nnlsq.cxx
Solve a non-negative least-squares problem with the LARS algorithm (see \ref nonnegativeLeastSquares())
or the Goldfarb-Idnani algorithm (see \ref quadraticProgramming())<br>
Usage: <TT>example_nnlsq</TT> (no parameters - example data are defined in nnlsq.cxx)
*/
/** \example total_variation.cxx
Smooth an image with Total Variation (TV) regularization (standard ROF model, anisotropic, second order)<br>
Usage: <TT>example_total_variation</TT> reads a given parameter file (see tv.par, aniso_tv.par, secondo_oder_tv.par
in the examples subfolder) and performes a smoothing with TV regularization with the parameters given in this file.
*/
|