X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=tests%2Fimage.h;h=9b07eed430a70a3cf275e9f733e57389454e18b6;hb=7186ae9cc97393496d7f0e0cb281524276f1e47c;hp=ff7817af6193cc4f2744b1c542c82e5f55b41f27;hpb=4b8265e5bcfd2332a3333c4129352e10c2d59c2f;p=libstick.git diff --git a/tests/image.h b/tests/image.h index ff7817a..9b07eed 100644 --- a/tests/image.h +++ b/tests/image.h @@ -4,7 +4,7 @@ #include #include -#include +#include #include #include @@ -40,16 +40,18 @@ 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); assert(so.is_filtration()); - typedef sorder::boundary_matrix bmatrix; + typedef boolean_colrowmatrix bmatrix; bmatrix bm = so.get_boundary_matrix(); // Check for the right vertex incidences