Macros | Functions
vil_plane.cxx File Reference
#include "vil_plane.h"
#include <cassert>

Go to the source code of this file.

Macros

#define macro(F, T)
 
#define macro(F, T)
 
#define macro(F, T)
 

Functions

vil_image_resource_sptr vil_plane (const vil_image_resource_sptr &src, unsigned p)
 Return a specific plane of an image. More...
 

Detailed Description

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

Definition in file vil_plane.cxx.

Macro Definition Documentation

◆ macro [1/3]

#define macro (   F,
 
)
Value:
case F : \
return new vil_image_view<T > (vil_plane(static_cast<const vil_image_view<T >&>(*vs), plane_));
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
vil_image_view< T > vil_plane(const vil_image_view< T > &im, unsigned p)
Return a view of im's plane p.
Definition: vil_plane.h:20

◆ macro [2/3]

#define macro (   F,
 
)
Value:
case F : \
return new vil_image_view<T > (vil_plane(static_cast<const vil_image_view<T >&>(*vs), plane_));
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
vil_image_view< T > vil_plane(const vil_image_view< T > &im, unsigned p)
Return a view of im's plane p.
Definition: vil_plane.h:20

◆ macro [3/3]

#define macro (   F,
 
)
Value:
case F : { \
const vil_image_view<T > view = static_cast<const vil_image_view<T >&>(im); \
vil_image_view<T > plane = vil_plane(static_cast<vil_image_view<T >&>(*vs), plane_); \
if (view == plane) return true; /* If we have already modified the data, do nothing */ \
for (unsigned j=0;j<view.nj();++j) \
for (unsigned i=0;i<view.ni();++i) \
plane(i,j) = view(i,j); \
return src_->put_view(*vs, i0, j0); }
Concrete view of image data of type T held in memory.
Definition: vil_fwd.h:13
vil_image_view< T > vil_plane(const vil_image_view< T > &im, unsigned p)
Return a view of im's plane p.
Definition: vil_plane.h:20

Function Documentation

◆ vil_plane()

vil_image_resource_sptr vil_plane ( const vil_image_resource_sptr src,
unsigned  p 
)

Return a specific plane of an image.

Definition at line 19 of file vil_plane.cxx.