X-Git-Url: https://git.sthu.org/?p=libstick.git;a=blobdiff_plain;f=tests%2Fimage.h;h=9b07eed430a70a3cf275e9f733e57389454e18b6;hp=a4d71497926c0d5c92827467ea5075ecd9c6b416;hb=7186ae9cc97393496d7f0e0cb281524276f1e47c;hpb=d6673c66ae1cb2b421b6e0c4b6a2f6ea6f0fad98 diff --git a/tests/image.h b/tests/image.h index a4d7149..9b07eed 100644 --- a/tests/image.h +++ b/tests/image.h @@ -40,10 +40,12 @@ class image_TestSuite: public Test::Suite { image[i*width + j] = (sin(j/10.0) + 0.5*sin(j/4.0))*cos(i/7.0) + i*j*0.5*1e-3; // Create complex and add image - typedef simplicial_complex<2, uint32_t, float> scomplex; + typedef simplicial_function<2, uint32_t, float> sfunction; + typedef sfunction::simplcompltype scomplex; scomplex s; - add_image_to_complex(s, image, width, height); - assert(s.is_monotone()); + sfunction f(s); + add_image_to_simplicialfunction(f, image, width, height); + assert(f.is_monotone()); typedef scomplex::simplex_order sorder; sorder so(s);