• Keine Ergebnisse gefunden

Installation und Nutzung von OpenCV 2.1.0 für Visual Studio 2010 (MS-VS)unter Windows anhand heruntergeladener Bibliotheken:1

N/A
N/A
Protected

Academic year: 2022

Aktie "Installation und Nutzung von OpenCV 2.1.0 für Visual Studio 2010 (MS-VS)unter Windows anhand heruntergeladener Bibliotheken:1"

Copied!
8
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Bildverarbeitung  THM OpenCV 2.1

Installation und Nutzung von OpenCV 2.1.0 für Visual Studio 2010 (MS-VS) unter Windows anhand heruntergeladener Bibliotheken:

1

 Herunterladen von OpenCV (http://opencv.org/), Version 2.1.0 von:

http://sourceforge.net/projects/opencvlibrary/files/opencv-win/ oder http://opencv.org/downloads.html

 Ausführung des extrahierenden Programms OpenCV-2.1.0-win32-vs2008.exe zur Installation von OpenCV; das angegebene Verzeichnis (hier: C:\OpenCV2.1 wird genutzt oder automatisch angelegt.)

1 Die hier beschriebene Vorgehensweise ist angelehnt an die Empfehlungen der Entwickler in:

http://opencv.willowgarage.com/wiki/VisualC++_VS2010_CMake http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2008 http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2010

Prof. Dr.-Ing. A. Christidis [ Version: 28.09.12 ] tempfile_11458.doc  [S. 1 / 8]

(2)
(3)

Bildverarbeitung  THM OpenCV 2.1

Eingabe: C:\OpenCV2.1

Prof. Dr.-Ing. A. Christidis [ Version: 28.09.12 ] tempfile_11458.doc  [S. 3 / 8]

(4)
(5)

Bildverarbeitung  THM OpenCV 2.1

Nutzung in MS-VS:

 Start von MS-VS

Datei  Neu  Projekt  Vorinstallierte Vorlage: Win32-Konsolenanwendung:

Name: OpenCV2.1_Helloworld (Ort beliebig) Fertig stellen (Voreinstellungen annehmen)

Konfiguration des Programms:

Beginn bei „Projekt  Eigenschaften  Konfigurationseigenschaften“:

  VC++-Verzeichnisse  (hinzufügen)

Includeverzeichnisse: C:\OpenCV2.1\include\opencv;

Bibliotheksverzeichnisse: C:\OpenCV2.1\lib;

Prof. Dr.-Ing. A. Christidis [ Version: 28.09.12 ] tempfile_11458.doc  [S. 5 / 8]

(6)

C:\OpenCV2.1\src\cv; C:\OpenCV2.1\src\cvaux;

C:\OpenCV2.1\src\cxcore; C:\OpenCV2.1\src\highgui;

C:\OpenCV2.1\src\ml;

(Klick auf „Übernehmen“ oder „OK“)

  Linker  Eingabe  Zusätzliche Abhängigkeiten:

Für Debug (hinzufügen): cv210d.lib; cxcore210d.lib; highgui210d.lib;

[ Für Release (hinzufügen): cv210.lib; cxcore210.lib; highgui210.lib; ]

(7)

Bildverarbeitung  THM OpenCV 2.1

(Abschließen mit „OK“)

Eingabe des Programmcodes für das erzeugte OpenCV2.1_Helloworld.cpp:

// OpenCV2.1_Helloworld.cpp : Definiert den Einstiegspunkt für die Konsolenanwendung.

#include "stdafx.h"

#include <cv.h>

#include <cxcore.h>

#include <highgui.h>

int _tmain(int argc, _TCHAR* argv[]) {

IplImage *img = cvLoadImage("..\\..\\_Dat\\Fendi.jpg");

cvNamedWindow("Image:",1);

cvShowImage("Image:",img);

cvWaitKey();

cvDestroyWindow("Image:");

cvReleaseImage(&img);

Prof. Dr.-Ing. A. Christidis [ Version: 28.09.12 ] tempfile_11458.doc  [S. 7 / 8]

(8)

return 0;

}

Dateien highgui210d.dll und cxcore210d.dll in dasselbe Verzeichnis wie EXE kopieren und Programm starten:

Referenzen

ÄHNLICHE DOKUMENTE

Und wenn sie dann eine Fami- lie gründen, ziehen diese Menschen in- zwischen nicht mehr quasi automa- tisch aus der Stadt in die Vorstadt, son- dern bleiben da, wo sie sind, und

Si le CD-ROM ne démarre pas automatiquement, double-cliquez sur l’icône Poste de travail sur le bureau, puis sur celle du CD-ROM, et enfin sur Setup.exe dans le dossier

Hough Transforms | 153 Th e cvCanny() function expects an input image, which must be grayscale, and an output image, which must also be grayscale (but which will actually be

If the element is not found, the function returns a NULL pointer and the index is set to the number of sequence elements if a linear search is used, or to the smallest index

• Ausführung des extrahierenden Programms OpenCV-2.1.0-win32-vs2008.exe zur Installation von OpenCV; das angegebene Verzeichnis (hier: C:\OpenCV2.1 wird genutzt oder

Abstract: Climate adaptation is an extremely relevant theme for landscape architecture. This article is based on 2 design studies. The first is our manifesto and regional

6.Send source code and header files (no project files) as well as input (if not given) and result images. 7.Your code must compile without errors on Win and Linux

6.Send source code and header files (no project files) as well as input (if not given) and result images. 7.Your code must compile without errors on Win and Linux