Giter Club home page Giter Club logo

image-transformations's Introduction

image-transformations

OpenCL image transformations with anti-aliasing This is a Qt Creator project. Load with Qt Creator and build for your machine. On Ubuntu the OpenCL development files and glm can be installed with:

$ sudo apt install opencl-headers

$ sudo apt install libglm-dev

$ sudo apt install ocl-icd-opencl-dev

And then you'll also need an ICD(Installable Client Driver). This depends on your hardware. You can try https://packages.ubuntu.com/search?keywords=opencl-icd&searchon=names&suite=all&section=all and check for a driver that matches your hardware. You can try the mesa opencl ICD first.

$ sudo apt install mesa-opencl-icd

As you can see you may have to add a repository to apt. This can be done with:

$ sudo apt-add-repository universe

or if you want to add the multiverse repository

$ sudo apt-add-repository multiverse

If you want to check your installation use clinfo. It can be installed with:

$ sudo apt install clinfo

To use it just type:

$ clinfo -l

And that will show you all of the platforms and and all of the devices for each platform. You can have multiple platforms and each platform can have multiple devices. If you want to see all of the information available for all of the platforms and devices just type:

$ clinfo | less

and then use the page-up, page-down, arrow keys and more to view the result. Press 'q' to exit less.

image-transformations's People

Contributors

timkrause2 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

image-transformations's Issues

Glitch in the image

There's a glitch in the image with the following transform and theta set to exactly 90.0 degrees
glm::vec2 A((float)(srcImage_argb.width()-1)/2, -(float)(srcImage_argb.height()-1)/2); glm::mat3 M = glm::translate(glm::mat3(1.0f),A); M = glm::rotate(M, theta); M = glm::scale(M,glm::vec2(1.0f/3.0f,3.0f)); M = glm::rotate(M,-theta); M = glm::translate(M, -A); glm::mat3 M_inv = glm::inverse(M);

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.