Macros | Functions
vil_copy.hxx File Reference
#include "vil_copy.h"
#include <cassert>
#include <vil/vil_image_view.h>

Go to the source code of this file.

Macros

#define VIL_COPY_INSTANTIATE(T)
 

Functions

template<class T >
void vil_copy_deep (const vil_image_view< T > &src, vil_image_view< T > &dest)
 Create a copy of the data viewed by this, and return a view of copy. More...
 
template<class T >
vil_image_view< T > vil_copy_deep (const vil_image_view< T > &src)
 Create a copy of the data viewed by this, and return a view of copy. More...
 
template<class T >
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. More...
 
template<class T >
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. More...
 

Detailed Description

Author
Ian Scott, ISBE, Manchester
Date
4 Oct 2002

Definition in file vil_copy.hxx.

Macro Definition Documentation

◆ VIL_COPY_INSTANTIATE

#define VIL_COPY_INSTANTIATE (   T)
Value:
template void vil_copy_deep(const vil_image_view<T > &src, vil_image_view<T > &dest); \
template void vil_copy_to_window(const vil_image_view<T > &src, vil_image_view<T > &dest, \
unsigned i0, unsigned j0); \
template void vil_copy_reformat(const vil_image_view<T > &src, vil_image_view<T > &dest); \
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

Definition at line 68 of file vil_copy.hxx.

Function Documentation

◆ vil_copy_deep() [1/2]

template<class T >
void vil_copy_deep ( const vil_image_view< T > &  src,
vil_image_view< T > &  dest 
)

Create a copy of the data viewed by this, and return a view of copy.

Deep copy src to dest.

Definition at line 18 of file vil_copy.hxx.

◆ vil_copy_deep() [2/2]

template<class T >
vil_image_view<T> vil_copy_deep ( const vil_image_view< T > &  src)

Create a copy of the data viewed by this, and return a view of copy.

Create a deep copy of an image, with completely new underlying memory.

Definition at line 25 of file vil_copy.hxx.

◆ vil_copy_reformat()

template<class T >
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.

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 vil_copy.hxx.

◆ vil_copy_to_window()

template<class T >
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.

Size of window is defined by src. O(window.size).

Definition at line 53 of file vil_copy.hxx.