Jika anda merasa blog ini bermanfaat dan berharap tetap berkelanjutan baik website maupun content-nya maka anda dapat berpartisipasi dengan memberikan donasi pada website ini. Donasi lewat Paypal dibawah ini.

If you think this website is usefull and want to this website that can still exist and keep content maintenance then you can participate to donate this website. Donate via Paypal as below.

OpenCV 2.1.0 with Visual Studio 2010

by Agus Kurniawan 23. June 2010 00:24

OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision. Two months ago OpenCV released the new version of OpenCV 2.1. On this article, I would like to share how to use OpenCV with Visual Studio 2010.

System Requirements

  • Download OpenCV 2.1 or the latest, [V]
  • Download Visual Studio 2010, you can download an express edition [V]

I use Windows 7 x64 as development environment.

OpenCV 2.1 Installation

After you downloaded OpenCV library. Click setup file and then you’ll get a dialog as below

inst1

Click Next button

inst2

Click I Agree button

inst3

Choose Do not add OpenCV to the system PATH (you may choose any option) and then click Next button

inst4

Choose Destnation Folder that you want to store OpenCV files. After that, click Next button

inst5

Click Next button

inst6

Select the type of install Full. After that click Install button. Installer will install OpenCV library on your system.

inst7

Click Finish button to finish installation process.

Now you can see OpenCV 2.1 on your system. You can check on folder where OpenCV installed

openCV

Visual Studio 2010 Project Configuration

After you created a C/C++ project on Visual Studio 2010 you should configure OpenCV on Visual Studio 2010. Open properties dialog of project. Assume your OpenCV 2.1 installed on C:\OpenCV2.1

On properties dialog, click C/C++ –>General and entry C:\OpenCV2.1\include\opencv in Additional Include Directories

conf1

On properties dialog, click C/C++ –>Advanced and select Compile As. If you prefer C compiler, use Compile as C Code (/TC) 

conf2

On properties dialog, click Linker –>General and entry C:\OpenCV2.1\lib in Additional Library Directories

conf3

On properties dialog, click Linker –>Input and entry all *.lib files in Additional Dependencies. If you’re running on debug mode, try to entry all *d.lib files

 conf4

conf5

After you do all tasks above, click OK button on Propeties dialog.

Testing

For testing purpose, try to write this code (*note* change image file c:/temp/monas.jpg)

#include <stdio.h>
#include <highgui.h>
int main( int argc, char** argv ) 
{	
	IplImage* img = cvLoadImage( "c:/temp/monas.jpg",1 );
	cvNamedWindow("Monas", CV_WINDOW_AUTOSIZE );
	cvShowImage("Monas", img );
	cvWaitKey(0);
	cvReleaseImage( &img );
	cvDestroyWindow("Monas");
} 

Compile and run it. If success, you get image viewer dialog as below

monas

when you run this code from Visual Studio  and get error as below. Try to copy *.dll from OpenCV (C:\OpenCV2.1\bin) on folder where your executable file was located

error


Donate this article:

Tags:

C/C++ | OpenCV

Parallel Programming @Innovation Day, 11 May 2010

by Agus Kurniawan 25. May 2010 17:15

Slide ini adalah presentasi waktu acara Innovation Day, 11 May 2010 Di Balai Kartini Jakarta. Untuk mengunduh, klik link dibawah ini

Innovation Day - Parallel Programming.pdf (1.67 mb)


Donate this article:

Tags:

.NET | C/C++ | Grid Computing

Hello World Eclipse C/C++ for Windows

by Agus Kurniawan 23. February 2010 11:09

Jika ada belum melakukan instalasi Eclipse C/C++ pada Windows dapat dibaca pada artikel saya:

http://blog.aguskurniawan.net/post/Instalasi-Eclipse-CC2b2b-Pada-Windows.aspx 

Pada topik ini, gw akan sharing bagaimana hello world pada Eclipse C/C++. Disini kita akan fokus pemrograman C. Pada IDE Eclipse, klik menu File->New-> C Project seperti gambar dibawah ini

2-23-2010 10-52-51 AM

Setelah dipilih, kita akan memperoleh kotak dialog seperti dibawah. Pilih Hello World ANSI C Project seperti dibawah ini

2-23-2010 10-56-24 AM

Jika selesai, klik tombol Next. Isi sesuai dengan kebutuhan

2-23-2010 10-56-37 AM

Jika selesai, klik tombol Next. Pilih Configuration. Pilih semuanya.

