Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

plugin.hpp

00001 
00002 #include<ImLib3D/ImLib3D.hpp>
00003 
00004 // this demonstrates  how to create an image processor plugin
00005 
00006 namespace IP3D
00007 {
00009 
00011 template <class ImageType>
00012 void
00013 MyTestThreshold(const ImageType& src,const typename ImageType::value_type &t,Mask3D& res,int optional=0)
00014 {
00015     printf("optional value:%d\n",optional);
00016     res.Resize(src.Size());
00017     typename ImageType::const_iteratorFast sp;
00018     Mask3D::iteratorFast rp;
00019     for(sp=src.begin(),rp=res.begin();sp!=src.end();sp++,rp++)
00020     {
00021         *rp= *sp>t ? 1 : 0;
00022     }
00023 }
00024 }
00025 

Generated on Fri Jun 17 13:36:06 2005 for ImLib3D by  doxygen 1.4.2