Macros
vil_memory_image.cxx File Reference
#include <cstdlib>
#include "vil_memory_image.h"
#include <cassert>
#include <vxl_config.h>
#include <vil/vil_image_view.h>
#include <vil/vil_copy.h>
#include <vil/vil_pixel_format.h>

Go to the source code of this file.

Macros

#define macro(F, T)
 
#define macro(F, T)   case F : view_ = new vil_image_view<T >(view); break;
 
#define macro(F, T)
 
#define macro(F, T)
 
#define macro(F, T)
 

Detailed Description

Author
Ian Scott
  Modifications
   23 Oct.2003 - Peter Vanroose - Added support for 64-bit int pixels

Definition in file vil_memory_image.cxx.

Macro Definition Documentation

◆ macro [1/5]

#define macro (   F,
 
)
Value:
case F : view_ = new vil_image_view<T >(n_i, n_j, n_planes, n_interleaved_planes); \
break;
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13

◆ macro [2/5]

#define macro (   F,
 
)    case F : view_ = new vil_image_view<T >(view); break;

◆ macro [3/5]

#define macro (   F,
 
)
Value:
case F : { \
const vil_image_view< T > &v = static_cast<const vil_image_view< T > &>(*view_); \
vil_image_view< T > w(v.memory_chunk(), &v(i0,j0), \
n_i, n_j, v.nplanes(), \
v.istep(), v.jstep(), v.planestep()); \
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
#define v
bool vil_copy_deep(const vil_image_resource_sptr &src, vil_image_resource_sptr &dest)
Copy src to dest.
Definition: vil_copy.cxx:45

◆ macro [4/5]

#define macro (   F,
 
)
Value:
case F : { \
const vil_image_view< T > &v = static_cast<const vil_image_view< T > &>(*view_); \
return new vil_image_view< T >(v.memory_chunk(), &v(i0,j0), \
n_i, n_j, v.nplanes(), \
v.istep(), v.jstep(), v.planestep()); }
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
#define v

◆ macro [5/5]

#define macro (   F,
 
)
Value:
case F : { \
vil_image_view< T > &v = static_cast<vil_image_view< T > &>(*view_); \
const vil_image_view< T > &w = static_cast<const vil_image_view< T > &>(im); \
if (v.memory_chunk() == w.memory_chunk()) \
{ \
if (&v(i0,j0) != w.top_left_ptr()) { \
std::cerr << "ERROR: vil_memory_image::put_view()\n" \
<< "different window from that used in get_view()\n"; \
std::abort(); } \
else return true; /* The user has already modified the data in place. */ \
} \
vil_copy_to_window(w, v, i0, j0); \
return true; }
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
#define v