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. | |
| 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 );
out = vil1_image_as( in , (int*)0 );
| vil1_image vil1_image_as_byte | ( | vil1_image const & | i | ) |
Converts to a greyscale image with byte (8bit unsigned) pixels.
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.
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.
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.
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.
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.
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.
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.
Definition at line 367 of file vil1_image_as.cxx.
1.5.1