Read all voxels in an image (or pair) and feed into a functor. More...
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. |
Read all voxels in an image (or pair) and feed into a functor.
Definition in file vil3d_scan_image.h.
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.
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.