Classes | Defines | Variables
contrib/mul/vimt/vimt_vil_v2i.cxx File Reference
#include "vimt_vil_v2i.h"
#include <vcl_cassert.h>
#include <vcl_cstring.h>
#include <vcl_typeinfo.h>
#include <vcl_fstream.h>
#include <vxl_config.h>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_vector_2d.h>
#include <vil/vil_exception.h>
#include <vil/vil_property.h>
#include <vil/vil_copy.h>
#include <vil/vil_stream.h>
#include <vil/vil_stream_fstream.h>
#include <vil/vil_image_resource.h>
#include <vil/vil_image_view.h>
#include <vsl/vsl_binary_io.h>
#include <vsl/vsl_binary_loader.h>
#include <vimt/vimt_image_2d_of.h>

Go to the source code of this file.

Classes

class  vimt_vil_fstream

Defines

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

Variables

const unsigned V2I_MAGIC = 987123872U

Detailed Description

Definition in file vimt_vil_v2i.cxx.


Define Documentation

#define macro (   F,
 
)
Value:
case  F : \
    { vimt_image_2d_of< T > im; vsl_b_read(vslstream, im); if (!vslstream) return 0; } \
    break;
#define macro (   F,
 
)
Value:
case  F : \
    im_ = new vimt_image_2d_of< T >(); \
    vsl_b_read(vslstream, *static_cast<vimt_image_2d_of< T >*>(im_)); \
    break;
#define macro (   F,
 
)
Value:
case  F : \
    im_ = new vimt_image_2d_of< T > (ni, nj, nplanes); \
    break;
#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), \
                          ni, nj, v.nplanes(), \
                          v.istep(), v.jstep(), v.planestep()); \
    return new vil_image_view< T >(vil_copy_deep(w)); }
#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), \
                                   ni, nj, v.nplanes(), \
                                   v.istep(), v.jstep(), v.planestep()); }
#define macro (   F,
 
)
Value:
case  F : \
    vil_copy_to_window(static_cast<vil_image_view< T >const&>(vv), \
                       static_cast<vimt_image_2d_of< T >&>(*im_).image(), i0, j0); \
    return true;

Variable Documentation

const unsigned V2I_MAGIC = 987123872U

Definition at line 27 of file vimt_vil_v2i.cxx.