Skip to content

Commit bb40e92

Browse files
committed
Description2.0
1 parent d70cc19 commit bb40e92

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1-
# color-quantification-firefly-algorithm
1+
# Color quantification using firefly algorithm
22
Color quantification using firefly algorithm
33
The objetive of this project is the color image reduction through the firefly algorithm with the k-means.
44
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]

0 commit comments

Comments
 (0)