Functions
vil_copy.h File Reference

Various image copying functions. More...

#include <vil/vil_fwd.h>

Go to the source code of this file.

Functions

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...
 
template<class T >
void vil_copy_deep (const vil_image_view< T > &src, vil_image_view< T > &dest)
 Deep copy src to dest. More...
 
template<class T >
vil_image_view< T > vil_copy_deep (const vil_image_view< T > &src)
 Create a deep copy of an image, with completely new underlying memory. More...
 
bool vil_copy_deep (const vil_image_resource_sptr &src, vil_image_resource_sptr &dest)
 Copy src to dest. More...
 
vil_image_resource_sptr vil_copy_deep (const vil_image_resource_sptr &src)
 Creates an in memory vil_image_resource and copies the src to it. More...
 

Detailed Description

Various image copying functions.

Author
Ian Scott - Manchester
Date
4 Oct 2002

Definition in file vil_copy.h.

Function Documentation

◆ vil_copy_deep() [1/4]

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

Deep copy src to dest.

O(size).

Deep copy src to dest.

Definition at line 18 of file vil_copy.hxx.

◆ vil_copy_deep() [2/4]

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

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

O(size).

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

Definition at line 25 of file vil_copy.hxx.

◆ vil_copy_deep() [3/4]

bool vil_copy_deep ( const vil_image_resource_sptr src,
vil_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 45 of file vil_copy.cxx.

◆ vil_copy_deep() [4/4]

vil_image_resource_sptr vil_copy_deep ( const vil_image_resource_sptr src)

Creates an in memory vil_image_resource and copies the src to it.

The size and pixel type of the return vil_image_resource is determined by src O(size)

Definition at line 89 of file vil_copy.cxx.

◆ 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. 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 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(src.size).

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

Definition at line 53 of file vil_copy.hxx.