Macros | Functions
vil_print.cxx File Reference

Various functions for manipulating image views. More...

#include <complex>
#include "vil_print.h"
#include <vxl_config.h>
#include <vil/vil_rgb.h>
#include <vil/vil_rgba.h>

Go to the source code of this file.

Macros

#define docase(T)
 

Functions

template<>
void vil_print_value (std::ostream &os, const bool &value, unsigned)
 Explicit overload for bool. More...
 
template<>
void vil_print_value (std::ostream &os, const vxl_byte &value, unsigned)
 Explicit overload for byte. More...
 
template<>
void vil_print_value (std::ostream &os, const vxl_sbyte &value, unsigned)
 Explicit overload for signed byte. More...
 
template<>
void vil_print_value (std::ostream &os, const vxl_int_16 &value, unsigned width)
 Explicit overload for short. More...
 
template<>
void vil_print_value (std::ostream &os, const vxl_uint_16 &value, unsigned width)
 Explicit overload for unsigned short. More...
 
template<>
void vil_print_value (std::ostream &os, const vxl_int_32 &value, unsigned width)
 Explicit overload for int. More...
 
template<>
void vil_print_value (std::ostream &os, const vxl_uint_32 &value, unsigned width)
 Explicit overload for unsigned int. More...
 
template<>
void vil_print_value (std::ostream &os, const float &value, unsigned)
 Explicit overload for float. More...
 
template<>
void vil_print_value (std::ostream &os, const double &value, unsigned)
 Explicit overload for double. More...
 
template<>
void vil_print_value (std::ostream &os, const std::complex< float > &value, unsigned)
 Explicit overload for complex float. More...
 
template<>
void vil_print_value (std::ostream &os, const std::complex< double > &value, unsigned)
 Explicit overload for complex double. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgb< vxl_byte > &value, unsigned)
 Explicit overload of print for rgb<byte>. More...
 
template<>
void vil_print_value (std::ostream &os, vil_rgb< vxl_sbyte > const &value, unsigned)
 Explicit overload of print for rgb<sbyte>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgb< vxl_int_16 > &value, unsigned width)
 Explicit overload of print for rgb<short>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgb< vxl_uint_16 > &value, unsigned width)
 Explicit overload of print for rgb<unsigned short>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgb< vxl_int_32 > &value, unsigned width)
 Explicit overload of print for rgb<int>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgb< vxl_uint_32 > &value, unsigned width)
 Explicit overload of print for rgb<unsigned int>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgb< float > &value, unsigned)
 Explicit overload of print for rgb<float>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgb< double > &value, unsigned)
 Explicit overload of print for rgb<double>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgba< vxl_byte > &value, unsigned)
 Explicit overload of print for rgba<byte>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgba< vxl_sbyte > &value, unsigned)
 Explicit overload of print for rgba<sbyte>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgba< vxl_int_16 > &value, unsigned width)
 Explicit overload of print for rgba<short>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgba< vxl_uint_16 > &value, unsigned width)
 Explicit overload of print for rgba<unsigned short>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgba< vxl_int_32 > &value, unsigned width)
 Explicit overload of print for rgba<int>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgba< vxl_uint_32 > &value, unsigned width)
 Explicit overload of print for rgba<unsigned int>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgba< float > &value, unsigned)
 Explicit overload of print for rgba<float>. More...
 
template<>
void vil_print_value (std::ostream &os, const vil_rgba< double > &value, unsigned)
 Explicit overload of print for rgba<double>. More...
 
void vil_print_all (std::ostream &os, vil_image_view_base_sptr const &view)
 Print all image data to os in a grid. More...
 

Detailed Description

Various functions for manipulating image views.

Author
Tim Cootes - Manchester
  Modifications
   23 Oct.2003 - Peter Vanroose - Added support for 64-bit int pixels

Definition in file vil_print.cxx.

Macro Definition Documentation

◆ docase

#define docase (   T)
Value:
case T: \
vil_print_all(os, static_cast<vil_image_view< vil_pixel_format_type_of<T >::type > >(view) );\
break
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13

Function Documentation

◆ vil_print_all()

void vil_print_all ( std::ostream &  os,
vil_image_view_base_sptr const &  view 
)

Print all image data to os in a grid.

Definition at line 434 of file vil_print.cxx.

◆ vil_print_value() [1/27]

template<>
void vil_print_value ( std::ostream &  os,
const bool &  value,
unsigned   
)

Explicit overload for bool.

Definition at line 23 of file vil_print.cxx.

◆ vil_print_value() [2/27]

template<>
void vil_print_value ( std::ostream &  os,
const vxl_byte &  value,
unsigned   
)

Explicit overload for byte.

Definition at line 30 of file vil_print.cxx.

◆ vil_print_value() [3/27]

template<>
void vil_print_value ( std::ostream &  os,
const vxl_sbyte &  value,
unsigned   
)

Explicit overload for signed byte.

Definition at line 38 of file vil_print.cxx.

◆ vil_print_value() [4/27]

