1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| //---------------------------------------------------------------------------
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <vcl.h>
#pragma hdrstop
#include "pointeurIR.h"
#include "cv.h" // includes OpenCV definitions
#include "highgui.h" // includes highGUI definitions
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
#pragma comment(lib, "highgui097.lib")
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
cvNamedWindow("win1", CV_WINDOW_AUTOSIZE);
cvMoveWindow("win1", 100, 100); // offset from the UL corner of the screen
IplImage* img=0;
img=cvLoadImage("Image 001.jpg");
if(!img) printf("Could not load image file: %s\n","Image 001.jpg");
} |
Partager