Skip to content

Instantly share code, notes, and snippets.

@volkansalma
volkansalma / coloredConsole.cpp
Created June 28, 2012 06:31
Colored console (windows)
#include <iostream>
#include <windows.h> // WinApi header
using namespace std; // std::cout, std::cin
int main()
{
HANDLE hConsole;
int k;
@volkansalma
volkansalma / anaglyph3d.c
Created June 30, 2012 07:04
Return an anaglyph image of a right and left channel
// Return an anaglyph image of a right and left channel
// Author : Nicolas Bourré 20100927
IplImage * toAnaglyph(IplImage * imgLeft, IplImage *imgRight)
{
IplImage *iplReturn;
IplImage *l_R, * l_G, *l_B;
IplImage *r_R, * r_G, *r_B;
iplReturn = cvCreateImage( cvGetSize (imgLeft), 8, 3);