Uncategorized

Workshop Mikro dan Dasar Robotika

Dear All, kita kembali mengadakan workshop Mikro AVR dan Robotika AVR/ Basic Stamp Based Dasar pada setiap hari pukul 8.00-12.00 WIB dan 13.00-17.00 WIB.

1. Pemrograman Mikrokontroler AVR dengan Bascom AVR, Paket Kit Mikro Rp 600rb, dan biaya Workshop 300rb

2. Pemrograman Robotika dengan AVR,  Paket Kit Robot 900rb, dan biaya Workshop 400rb.

3. Pemrograman Robotika dengan Basic Stamp Paket Kit Robot 1.6 juta, dan biaya workshop 400rb.

Silahkan kontak Bpk. Widodo di 081410043883 untuk booking dan pembayaran, paling lambat 4 hari sebelum workshop.  Salam, CV Pusat e-Technology

View Comments - What do you think?  Posted by widodo - August 12, 2010 at 9:12 am

Categories: Uncategorized   Tags:

Menampilkan properti dari suatu images

Here is a simple program to display image attributes like width, height, size and etc. This program assumes that you have OpenCV library already installed on you system.

#include
#include
#include “cv.h”
#include “highgui.h”

using namespace std;

int main( int argc, char** argv )

{

// Create an IplImage object *image
IplImage *image = cvLoadImage( argv[1]);

// Display Image Attributes by accessing a IplImage object’s data members

cout << left << setfill(' ') << setw(15) << "Image filename:" << argv[1] << endl;

cout << setw(15) << "Width:" << image->width << endl;
cout << setw(15) << "Height:" << image->height << endl;

cout << setw(15) << "Pixel Depth:" << image->depth << endl;
cout << setw(15) << "Channels:" << image->nChannels << endl;

cout << setw(15) << "Width Step:" << image->widthStep << endl;
cout << setw(15) << "Image Size:" << image->imageSize << endl;

return 0;
}

View Comments - What do you think?  Posted by widodo - April 19, 2010 at 11:46 pm

Categories: Uncategorized   Tags: