Classes | Functions
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. More...
 
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. More...
 
vil_image_resource_sptr vil_flip_lr (const vil_image_resource_sptr &src)
 Flip an image resource left to right. More...
 
vil_image_resource_sptr vil_flip_ud (const vil_image_resource_sptr &src)
 Flip an image resource left to right. More...
 

Detailed Description

Author
Ian Scott.

Definition in file vil_flip.h.

Function Documentation

◆ vil_flip_lr() [1/2]

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 17 of file vil_flip.h.

◆ vil_flip_lr() [2/2]

vil_image_resource_sptr vil_flip_lr ( const vil_image_resource_sptr src)

Flip an image resource left to right.

Definition at line 14 of file vil_flip.cxx.

◆ vil_flip_ud() [1/2]

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 30 of file vil_flip.h.

◆ vil_flip_ud() [2/2]

vil_image_resource_sptr vil_flip_ud ( const vil_image_resource_sptr src)

Flip an image resource left to right.

Definition at line 121 of file vil_flip.cxx.