www.pudn.com > nurbs++3_0_10.zip > randomImg.cc
#include#include #include const double MaxRandom = 32767 ; double randUnity(){ return double(rand())/MaxRandom ; } int randColor(){ return int(randUnity()*255.0); } int main(){ #ifdef WITH_IMAGE_MAGICK IM_Image A ; IM_ColorImage B ; srand(356) ; A.resize(100,100) ; B.resize(A.rows(),A.cols()) ; double sinF = M_PI/double(A.cols())*0.5 ; for(int i=0;i