Skip to content

Instantly share code, notes, and snippets.

View Seanmatthews's full-sized avatar

Sean D Matthews Seanmatthews

  • Rowboat Entertainment
  • New York, NY
View GitHub Profile
@yohhoy
yohhoy / cv2ff.cpp
Created February 17, 2016 15:41
Convert from OpenCV image and write movie with FFmpeg
/*
* Convert from OpenCV image and write movie with FFmpeg
*
* Copyright (c) 2016 yohhoy
*/
#include <iostream>
#include <vector>
// FFmpeg
extern "C" {
#include <libavformat/avformat.h>
@maxim
maxim / gh-dl-release
Last active March 29, 2024 16:41
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
void
RingColors::convertPoints(const sensor_msgs::PointCloud2ConstPtr &inMsg)
{
if (output_.getNumSubscribers() == 0) // no one listening?
return; // do nothing
// allocate an PointXYZRGB message with same time and frame ID as
// input data
sensor_msgs::PointCloud2::Ptr outMsg(new sensor_msgs::PointCloud2());
sensor_msgs::PointCloud2Modifier modifier(*outMsg);
@trhura
trhura / cvpicker.py
Created October 12, 2014 03:40
opencv color picker
#! /usr/bin/env python2
import cv2
import numpy as np
colors = []
def on_mouse_click (event, x, y, flags, frame):
if event == cv2.EVENT_LBUTTONUP:
colors.append(frame[y,x].tolist())