00001 #ifndef vipl_accessors_vil1_image_h_
00002 #define vipl_accessors_vil1_image_h_
00003 #include <vil1/vil1_image.h>
00004
00005 #undef FILTER_IMPTR_DEC_REFCOUNT
00006 #define FILTER_IMPTR_DEC_REFCOUNT(v) {delete (v); (v)=0;}
00007 #undef FILTER_IMPTR_INC_REFCOUNT
00008 #define FILTER_IMPTR_INC_REFCOUNT(v)
00009 #undef FILTER_KERNPTR_DEC_REFCOUNT
00010 #define FILTER_KERNPTR_DEC_REFCOUNT(v)
00011
00012 template <class DataType> DataType fgetpixel(vil1_image const& i, int x, int y, DataType);
00013 template <class DataType> void fsetpixel(vil1_image& i, int x, int y, DataType e);
00014 template <class DataType> DataType getpixel(vil1_image const& i, int x, int y, DataType);
00015 template <class DataType> void setpixel(vil1_image& i, int x, int y, DataType e);
00016 #define VIPL_DECLARE_ACCESSORS(T) \
00017 T fgetpixel(vil1_image const& i, int x, int y, T); \
00018 void fsetpixel(vil1_image& i, int x, int y, T e); \
00019 T getpixel(vil1_image const& i, int x, int y, T); \
00020 void setpixel(vil1_image& i, int x, int y, T e)
00021
00022 #ifdef INSTANTIATE_TEMPLATES
00023 #include "vipl_accessors_vil1_image.txx"
00024 #endif
00025
00026 #endif // vipl_accessors_vil1_image_h_