Functions
contrib/oul/ouml/image_convert.h File Reference
#include <vil1/vil1_memory_image_of.h>
#include <vil1/vil1_rgb.h>

Go to the source code of this file.

Functions

template<class T1 , class T2 >
vil1_memory_image_of< T2 > * convert_image (const vil1_memory_image_of< T1 > &from, T2 &var)
 Converts from one type of memory image to another.
template<>
vil1_memory_image_of< unsigned
char > * 
convert_image< vil1_rgb< unsigned char >, unsigned char > (const vil1_memory_image_of< vil1_rgb< unsigned char > > &from, unsigned char &var)
 convert image.
template<>
vil1_memory_image_of< double > * convert_image< vil1_rgb< unsigned char >, double > (const vil1_memory_image_of< vil1_rgb< unsigned char > > &from, double &var)

Function Documentation

template<class T1 , class T2 >
vil1_memory_image_of<T2>* convert_image ( const vil1_memory_image_of< T1 > &  from,
T2 &  var 
)

Converts from one type of memory image to another.

Parameters:
fromthe image converted from
vara dummy variable used so the right function is called.
Returns:
the resultant image - a new one
Author:
Brendan McCane

Definition at line 22 of file image_convert.txx.

template<>
vil1_memory_image_of<double>* convert_image< vil1_rgb< unsigned char >, double > ( const vil1_memory_image_of< vil1_rgb< unsigned char > > &  from,
double &  var 
)

Definition at line 68 of file image_convert.txx.

template<>
vil1_memory_image_of<unsigned char>* convert_image< vil1_rgb< unsigned char >, unsigned char > ( const vil1_memory_image_of< vil1_rgb< unsigned char > > &  from,
unsigned char &  var 
)

convert image.

Specialization for converting from rgb to greyscale

Parameters:
fromthe image converted from
vara dummy variable used so the right function is called.
Returns:
the resultant image - a new one
Author:
Brendan McCane

Definition at line 51 of file image_convert.txx.