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