2-23-2010 10-56-45 AM

Jika selesai, klik tombol Finish. Selanjutnya kita akan memperolah bentuk sebagai berikut

2-23-2010 11-01-42 AM

Untuk melakukan compile, klik Project->Build All dan untuk menjalankan klik menu Run->Run sehingga pada console akan muncul seperti dibawah

2-23-2010 11-03-41 AM

Cukup sederhana sekali.

Untuk bahasa pemrograman C, gw sudah menyediakan video tutorial (gratis ) di PE College, cek Pemrograman Bahasa C

Untuk tutorial advance, tunggu aja di blog ini. Semoga berguna


Donate this article:

Tags:

C/C++ | Eclipse

Instalasi Eclipse C/C++ Pada Windows

by Agus Kurniawan 23. February 2010 10:48

Eclipse merupakan salah satu development IDE yang cukup popular dan berbasis open source. Banyak sekali plugin didalamnya.

Kali ini gw mengajak anda bagaimana melakukan proses instalasi Eclipse C/C++ pada Windows. Berikut ini langkah-langkahnya

  1. Download g++ compiler untuk Windows
  2. Download Java JRE
  3. Download Eclipse C/C++ IDE
  4. Update CDT

1. Download g++ Compiler Untuk Windows

Ada banyak pilihan untuk C/C++ compiler pada OS Windows. Yang cukup populer adalah g++ yang mana versi Windows adalah MinGW, http://www.mingw.org/. Anda dapat menggunakan MinGW Distro dari Nuwen.net yang dapat di unduh di

http://nuwen.net/mingw.html dan pilih ZIP atau 7z tergantung apakah anda punya aplikasi ZIP atau 7z.

2-23-2010 9-51-47 AM 

Jika selesai mengunduh, lakukan instalasi dan letakkan folder instalasi pada C:\mingw . Berikut ini contoh hasil instalasinya

2-23-2010 9-56-59 AM

Langkah selanjutnya, tambahkan path MinGW ini. Misalkan folder instalasinya adalah C:\MinGW maka tambahkan path C:\MinGW\Bin ke path Windows (ada pada System Properties->Environment Variables). Lihat gambar dibawah

2-23-2010 10-02-41 AM 

2. Download Java JRE

Untuk menjalankan Eclipse, kita memerlukan Java JRE. Ini dapat diunduh di website SUN dengan alamat http://java.com/en/download/manual.jsp

Pilih versi yang baru. Setelah selesai mengunduh, lakukan instalasi. Misalkan hasil ada folder C:\Program Files\Java\xxx dimana nilai xxx tergantung versi java.

2-23-2010 10-01-32 AM

3. Download Eclipse C/C++ IDE

Selanjutnya download Eclipse IDE for C/C++ Developer pada alamat http://www.eclipse.org/downloads/.  Kalau ada mengunduhnya dari Indonesia biasanya akan di arahkan ke server Kambing kampus Universitas Indonesia.

2-23-2010 10-10-07 AM

Setelah download (biasanya file nya dalam bentuk ZIP), lakukan uncompress dan extract ke folder yang diinginkan, misalkan di C:\Eclipse\cpp . Contoh hasil instalasinya sebagai berikut:

2-23-2010 10-14-18 AM

Sebelum dijalankan lakukan editing file eclipse.ini , tambahkan –vm untuk menunjukan dimana file Java JRE anda. Pastikan path file javaw.exe sudah benar, misalkan disini C:/Program Files (x86)/Java/jdk1.6.0_17/jre/bin/javaw.exe sehingga penambahan script sebagai berikut

-vm
C:/Program Files (x86)/Java/jdk1.6.0_17/jre/bin/javaw.exe

Jika selesai, simpan file eclipse.ini

Ok, sekarang aplikasi Eclipse siap dijalankan. Klik dua kali file eclipse.exe

2-21-2010 7-06-29 PM

Jika mau melihat secara seseluruhan, klik tombol Restore yang ada disebelah kanan atas seperti gambar dibawah ini.

2-23-2010 10-32-57 AM

Setelah itu, anda akan melihat tampilan full feature seperti dibawah

2-23-2010 10-33-23 AM

 

4. Update CDT

Sebelum melakukan coding, sebaiknya Eclipse anda lakukan update software. Ini dapat dilakukan melalui menu Help->Install New Software sehingga akan muncul kotak dialog sebagai berikut

2-21-2010 7-41-23 PM

