Skip to content

Instantly share code, notes, and snippets.

Alexander Görtz nylocx

Block or report user

Report or block nylocx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PKGBUILD
# Contributor: Mykola Dolhyi <0xb000@gmail.com>
pkgname=ignition-math
pkgver=3.0.0
pkgrel=1
pkgdesc="Math classes and functions for robot applications"
arch=('i686' 'x86_64')
url="http://ignitionrobotics.org/"
license=('Apache')
groups=('development')
depends=()
@nylocx
nylocx / gist:660d48d6c5fca6d8fd8c
Created Jan 7, 2016
Convert OpenCV image type to a QString
View gist:660d48d6c5fca6d8fd8c
QString cvImageTypeToQString(int type) {
QString result;
uchar depth = type & CV_MAT_DEPTH_MASK;
uchar chans = 1 + (type >> CV_CN_SHIFT);
switch ( depth ) {
case CV_8U: result = "8U"; break;
case CV_8S: result = "8S"; break;
case CV_16U: result = "16U"; break;
You can’t perform that action at this time.