Defines | Functions
core/vil/vil_image_view.txx File Reference

Represent images of one or more planes of Ts. More...

#include "vil_image_view.h"
#include <vcl_string.h>
#include <vcl_cassert.h>
#include <vcl_cstdlib.h>
#include <vcl_cmath.h>
#include <vcl_ostream.h>
#include <vil/vil_pixel_format.h>
#include <vil/vil_exception.h>
#include <vcl_cstring.h>
#include <vcl_algorithm.h>

Go to the source code of this file.

Defines

#define vil_image_view_txx_
#define VIL_IMAGE_VIEW_INSTANTIATE(T)

Functions

template<class T >
bool convert_components_from_planes (vil_image_view< T > &lhs, const vil_image_view_base &rhs_base)
 Convert planes to components from planes, or do nothing if types are wrong.
VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes (vil_image_view< float > &, const vil_image_view_base &)
VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes (vil_image_view< double > &, const vil_image_view_base &)
VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes (vil_image_view< bool > &, const vil_image_view_base &)
VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes (vil_image_view< vxl_sbyte > &, const vil_image_view_base &)
VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes (vil_image_view< vxl_byte > &, const vil_image_view_base &)
VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes (vil_image_view< vxl_int_16 > &, const vil_image_view_base &)
VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes (vil_image_view< vxl_uint_16 > &, const vil_image_view_base &)
VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes (vil_image_view< vxl_int_32 > &, const vil_image_view_base &)
VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes (vil_image_view< vxl_uint_32 > &, const vil_image_view_base &)
template<class T >
bool convert_planes_from_components (vil_image_view< T > &, const vil_image_view_base &)
 Convert components to planes from planes, or do nothing if types are wrong.
VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components (vil_image_view< vil_rgb< vxl_byte > > &lhs, const vil_image_view_base &rhs)
VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components (vil_image_view< vil_rgba< vxl_uint_16 > > &lhs, const vil_image_view_base &rhs)
VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components (vil_image_view< vxl_byte > &lhs, const vil_image_view_base &rhs_base)
VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components (vil_image_view< vxl_sbyte > &lhs, const vil_image_view_base &rhs_base)
VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components (vil_image_view< vxl_uint_16 > &lhs, const vil_image_view_base &rhs_base)
VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components (vil_image_view< vxl_int_16 > &lhs, const vil_image_view_base &rhs_base)
VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components (vil_image_view< vxl_uint_32 > &lhs, const vil_image_view_base &rhs_base)
VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components (vil_image_view< vxl_int_32 > &lhs, const vil_image_view_base &rhs_base)
VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components (vil_image_view< float > &lhs, const vil_image_view_base &rhs_base)
VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components (vil_image_view< double > &lhs, const vil_image_view_base &rhs_base)
template<class T >
bool vil_image_view_deep_equality (const vil_image_view< T > &lhs, const vil_image_view< T > &rhs)
 True if the actual images are identical.
template<class T >
vcl_string vil_image_view_type_name (T *)

Detailed Description

Represent images of one or more planes of Ts.

Author:
Ian Scott

Note: To keep down size of vil_image_view Please think carefully before adding any new methods. In particular any methods that provide new views (e.g. vil_plane) will be more usefully provided as external functions. - IMS. In that case, use the "relates" keyword of Doxygen to link the documentation of that function to the vil_image_view class.

    Modifications
     23 Oct.2003 - Peter Vanroose - Added support for 64-bit int pixels
   

Definition in file vil_image_view.txx.


Define Documentation

#define VIL_IMAGE_VIEW_INSTANTIATE (   T)
Value:
VCL_DEFINE_SPECIALIZATION vcl_string vil_image_view_type_name(T*) \
{ return vcl_string("vil_image_view<" #T ">"); } \
template class vil_image_view<T >; \
template bool vil_image_view_deep_equality(const vil_image_view<T >&, \
                                           const vil_image_view<T >&)

Definition at line 883 of file vil_image_view.txx.

#define vil_image_view_txx_

Definition at line 3 of file vil_image_view.txx.


Function Documentation

template<class T >
bool convert_components_from_planes ( vil_image_view< T > &  lhs,
const vil_image_view_base rhs_base 
) [inline]

Convert planes to components from planes, or do nothing if types are wrong.

Definition at line 177 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes ( vil_image_view< float > &  ,
const vil_image_view_base  
) [inline]

Definition at line 206 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes ( vil_image_view< double > &  ,
const vil_image_view_base  
) [inline]

Definition at line 211 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes ( vil_image_view< bool > &  ,
const vil_image_view_base  
) [inline]

Definition at line 216 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes ( vil_image_view< vxl_sbyte > &  ,
const vil_image_view_base  
) [inline]

Definition at line 221 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes ( vil_image_view< vxl_byte > &  ,
const vil_image_view_base  
) [inline]

Definition at line 226 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes ( vil_image_view< vxl_int_16 > &  ,
const vil_image_view_base  
) [inline]

Definition at line 231 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes ( vil_image_view< vxl_uint_16 > &  ,
const vil_image_view_base  
) [inline]

Definition at line 236 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes ( vil_image_view< vxl_int_32 > &  ,
const vil_image_view_base  
) [inline]

Definition at line 241 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_components_from_planes ( vil_image_view< vxl_uint_32 > &  ,
const vil_image_view_base  
) [inline]

Definition at line 246 of file vil_image_view.txx.

template<class T >
bool convert_planes_from_components ( vil_image_view< T > &  ,
const vil_image_view_base  
) [inline]

Convert components to planes from planes, or do nothing if types are wrong.

Definition at line 266 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components ( vil_image_view< vil_rgb< vxl_byte > > &  lhs,
const vil_image_view_base rhs 
) [inline]

Definition at line 271 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components ( vil_image_view< vil_rgba< vxl_uint_16 > > &  lhs,
const vil_image_view_base rhs 
) [inline]

Definition at line 289 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components ( vil_image_view< vxl_byte > &  lhs,
const vil_image_view_base rhs_base 
) [inline]

Definition at line 308 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components ( vil_image_view< vxl_sbyte > &  lhs,
const vil_image_view_base rhs_base 
) [inline]

Definition at line 332 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components ( vil_image_view< vxl_uint_16 > &  lhs,
const vil_image_view_base rhs_base 
) [inline]

Definition at line 356 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components ( vil_image_view< vxl_int_16 > &  lhs,
const vil_image_view_base rhs_base 
) [inline]

Definition at line 380 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components ( vil_image_view< vxl_uint_32 > &  lhs,
const vil_image_view_base rhs_base 
) [inline]

Definition at line 404 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components ( vil_image_view< vxl_int_32 > &  lhs,
const vil_image_view_base rhs_base 
) [inline]

Definition at line 428 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components ( vil_image_view< float > &  lhs,
const vil_image_view_base rhs_base 
) [inline]

Definition at line 504 of file vil_image_view.txx.

VCL_DEFINE_SPECIALIZATION bool convert_planes_from_components ( vil_image_view< double > &  lhs,
const vil_image_view_base rhs_base 
) [inline]

Definition at line 528 of file vil_image_view.txx.

template<class T >
bool vil_image_view_deep_equality ( const vil_image_view< T > &  lhs,
const vil_image_view< T > &  rhs 
)

True if the actual images are identical.

$\bigwedge_{i,j,p} {\textstyle src}(i,j,p) == {\textstyle dest}(i,j,p)$ The data may be formatted differently in each memory chunk. O(size).

Definition at line 852 of file vil_image_view.txx.

template<class T >
vcl_string vil_image_view_type_name ( T *  )