Pada Work with, klik textbox, apakah ada keyword CDT, kalau tidak ada lakukan klik tombol Add dan tambahkan name cdt dan location http://download.eclipse.org/tools/cdt/releases/galileo

2-21-2010 7-41-33 PM

Jika selesai klik tombol OK. Kemudian arahkan ke cdt pada kotak dialog sebelumnya. Pastikan komputer anda terhubung dengan internet

2-21-2010 7-46-17 PM

Hal yang terpenting disini adalah

  • Eclipse C/C++ Development Tools
  • CDT GCC Cross Compiler Support
  • CDT GNU Toolchain Build Support
  • CDT GNU Toolchain Debug Support
  • CDT Utilities

Jika selesai, klik tombol Next. Maka sistem akan melakukan download dan instalasi. So sekarang siap untuk tempur 19

Langkah selanjutnya adalah hello world C, cek tutorial disini http://blog.aguskurniawan.net/post/Hello-World-Eclipse-CC2b2b-for-Windows.aspx


Donate this article:

Tags:

C/C++ | Eclipse

Released Majapahit Project 1.0

by Agus Kurniawan 2. January 2010 01:08

Sometimes we want to know what’s happening about our server condition on data center.  Normally, we check system monitoring each server via server remote. It’s a pain if we have many servers then we want to know all server status on one view.

majapahit-for-codeplex

The goal of Majapahit project is to help administrators/data center owners to monitor server system based on Linux and Windows.

Features

Majapahit System Monitoring can monitor the availability of systems such as

  • Active Directory on Windows Server 2008
  • OpenLDAP on CentOS/RHEL
  • Email server
  • DNS and DHCP on Windows Server 2008 and CentOS/RHEL
  • Web Server IIS and Apache
  • Database Server: MySQL and SQL Server 2008

image

A Majapahit tool also can retrieve system information such hardware and software on server. System information of server covers

  • Operating System
  • Network Information
  • Hardware Information
  • Processor
  • Memory
  • CPU
  • CD/DVD driver
  • NIC Adapter
  • Graphics Adapter
  • Software Information
  • Installed software

System monitoring dasboard can be accessed by browser and mobile device

image 

Reporting


Majapahit tool provides reports so IT owners can make decision for their systems. Majapahit reports cover

  • List of system of server by date & months
  • Detail information by system server
  • Availability based on KPI by date & months
  • Availability by system, date & months

Download

You can download the latest Majapahit application on http://majapahit.codeplex.com

majapahit_logo


Donate this article:

Tags:

Linux | Windows | C/C++ | .NET | Distributed System

Tutorial Berbasis Multimedia untuk Pemrograman Bahasa C

by Agus Kurniawan 12. December 2009 14:24

Bagi rekan-rekan yang ingin belajar bahasa pemrograman C. Saat ini gw sudah meng-upload tutorial dalam bentuk video di portal PE College, www.pecollege.net .

Materi ini meliputi:

  • Overview
  • Conditional
  • Preprocessor
  • Function
  • Array
  • Pointer
  • String Manipulation
  • I/O File

Disabar untuk menontonnya, cek disini [V]. Semoga berguna 1


Donate this article:

Tags:

C/C++ | PECollege

Come to my Workshop - Parallel Computing

by Agus Kurniawan 15. January 2009 17:25

Kalau tidak berhalangan gw akan mengisi training mengenai Parallel Computing baik batch 1 dan 2. Undangannya seperti gambar dibawah ini

hpcttt-indonesia

Gw sendiri akan deliver materi mengenai Message Passing Interface (MPI) dengan implementasi memanfaatkan MS-MPI dan MPI.NET. Selain ini, gw akan akan trainer bagaimana melakukan deploy aplikasi berbasis MPI ke dalam Windows HPC Server 2008.

Kalau dilihat gambar diatas, materi MPI itu dilaksanakan pada Day 2 tetapi sebenarnya dilaksanakan di Day 3. Gw geseran schedule dengan bos Risman. Maklum sabtu ini gw sudah ada kelas juga di sekolah bahasa di FIB UI. Biar tidak terlalu menyulitkan ketika kuliah s3 di LN Wink


Donate this article:

Tags:

.NET | C/C++ | Grid Computing

About Agus Kurniawan

Agus Kurniawan

For more detail about me click here [V]

Please entry your name into my guestbook [V]

My Facebook



Agus Kurniawan is Microsoft MVP (Most Valuable Professional)