Skip to content

Instantly share code, notes, and snippets.

@StevenPuttemans
StevenPuttemans / .cpp
Created January 9, 2018 09:13
Depth edge code in OpenCV3.x
#include <iostream>
#include "opencv2/opencv.hpp"
#define DEBUG_OUTPUT 1
using namespace std;
using namespace cv;
Mat own_threshold(Mat conf_map, float lower, float upper){
Mat temp1 = conf_map > lower;
@peterfpeterson
peterfpeterson / README.md
Last active June 20, 2022 18:51
Configuring 3Dconnexion spacemouse for paraview

Configuring a space mouse was way harder than it should have been. Here is the way to reproduce a "working" version.

Step 1

Ignore the proprietary driver at 3dconnexion and the open source ones from spacenav. They are useful for custom programs, but useless for paraview which currently uses VRPN to lower their maintenance.

Warning: VRPN does not work if you have one of the drivers running at the same time.

// Grab_MultipleCameras.cpp
/*
This sample illustrates how to grab and process images from multiple cameras
using the CInstantCameraArray class. The CInstantCameraArray class represents
an array of instant camera objects. It provides almost the same interface as
the instant camera for grabbing. The main purpose of the CInstantCameraArray
is to simplify waiting for images and camera events of multiple cameras in
one thread. This is done by providing a single RetrieveResult method for all
cameras in the array. Alternatively, the grabbing can be started using the
internal grab loop threads of all cameras in the CInstantCameraArray. The