Functions
contrib/mul/vil3d/vil3d_scan_image.h File Reference

Read all voxels in an image (or pair) and feed into a functor. More...

#include <vcl_cassert.h>
#include <vil3d/vil3d_image_view.h>

Go to the source code of this file.

Functions

template<class T , class Fn >
void vil3d_scan_image (const vil3d_image_view< T > &im, Fn &f)
 Call f(v) for every voxel in the image.
template<class T1 , class T2 , class Fn >
void vil3d_scan_image (const vil3d_image_view< T1 > &im1, const vil3d_image_view< T2 > &im2, Fn &f)
 Call f(im1(i,j,k,p),im2(i,j,k,p)) for every voxel in the images.

Detailed Description

Read all voxels in an image (or pair) and feed into a functor.

Author:
Tim Cootes

Definition in file vil3d_scan_image.h.


Function Documentation

template<class T , class Fn >
void vil3d_scan_image ( const vil3d_image_view< T > &  im,
Fn &  f 
) [inline]

Call f(v) for every voxel in the image.

Definition at line 14 of file vil3d_scan_image.h.

template<class T1 , class T2 , class Fn >
void vil3d_scan_image ( const vil3d_image_view< T1 > &  im1,
const vil3d_image_view< T2 > &  im2,
Fn &  f 
) [inline]

Call f(im1(i,j,k,p),im2(i,j,k,p)) for every voxel in the images.

Definition at line 43 of file vil3d_scan_image.h.