core/vil1/vil1_image_as.h File Reference


Detailed Description

Set of vil1_image_as functions.

Author:
fsm

Definition in file vil1_image_as.h.

#include <vil1/vil1_image.h>

Go to the source code of this file.


Functions

template<class T>
vil1_image vil1_image_as (vil1_image const &i, T *dummy)
 Converts to a different pixel type.
vil1_image vil1_image_as_byte (vil1_image const &i)
 Converts to a greyscale image with byte (8bit unsigned) pixels.
vil1_image vil1_image_as_uint16 (vil1_image const &image)
 Converts to a greyscale image with 16bit unsigned pixels.
vil1_image vil1_image_as_int (vil1_image const &i)
 Converts to a greyscale image with integer (32bit) pixels.
vil1_image vil1_image_as_float (vil1_image const &i)
 Converts to a grayscale image with float pixels.
vil1_image vil1_image_as_double (vil1_image const &i)
 Converts to a greyscale image with integer double pixels.
vil1_image vil1_image_as_rgb_byte (vil1_image const &i)
 Converts to a rgb image with 8 bits per component.
vil1_image vil1_image_as_rgb_uint16 (vil1_image const &i)
 Converts to a rgb image with 16 bits per component.
vil1_image vil1_image_as_rgb_float (vil1_image const &i)
 Converts to a rgb image with float components.

Function Documentation

template<class T>
vil1_image vil1_image_as ( vil1_image const &  i,
T *  dummy 
)

Converts to a different pixel type.

There is no scaling performed, so beware of clamping effects. Sample usage:

   out = vil1_image_as<int>( in );
or, on compilers that require the arguments to specify the templates:
   out = vil1_image_as( in , (int*)0 );
Converting a RGB buffer to greyscale will do a RGB->luminance conversion. That is, different weights will be applied to each of the R, G and B values to obtain the resulting grey value.

vil1_image vil1_image_as_byte ( vil1_image const &  i  ) 

Converts to a greyscale image with byte (8bit unsigned) pixels.

See also:
{vil1_image_as}.

Definition at line 306 of file vil1_image_as.cxx.

vil1_image vil1_image_as_double ( vil1_image const &  i  ) 

Converts to a greyscale image with integer double pixels.

See also:
{vil1_image_as}.

Definition at line 551 of file vil1_image_as.cxx.

vil1_image vil1_image_as_float ( vil1_image const &  i  ) 

Converts to a grayscale image with float pixels.

See also:
{vil1_image_as}.

Definition at line 490 of file vil1_image_as.cxx.

vil1_image vil1_image_as_int ( vil1_image const &  i  ) 

Converts to a greyscale image with integer (32bit) pixels.

See also:
{vil1_image_as}.

Definition at line 429 of file vil1_image_as.cxx.

vil1_image vil1_image_as_rgb_byte ( vil1_image const &  i  ) 

Converts to a rgb image with 8 bits per component.

See also:
{vil1_image_as}.

Definition at line 616 of file vil1_image_as.cxx.

vil1_image vil1_image_as_rgb_float ( vil1_image const &  i  ) 

Converts to a rgb image with float components.

See also:
{vil1_image_as}.

Definition at line 681 of file vil1_image_as.cxx.

vil1_image vil1_image_as_rgb_uint16 ( vil1_image const &  i  ) 

Converts to a rgb image with 16 bits per component.

See also:
{vil1_image_as}.

Definition at line 749 of file vil1_image_as.cxx.

vil1_image vil1_image_as_uint16 ( vil1_image const &  image  ) 

Converts to a greyscale image with 16bit unsigned pixels.

See also:
{vil1_image_as}.

Definition at line 367 of file vil1_image_as.cxx.


Generated on Sat Sep 6 05:08:46 2008 for core/vil1 by  doxygen 1.5.1