vil_copy.h
Go to the documentation of this file.
1 // This is core/vil/vil_copy.h
2 #ifndef vil_copy_h_
3 #define vil_copy_h_
4 //:
5 // \file
6 // \brief Various image copying functions.
7 // \author Ian Scott - Manchester
8 // \date 4 Oct 2002
9 
10 #include <vil/vil_fwd.h>
11 
12 
13 //: Copy src to dest, without changing dest's view parameters.
14 // This is useful if you want to copy an image into a window on another image.
15 // src and dest must have identical sizes, and types.
16 // O(size).
17 // \relatesalso vil_image_view
18 template<class T>
20 
21 //: Copy src to window in dest.
22 // Size of window is defined by src.
23 // O(src.size).
24 // \relatesalso vil_image_view
25 template<class T>
27  unsigned i0, unsigned j0);
28 
29 //: Deep copy src to dest.
30 // O(size).
31 // \relatesalso vil_image_view
32 template<class T>
33 void vil_copy_deep(const vil_image_view<T> &src, vil_image_view<T> &dest);
34 
35 //: Create a deep copy of an image, with completely new underlying memory.
36 // O(size).
37 // \relatesalso vil_image_view
38 template<class T>
40 
41 
42 //: Copy src to dest.
43 // This is useful if you want to copy on image into a window on another image.
44 // src and dest must have identical sizes, and pixel-types. Returns false if the copy
45 // failed.
46 // O(size).
47 // \relatesalso vil_image_resource
49 
50 //: Creates an in memory vil_image_resource and copies the src to it.
51 // The size and pixel type of the return vil_image_resource is determined by src
52 // O(size)
53 // \relatesalso vil_image_resource
55 
56 #endif // vil_copy_h_
void vil_copy_to_window(const vil_image_view< T > &src, vil_image_view< T > &dest, unsigned i0, unsigned j0)
Copy src to window in dest.
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
void vil_copy_reformat(const vil_image_view< T > &src, vil_image_view< T > &dest)
Copy src to dest, without changing dest's view parameters.
bool vil_copy_deep(const vil_image_resource_sptr &src, vil_image_resource_sptr &dest)
Copy src to dest.
Definition: vil_copy.cxx:45