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

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. More...
 
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. More...
 
vil_image_resource_sptr vil_plane (const vil_image_resource_sptr &src, unsigned p)
 Return a specific plane of an image. More...
 

Detailed Description

Author
Ian Scott.

Definition in file vil_plane.h.

Function Documentation

◆ vil_plane() [1/2]

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_plane() [2/2]

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.

◆ vil_planes()

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.