This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <windows.h> // WinApi header | |
using namespace std; // std::cout, std::cin | |
int main() | |
{ | |
HANDLE hConsole; | |
int k; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |
OlderNewer