Various type conversion functions for vimt_image objects. More...
Go to the source code of this file.
Functions | |
template<class srcT , class destT > | |
void | vimt_convert_cast (const vimt_image_2d_of< srcT > &src_im, vimt_image_2d_of< destT > &dest_im) |
Converts by applying a cast. | |
template<class srcT , class destT > | |
void | vimt_convert_round (const vimt_image_2d_of< srcT > &src_im, vimt_image_2d_of< destT > &dest_im) |
Converts by rounding. | |
template<class srcT > | |
void | vimt_convert_stretch_range (const vimt_image_2d_of< srcT > &src_im, vimt_image_2d_of< vxl_byte > &dest_im) |
Convert src to byte image dest by stretching to range [0,255]. |
Various type conversion functions for vimt_image objects.
Definition in file vimt_convert.h.
void vimt_convert_cast | ( | const vimt_image_2d_of< srcT > & | src_im, |
vimt_image_2d_of< destT > & | dest_im | ||
) |
Converts by applying a cast.
If the two pixel types are the same, the destination may only be a shallow copy of the source.
Definition at line 21 of file vimt_convert.h.
void vimt_convert_round | ( | const vimt_image_2d_of< srcT > & | src_im, |
vimt_image_2d_of< destT > & | dest_im | ||
) |
Converts by rounding.
If the two pixel types are the same, the destination may only be a shallow copy of the source.
Definition at line 32 of file vimt_convert.h.
void vimt_convert_stretch_range | ( | const vimt_image_2d_of< srcT > & | src_im, |
vimt_image_2d_of< vxl_byte > & | dest_im | ||
) |
Convert src to byte image dest by stretching to range [0,255].
Definition at line 41 of file vimt_convert.h.