k_means: fix includes
This commit is contained in:
parent
664813acb2
commit
036544e444
@ -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 $@
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstdint>
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
#include <ctime>
|
||||
#include <cmath>
|
||||
#include <cinttypes>
|
||||
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user