Skip to content

Instantly share code, notes, and snippets.

@KTOC
KTOC / birds-eye-view.cpp
Created February 11, 2017 07:18 — forked from anujonthemove/Birds-Eye-View Transformation.pdf
Bird's eye view perspective transformation using OpenCV
// OpenCV imports
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
// C++ imports
#include <iostream>
// namespaces
using namespace std;
using namespace cv;
@KTOC
KTOC / aprintf
Last active August 29, 2015 14:12 — forked from EleotleCram/aprintf
int aprintf(char *str, ...) {
int i, j, count = 0;
va_list argv;
va_start(argv, str);
for(i = 0, j = 0; str[i] != '\0'; i++) {
if (str[i] == '%') {
count++;
Serial.write(reinterpret_cast<const uint8_t*>(str+j), i-j);
#include <cuda_runtime.h>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <string>
#include <iostream>
#include <stdio.h>
#include "caffe/caffe.hpp"