Defines | Functions
core/vil/vil_plane.cxx File Reference
#include "vil_plane.h"
#include <vcl_cassert.h>

Go to the source code of this file.

Defines

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

Detailed Description

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

Definition in file vil_plane.cxx.


Define Documentation

#define macro (   F,
 
)
Value:
case F : \
    return new vil_image_view<T > (vil_plane(static_cast<const vil_image_view<T >&>(*vs), plane_));
#define macro (   F,
 
)
Value:
case F : \
    return new vil_image_view<T > (vil_plane(static_cast<const vil_image_view<T >&>(*vs), plane_));
#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); }

Function Documentation

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.