Various image copying functions. More...
#include <vil3d/vil3d_fwd.h>
Go to the source code of this file.
Functions | |
template<class T > | |
void | vil3d_copy_reformat (const vil3d_image_view< T > &src, vil3d_image_view< T > &dest) |
Copy src to dest, without changing dest's view parameters. | |
template<class T > | |
void | vil3d_copy_to_window (const vil3d_image_view< T > &src, vil3d_image_view< T > &dest, unsigned i0, unsigned j0, unsigned k0) |
Copy src to window in dest. | |
template<class T > | |
void | vil3d_copy_deep (const vil3d_image_view< T > &src, vil3d_image_view< T > &dest) |
Deep copy src to dest. | |
template<class T > | |
vil3d_image_view< T > | vil3d_copy_deep (const vil3d_image_view< T > &src) |
Create a deep copy of an image, with completely new underlying memory. | |
bool | vil3d_copy_deep (const vil3d_image_resource_sptr &src, vil3d_image_resource_sptr &dest) |
Copy src to dest. |
void vil3d_copy_deep | ( | const vil3d_image_view< T > & | src, |
vil3d_image_view< T > & | dest | ||
) |
vil3d_image_view< T > vil3d_copy_deep | ( | const vil3d_image_view< T > & | src | ) |
Create a deep copy of an image, with completely new underlying memory.
O(size).
Definition at line 25 of file vil3d_copy.txx.
bool vil3d_copy_deep | ( | const vil3d_image_resource_sptr & | src, |
vil3d_image_resource_sptr & | dest | ||
) |
Copy src to dest.
This is useful if you want to copy on image into a window on another image. src and dest must have identical sizes, and pixel-types. Returns false if the copy failed. O(size).
Definition at line 25 of file vil3d_copy.cxx.
void vil3d_copy_reformat | ( | const vil3d_image_view< T > & | src, |
vil3d_image_view< T > & | dest | ||
) |
Copy src to dest, without changing dest's view parameters.
This is useful if you want to copy on image into a window on another image. src and dest must have identical sizes, and types. O(size).
This is useful if you want to copy an image into a window on another image. src and dest must have identical sizes, and types.
Definition at line 37 of file vil3d_copy.txx.
void vil3d_copy_to_window | ( | const vil3d_image_view< T > & | src, |
vil3d_image_view< T > & | dest, | ||
unsigned | i0, | ||
unsigned | j0, | ||
unsigned | k0 | ||
) |
Copy src to window in dest.
Size of window is defined by src. O(src.size).
Size of window is defined by src. O(window.size).
Definition at line 54 of file vil3d_copy.txx.