projects
/
libstick.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Factor out simplicial_function
[libstick.git]
/
tests
/
image.h
diff --git
a/tests/image.h
b/tests/image.h
index a4d71497926c0d5c92827467ea5075ecd9c6b416..9b07eed430a70a3cf275e9f733e57389454e18b6 100644
(file)
--- 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
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;
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);
typedef scomplex::simplex_order sorder;
sorder so(s);