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

Go to the source code of this file.

Classes

class  vil_flip_lr_image_resource
 A generic_image adaptor that behaves like a flipped left to right version of its input. More...
class  vil_flip_ud_image_resource
 A generic_image adaptor that behaves like a flipped left to right version of its input. More...

Functions

template<class T >
vil_image_view< T > vil_flip_lr (const vil_image_view< T > &v)
 Create a reflected view in which i -> ni-1-i.
template<class T >
vil_image_view< T > vil_flip_ud (const vil_image_view< T > &v)
 Create a reflected view in which y -> nj-1-j.
vil_image_resource_sptr vil_flip_lr (const vil_image_resource_sptr &src)
 Flip an image resource left to right.
vil_image_resource_sptr vil_flip_ud (const vil_image_resource_sptr &src)
 Flip an image resource left to right.

Detailed Description

Author:
Ian Scott.

Definition in file vil_flip.h.


Function Documentation

template<class T >
vil_image_view< T > vil_flip_lr ( const vil_image_view< T > &  v) [inline]

Create a reflected view in which i -> ni-1-i.

i.e. vil_flip_lr(view)(i,j,p) = view(ni-1-i,j,p) O(1).

Definition at line 20 of file vil_flip.h.

vil_image_resource_sptr vil_flip_lr ( const vil_image_resource_sptr src)

Flip an image resource left to right.

Definition at line 17 of file vil_flip.cxx.

template<class T >
vil_image_view< T > vil_flip_ud ( const vil_image_view< T > &  v) [inline]

Create a reflected view in which y -> nj-1-j.

i.e. vil_flip_ud(view)(i,j,p) = view(i,nj-1-j,p) O(1).

Definition at line 33 of file vil_flip.h.

vil_image_resource_sptr vil_flip_ud ( const vil_image_resource_sptr src)

Flip an image resource left to right.

Definition at line 124 of file vil_flip.cxx.