Defines | Functions
core/vil/vil_copy.txx File Reference
#include "vil_copy.h"
#include <vcl_cassert.h>
#include <vil/vil_image_view.h>

Go to the source code of this file.

Defines

#define vil_copy_txx_
#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.
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.
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.
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.

Detailed Description

Author:
Ian Scott, ISBE, Manchester
Date:
4 Oct 2002

Definition in file vil_copy.txx.


Define Documentation

#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); \
template vil_image_view<T > vil_copy_deep(const vil_image_view<T > &rhs)

Definition at line 68 of file vil_copy.txx.

#define vil_copy_txx_

Definition at line 3 of file vil_copy.txx.


Function Documentation

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.txx.

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.txx.

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.txx.

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.txx.