00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00020 #ifndef _TestPatterns_hpp
00021 #define _TestPatterns_hpp
00022
00023 #include<ImLib3D/Image3D.hpp>
00024 #include<ImLib3D/ImageProcessor.hpp>
00025 #include<ImLib3D/MorphologicalOperators.hpp>
00026 #ifdef NOTDEF
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 #endif//NOTDEF
00047
00048
00049
00050 namespace IP3D
00051 {
00061 void Sphere(const Size3D &size,const Vect3Df &C,float r,Image3Df &ima);
00062 };
00063
00064
00065 namespace IP3D
00066 {
00075 void Explode(const Size3D &size,const Vect3Df &C,Field3Df &ima);
00076 };
00077
00078
00079 namespace IP3D
00080 {
00092 void Cone(const Size3D &size,const Vect3Df &P0,const Vect3Df &P1,float r,Image3Df &ima,float ar=4.0);
00093 namespace ConeHelpers
00094 {
00095 void NoAA(Image3Df &ima,const Vect3Df &P0,const Vect3Df &P1,float r);
00096 }
00097 };
00098
00099 namespace IP3D
00100 {
00110 void NoiseUniform(const Size3D &size,Image3Df &ima,float v0=0,float v1=1);
00111 };
00112
00113 namespace IP3D
00114 {
00124 void NoiseGaussian(const Size3D &size,Image3Df &ima,float v0=0,float v1=1);
00125 };
00126
00127 namespace IP3D
00128 {
00136 void Target(const Size3D &size,Image3Df &ima);
00137
00138 };
00139
00140 namespace IP3D
00141 {
00152 void Bump(const Size3D &size,const Vect3Df ¢er,float height,float gsize,Image3Df &ima);
00153 };
00154
00155 namespace IP3D
00156 {
00172 void Ramp(const Size3D &size,int direction,float v0,float v1,Image3Df &res,int pos0=-1,int pos1=-1);
00173 };
00174
00175 namespace IP3D
00176 {
00185 void Parallellogram(const Size3D &size,const RectZone3Di & rect,Image3Df &ima);
00186 };
00187
00188 namespace IP3D
00189 {
00204 void RectangularGrid(const Size3D &size, const Size3D &masksize,Image3Df &ima, const Vect3Di *pintersection=NULL);
00205 };
00206
00207 namespace IP3D
00208 {
00221 void ColoredGrid(const Size3D &size, const Size3D &masksize,Mask3D &ima, StructureElementType neighborhoodtype=MORPHO_Cross7);
00222 };
00223
00224 #endif // _TestPatterns_hpp