diff --git a/gen/k_means/Makefile b/gen/k_means/Makefile index fb4fd55..72c8128 100644 --- a/gen/k_means/Makefile +++ b/gen/k_means/Makefile @@ -3,7 +3,7 @@ CFLAGS += -std=c++23 CFLAGS += -Wl,-z,stack-size=314572800 CFLAGS += -Wall -Wno-deprecated -Werror -Wfatal-errors CFLAGS += -g -gdwarf-4 -CFLAGS += -I../.. +#CFLAGS += -I../.. k_means_vq: k_means_vq.cpp ppm.c g++ $(CFLAGS) $^ -o $@ diff --git a/gen/k_means/k_means_vq.cpp b/gen/k_means/k_means_vq.cpp index 5aa2f3b..09ee255 100644 --- a/gen/k_means/k_means_vq.cpp +++ b/gen/k_means/k_means_vq.cpp @@ -1,7 +1,7 @@ #include #include #include -#include +#include #include #include #include @@ -12,8 +12,8 @@ #include "k_means_cluster.cpp" #include "ppm.h" -#include "twiddle.hpp" -#include "color_format.hpp" +#include "../../twiddle.hpp" +#include "../../color_format.hpp" void rgb_to_vectors(const uint8_t * rgb, int width, int height, double vectors[][12]) { @@ -187,6 +187,7 @@ int main(int argc, char * argv[]) fprintf(stderr, "ppm parse failed\n"); return -1; } + printf("%d %d %d\n", ppm.length, ppm.width, ppm.height); assert(ppm.length == ppm.width * ppm.height * 3); uint32_t random_state = time(NULL);