template<>
void vil_print_value ( std::ostream &  os,
const vxl_int_16 &  value,
unsigned  width 
)

Explicit overload for short.

Definition at line 46 of file vil_print.cxx.

◆ vil_print_value() [5/27]

template<>
void vil_print_value ( std::ostream &  os,
const vxl_uint_16 &  value,
unsigned  width 
)

Explicit overload for unsigned short.

Definition at line 60 of file vil_print.cxx.

◆ vil_print_value() [6/27]

template<>
void vil_print_value ( std::ostream &  os,
const vxl_int_32 &  value,
unsigned  width 
)

Explicit overload for int.

Definition at line 72 of file vil_print.cxx.

◆ vil_print_value() [7/27]

template<>
void vil_print_value ( std::ostream &  os,
const vxl_uint_32 &  value,
unsigned  width 
)

Explicit overload for unsigned int.

Definition at line 89 of file vil_print.cxx.

◆ vil_print_value() [8/27]

template<>
void vil_print_value ( std::ostream &  os,
const float &  value,
unsigned   
)

Explicit overload for float.

Definition at line 140 of file vil_print.cxx.

◆ vil_print_value() [9/27]

template<>
void vil_print_value ( std::ostream &  os,
const double &  value,
unsigned   
)

Explicit overload for double.

Definition at line 147 of file vil_print.cxx.

◆ vil_print_value() [10/27]

template<>
void vil_print_value ( std::ostream &  os,
const std::complex< float > &  value,
unsigned   
)

Explicit overload for complex float.

Definition at line 154 of file vil_print.cxx.

◆ vil_print_value() [11/27]

template<>
void vil_print_value ( std::ostream &  os,
const std::complex< double > &  value,
unsigned   
)

Explicit overload for complex double.

Definition at line 161 of file vil_print.cxx.

◆ vil_print_value() [12/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgb< vxl_byte > &  value,
unsigned   
)

Explicit overload of print for rgb<byte>.

Definition at line 168 of file vil_print.cxx.

◆ vil_print_value() [13/27]

template<>
void vil_print_value ( std::ostream &  os,
vil_rgb< vxl_sbyte > const &  value,
unsigned   
)

Explicit overload of print for rgb<sbyte>.

Definition at line 186 of file vil_print.cxx.

◆ vil_print_value() [14/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgb< vxl_int_16 > &  value,
unsigned  width 
)

Explicit overload of print for rgb<short>.

Definition at line 207 of file vil_print.cxx.

◆ vil_print_value() [15/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgb< vxl_uint_16 > &  value,
unsigned  width 
)

Explicit overload of print for rgb<unsigned short>.

Definition at line 218 of file vil_print.cxx.

◆ vil_print_value() [16/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgb< vxl_int_32 > &  value,
unsigned  width 
)

Explicit overload of print for rgb<int>.

Definition at line 229 of file vil_print.cxx.

◆ vil_print_value() [17/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgb< vxl_uint_32 > &  value,
unsigned  width 
)

Explicit overload of print for rgb<unsigned int>.

Definition at line 240 of file vil_print.cxx.

◆ vil_print_value() [18/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgb< float > &  value,
unsigned   
)

Explicit overload of print for rgb<float>.

Definition at line 277 of file vil_print.cxx.

◆ vil_print_value() [19/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgb< double > &  value,
unsigned   
)

Explicit overload of print for rgb<double>.

Definition at line 285 of file vil_print.cxx.

◆ vil_print_value() [20/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgba< vxl_byte > &  value,
unsigned   
)

Explicit overload of print for rgba<byte>.

Definition at line 292 of file vil_print.cxx.

◆ vil_print_value() [21/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgba< vxl_sbyte > &  value,
unsigned   
)

Explicit overload of print for rgba<sbyte>.

Definition at line 314 of file vil_print.cxx.

◆ vil_print_value() [22/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgba< vxl_int_16 > &  value,
unsigned  width 
)

Explicit overload of print for rgba<short>.

Definition at line 340 of file vil_print.cxx.

◆ vil_print_value() [23/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgba< vxl_uint_16 > &  value,
unsigned  width 
)

Explicit overload of print for rgba<unsigned short>.

Definition at line 353 of file vil_print.cxx.

◆ vil_print_value() [24/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgba< vxl_int_32 > &  value,
unsigned  width 
)

Explicit overload of print for rgba<int>.

Definition at line 366 of file vil_print.cxx.

◆ vil_print_value() [25/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgba< vxl_uint_32 > &  value,
unsigned  width 
)

Explicit overload of print for rgba<unsigned int>.

Definition at line 379 of file vil_print.cxx.

◆ vil_print_value() [26/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgba< float > &  value,
unsigned   
)

Explicit overload of print for rgba<float>.

Definition at line 422 of file vil_print.cxx.

◆ vil_print_value() [27/27]

template<>
void vil_print_value ( std::ostream &  os,
const vil_rgba< double > &  value,
unsigned   
)

Explicit overload of print for rgba<double>.

Definition at line 429 of file vil_print.cxx.