I'm happy now, 'cause everyone said:

although everyone said like that, I still feel worry about my thesis.
I'm happy now, 'cause everyone said:

although everyone said like that, I still feel worry about my thesis.
Finally I found how to get pixel from image in c++. My friend told me that CImg is the great library for image processing (thank's to Mbak Ika and Elly you are the best...
).
Here the code:
#include "iostream"
#include "stdio.h"
#include "stdlib.h"
#include "CImg.h"
using namespace cimg_library;
FILE *s;
int i,j;
int main()
{
CImg img("your_image.bmp");
int lebar = img.dimx();// find width in image
int panjang = img.dimy();//find length in image
printf("baris: %d \n", lebar);
printf("kolom: %dn", panjang);
struct rgb {
float vR,vG,vB;
};
CImg image("your_image.bmp");
CImg outputWin(lebar, panjang);
for(int i=0; i for(int j=0; j outputWin(i,j)=image(i,j);
}
}
// write pixel image in matrix market's format
if ((s = fopen("aku.txt", "w")) == NULL) return 0;
printf("\n simpen \n");
fprintf (s, "%d %d %d \n", lebar,panjang,lebar*panjang);
for(i=0; i for(j=0; j fprintf (s, "%d %d %d \n",i+1,j+1,image(i,j));
}
}
fclose(s);
return 0;
}
You can download CImg library in:
Here
Information about Matrix Market in Here
,<a href="http://budi.insan.co.id/books/thesis/">klik_ini</a>
</p>
<p>Karena mentok dengan nulis thesis walhasil, gw berencana main game. Ternyata semua game yang ada di PC gw dah gw tamatin mulai dari chen study program, cake mania 2 (Back to the backery) sampe' dinner dash 3 (Flo's on the Go). Bahaya nih... waktu gw lebih banyak habis terbuang karena game padahal deadline thesis tinggal 2 bulan lagi. Wuah... serem abis dah...<!--!--<span--><!--!--<span--><!--!--<span--><!--!--<!--<span--><!--!--!--<span--><!--!--!--<span--></p>
</!--<span></!--<!--<!--<span></!--!--<span--></!--!--<span--></!--!--<span--></!--!--<!--<span--></!--!--!--<span--></!--!--!--<span-->
Alhamdulillah, setelah sekian lama akhirnya gw mendapatkan jalan keluar buat codingan thesis gw. Yah... walaupun nggak sempurna sih. Senang banget.... Terima kasih ya Allah...
Mencoba menerapkan SDD menggunakan bahasa C. Hasilnya adalah sebagai berikut:
5 5 7.679504e-01
yang paling kiri itu indeks matriks 5 5 artinya indeksnya 5,5 and nilai pikselnya paling kanan.
3. Hasil dari pemrosesan citra:
HAsilnya adalah sebagai berikut:
| Term | Ukuran File (KB) | Compression Rate |
| 30 | 4 | 93.93% |
| 50 | 7 | 89.39% |
| 100 | 13 | 80.30% |
And Gw harap ini nggak salah alias tidak mengandung bug :p. Amin.....