Functions
contrib/mul/vil3d/vil3d_from_image_2d.h File Reference
#include <vil/vil_image_view.h>
#include <vil3d/vil3d_image_view.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Functions

template<class T >
vil3d_image_view< T > vil3d_from_image_2d (const vil_image_view< T > &im)
 Return a 3D image view containing a single slice obtained from a 2D image.

Detailed Description

Author:
Kevin de Souza

Definition in file vil3d_from_image_2d.h.


Function Documentation

template<class T >
vil3d_image_view< T > vil3d_from_image_2d ( const vil_image_view< T > &  im) [inline]

Return a 3D image view containing a single slice obtained from a 2D image.

result(x,y,0,p)=im(x,y,p)

Note:
Assumes that input image planes (if more than 1) are stored separately, i.e. that im.planestep()==im.ni()*im.nj()

Definition at line 25 of file vil3d_from_image_2d.h.