contrib/tbl/vipl/vipl_monadic.txx

Go to the documentation of this file.
00001 #ifndef vipl_monadic_txx_
00002 #define vipl_monadic_txx_
00003 
00004 #include "vipl_monadic.h"
00005 
00006 template <class ImgIn,class ImgOut,class DataIn,class DataOut,class PixelItr>
00007 bool vipl_monadic <ImgIn,ImgOut,DataIn,DataOut,PixelItr> :: section_applyop()
00008 {
00009   const ImgIn &in = this->in_data();
00010   ImgOut &out = this->out_data();
00011 
00012   int startx = start(this->X_Axis());
00013   int starty = start(this->Y_Axis());
00014   int stopx = stop(this->X_Axis());
00015   int stopy = stop(this->Y_Axis());
00016   for (int j = starty; j < stopy; ++j)
00017     for (int i = startx; i < stopx; ++i)
00018       fsetpixel(out, i, j, func()(fgetpixel(in, i, j, DataIn(0))));
00019   return true;
00020 }
00021 
00022 #endif // vipl_monadic_txx_

Generated on Sun Oct 12 05:13:23 2008 for contrib/tbl/vipl by  doxygen 1.5.1