core/vil/vil_fill.h File Reference


Detailed Description

Various functions for manipulating image views.

Author:
Tim Cootes - Manchester

Definition in file vil_fill.h.

#include <vcl_cassert.h>
#include <vil/vil_image_view.h>
#include <vcl_algorithm.h>

Go to the source code of this file.


Functions

template<class srcT>
void vil_fill_mask (vil_image_view< srcT > &image, const vil_image_view< bool > &mask, srcT value, bool b=true)
 Writes given value into each pixel of image under the elements of the mask set to b.
template<class T>
void vil_fill_disk (vil_image_view< T > &image, double ci, double cj, double r, T value)
 Fills pixels in disk with centre (ci,cj), radius r, with given value.

Function Documentation

template<class T>
void vil_fill_disk ( vil_image_view< T > &  image,
double  ci,
double  cj,
double  r,
value 
) [inline]

Fills pixels in disk with centre (ci,cj), radius r, with given value.

Fills all planes of image with the value.

Definition at line 197 of file vil_fill.h.

template<class srcT>
void vil_fill_mask ( vil_image_view< srcT > &  image,
const vil_image_view< bool > &  mask,
srcT  value,
bool  b = true 
) [inline]

Writes given value into each pixel of image under the elements of the mask set to b.

If mask.nplanes()==1 then the same mask is applied to every image plane, otherwise there must be the same number of mask planes as image planes.

Definition at line 162 of file vil_fill.h.


Generated on Mon Oct 6 05:07:42 2008 for core/vil by  doxygen 1.5.1