Classes | Functions
core/vil/vil_plane.h File Reference
#include <vil/vil_image_resource.h>
#include <vil/vil_image_view.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Classes

class  vil_plane_image_resource
 A generic_image adaptor that behaves like a single plane version of its input. More...

Functions

template<class T >
vil_image_view< T > vil_plane (const vil_image_view< T > &im, unsigned p)
 Return a view of im's plane p.
template<class T >
vil_image_view< T > vil_planes (const vil_image_view< T > &im, unsigned first, int skip, unsigned n)
 Return a view of a selection of im's planes.
vil_image_resource_sptr vil_plane (const vil_image_resource_sptr &src, unsigned p)
 Return a specific plane of an image.

Detailed Description

Author:
Ian Scott.

Definition in file vil_plane.h.


Function Documentation

template<class T >
vil_image_view< T > vil_plane ( const vil_image_view< T > &  im,
unsigned  p 
) [inline]

Return a view of im's plane p.

O(1).

Definition at line 20 of file vil_plane.h.

vil_image_resource_sptr vil_plane ( const vil_image_resource_sptr src,
unsigned  p 
)

Return a specific plane of an image.

Definition at line 19 of file vil_plane.cxx.

template<class T >
vil_image_view<T> vil_planes ( const vil_image_view< T > &  im,
unsigned  first,
int  skip,
unsigned  n 
) [inline]

Return a view of a selection of im's planes.

You can select any equally-spaced sequence of planes.

Parameters:
firstThe index of the first plane you want to select.
skipThe spacing in your selection - will be 1 for adjacent planes.
nThe total number of planes in your selection.

O(1).

Definition at line 35 of file vil_plane.h.