#include "vil1_clamp.h"
#include <vil1/vil1_clamp_image_impl.h>
Go to the source code of this file.
Defines | |
| #define | VIL1_CLAMP_PIXEL_INSTANTIATE(T) VCL_INSTANTIATE_INLINE(T vil1_clamp_pixel(T const& b, double range_min, double range_max)) |
Functions | |
| vil1_image | vil1_clamp (vil1_image src, double range_min, double range_max) |
| Adaptor which returns a vil1_image with pixel components clamped to given range. | |
| VIL1_CLAMP_PIXEL_INSTANTIATE (unsigned char) | |
| VIL1_CLAMP_PIXEL_INSTANTIATE (float) | |
| VIL1_CLAMP_PIXEL_INSTANTIATE (double) | |
| #define VIL1_CLAMP_PIXEL_INSTANTIATE | ( | T | ) | VCL_INSTANTIATE_INLINE(T vil1_clamp_pixel(T const& b, double range_min, double range_max)) |
Definition at line 20 of file vil1_clamp.cxx.
| vil1_image vil1_clamp | ( | vil1_image | src, | |
| double | range_min, | |||
| double | range_max | |||
| ) |
Adaptor which returns a vil1_image with pixel components clamped to given range.
Fits nicely into the functional composition and lazy evaluation scheme provided by the other vil1 adaptors. Old code can be implemented in the new style as vil1_image_as_byte(vil1_clamp(img, 0, 255)); vil1_image_as_rgb_byte(vil1_clamp(img, 0, 255));
Definition at line 15 of file vil1_clamp.cxx.
| VIL1_CLAMP_PIXEL_INSTANTIATE | ( | double | ) |
| VIL1_CLAMP_PIXEL_INSTANTIATE | ( | float | ) |
| VIL1_CLAMP_PIXEL_INSTANTIATE | ( | unsigned | char | ) |
1.5.1