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

Example5.cpp

00001 
00002 #include<ImLib3D/ImLib3D.hpp>
00003 #include<ImLib3D/TestPatterns.hpp>
00004 #include<ImLib3D/MorphologicalOperators.hpp>
00005 #include<ImLib3D/FFT.hpp>
00006 
00007 // Demonstrates the use of image processors
00008 
00009 int
00010 main(int argc,char **argv)
00011 {
00012     // create a sphere for use in these examples
00013     Image3Df sphere;
00014     IP3D::Sphere(Size3D(100,100,100),Vect3Df(50,50,50),10,sphere);
00015     
00016     // Erosion 
00017     Mask3D ima(100,100,100);
00018     ima=sphere;
00019     IP3D::Erosion(ima,StructureElement(MORPHO_Cross7),ima);
00020 
00021     // Distance Transform
00022     Image3Df dist;
00023     IP3D::DistanceTransform(ima,StructureElement(MORPHO_Cross7),dist);
00024 
00025 
00026     // Fourier transform
00027     Image3Dcomplex im(100,100,100);
00028     Image3Dcomplex res;
00029     im=sphere;
00030     IP3D::FFT(im,res);
00031 
00032 
00033 }

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