vepl2 : Easy Image Processing Library

This library essentially just provides wrappers around the templated IP classes of the vipl library, but limited to images of type vil_image_view<T> .

For every class in vipl , there is a function in vepl2 with the same name (after substituting "vipl" by "vepl2"), which returns a vil_image_resource_sptr, whose first argument is a vil_image_resource_sptr, (the input image), and where the possible extra arguments are identical to the arguments of the constructor of the corresponding vipl class.

To get an idea of how to use these functions, have a look at the example programs in tbl/vepl2/examples/ . The examples are worked out, in the sense that they also take care of loading and saving the images and possibly reading the filter parameters from standard input. Ignoring this, the use of a particular IP filter is just a single line: e.g.:

*   vil_image_resource_sptr im1 = vil_load_image_resource("filename");
*   vil_image_resource_sptr im2 = vepl2_gradient_mag(im1);
*   vil_image_resource_sptr im3 = vepl2_median(im2, 1.5); // median filter with radius 1.5
*   vil_image_resource_sptr im4 = vepl2_threshold(im3, 59,0,255); // binary clipping at 59
*   vil_save_image_resource(im4, "edges_image.pgm"); // type "pnm" deduced from file extension
* 

Generated on Sun Nov 22 06:26:39 2009 for contrib/tbl/vepl2 by  doxygen 1.5.5