contrib/tbl/vipl/vipl_with_section/accessors/vipl_accessors_section.h
Go to the documentation of this file.
00001 #ifndef vipl_accessors_section_h_
00002 #define vipl_accessors_section_h_
00003 #include <section/section.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(section<DataType,2> const& i, int x, int y, DataType);
00013 template <class DataType> void fsetpixel(section<DataType,2>& i, int x, int y, DataType e);
00014 template <class DataType> DataType getpixel(section<DataType,2> const& i, int x, int y, DataType);
00015 template <class DataType> void setpixel(section<DataType,2>& i, int x, int y, DataType e);
00016 #undef VIPL_DECLARE_ACCESSORS
00017 #define VIPL_DECLARE_ACCESSORS(T) \
00018 T fgetpixel(section<T,2> const& i, int x, int y, T); \
00019 void fsetpixel(section<T,2>& i, int x, int y, T e); \
00020 T getpixel(section<T,2> const& i, int x, int y, T); \
00021 void setpixel(section<T,2>& i, int x, int y, T e)
00022 
00023 #ifdef INSTANTIATE_TEMPLATES
00024 #include "vipl_accessors_section.txx"
00025 #endif
00026 
00027 #endif // vipl_accessors_section_h_