Code Monkey home page Code Monkey logo

umattest's Introduction

OpenCV's UMat: The basics and performance test

You can verify using this code if your OpenCV has OpenCL enabled using an implementation of the T-API and also compare the performance of both Mat and UMat. This code is part of a post on my blog about UMat.

How to use

Your OpenCV has to be built with the flag WITH_OPENCL set as ON.

This project was developed using Eclipse. Therefore, clone using git clone or download and open it as a Project, configure the Linker and Compiler to match your OpenCV folder.

For compiling with G++ (Considering the OpenCV folders C:\opencv\install\include and C:\opencv\install\x64\mingw\lib):

  • git clone

  • cd UMatTest\src

  • g++ "-IC:\\opencv\\install\\include" -O0 -g3 -Wall -c -fmessage-length=0 -o "UMatTest.o" "UMatTest.cpp"

  • g++ "-LC:\\opencv\\install\\x64\\mingw\\lib" -o UMatTest.exe "UMatTest.o" -lopencv_core340 -lopencv_highgui340 -lopencv_imgcodecs340 -lopencv_imgproc340

  • .\UMatTest

Additional Info

Give a look at my results with an i5 3330/AMD Radeon 7970 on the post on my blog.

umattest's People

Contributors

jeanvit avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gibbio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.