contrib/tbl/vipl/section/vipl_filterable_section_container_generator_vil_image_view.txx

Go to the documentation of this file.
00001 #ifndef vipl_filterable_section_container_generator_vil_image_view_txx_
00002 #define vipl_filterable_section_container_generator_vil_image_view_txx_
00003 
00004 #include <vil/vil_image_view.h>
00005 
00006 #undef FILTER_IMPTR_DEC_REFCOUNT
00007 #define FILTER_IMPTR_DEC_REFCOUNT(v) { delete (v); (v)=0; }
00008 #define FILTER_IMPTR_INC_REFCOUNT(v)
00009 #define FILTER_KERNPTR_DEC_REFCOUNT(v)
00010 
00011 #include <vipl/section/vipl_section_container.txx>
00012 #include <vipl/section/vipl_section_iterator.txx>
00013 template <class DataType>
00014 vipl_section_container<DataType>*
00015 vipl_filterable_section_container_generator(const vil_image_view<DataType>& im, DataType*)
00016 {
00017   vipl_section_container<DataType> *rtn = new vipl_section_container<DataType>((vipl_section_container<DataType>*)0);
00018   rtn->put_imgptr((const void*) &im);
00019   rtn->ref_imgsz()[0] = im.ni();
00020   rtn->ref_imgsz()[1] = im.nj();
00021 
00022   rtn->ref_secsz()[0] = im.ni(); // should actually be block_width for block-buffered images
00023   rtn->ref_secsz()[1] = im.nj(); // should actually be block_height for block-buffered images
00024 
00025   return rtn;
00026 }
00027 
00028 #endif // vipl_filterable_section_container_generator_vil_image_view_txx_

Generated on Sat Nov 22 05:13:28 2008 for contrib/tbl/vipl by  doxygen 1.5.1