00001 00002 #include<ImLib3D/ImLib3D.hpp> 00003 #include<ImLib3D/TestPatterns.hpp> 00004 00005 // Basic creation, acces, file 00006 00007 int 00008 main(int argc,char **argv) 00009 { 00010 // Declare a floating point image. Images are inialized with 0 size 00011 Image3Df image; 00012 // create a uniform noise image of size 100x100x100 00013 IP3D::NoiseUniform(Size3D(100,100,100),image); 00014 00015 // Change somme arbitrary values 00016 image(20,10,30)=.5; 00017 image(10,20,40)=.5; 00018 00019 // Write the image to a file 00020 image.WriteToFile("example1.im3D"); 00021 }