File tree 1 file changed +20
-1
lines changed 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
- # color- quantification- firefly- algorithm
1
+ # Color quantification using firefly algorithm
2
2
Color quantification using firefly algorithm
3
3
The objetive of this project is the color image reduction through the firefly algorithm with the k-means.
4
4
You can change the fireflys number and the iteractions of k-means.
5
+
6
+ #Requeriments
7
+ You need a c compiler and a text editor for choose your configuration of fireflies and k-means iteractions
8
+ The pixels of the image in a txt document, that is to say, you must have the RGB values.
9
+
10
+ #To prove it
11
+ I have two programas:
12
+ -txt2tifmod: this program transform the pixel values to image of format tiff
13
+ -luci8: this program use the firefly algorithm and k-means for reduce the color of the image to 8 bits per pixel.
14
+
15
+ You can modify them and compile them with:
16
+ TXT2TIFMOD
17
+ gcc txt2tif.c -ltiff -o txt2tif
18
+
19
+ execute: ./txt2tif [fich_img_RGB]
20
+ LUCI8
21
+
22
+ gcc -o luci kmeans_imagenes.c -L. -lkmeans -lm
23
+ execute: luci [fich_pixels]
You can’t perform that action at this time.
0 commit comments