View trie.cc
This file contains 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 <string> | |
#include <map> | |
#include <vector> | |
using namespace std; | |
struct Node { | |
char ch; | |
map<char, Node*> children; |
View camshifting.c
This file contains 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 "camshifting.h" | |
/* Create a camshift tracked object from a region in image. */ | |
TrackedObj* create_tracked_object (IplImage* image, CvRect* region) { | |
TrackedObj* obj; | |
//allocate memory for tracked object struct | |
if((obj = malloc(sizeof *obj)) != NULL) { | |
//create-image: size(w,h), bit depth, channels | |
obj->hsv = cvCreateImage(cvGetSize(image), 8, 3); |
View camshifting.c
This file contains 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 "camshifting.h" | |
/* Create a camshift tracked object from a region in image. */ | |
TrackedObj* create_tracked_object (IplImage* image, CvRect* region) { | |
TrackedObj* obj; | |
//allocate memory for tracked object struct | |
if((obj = malloc(sizeof *obj)) != NULL) { | |
//create-image: size(w,h), bit depth, channels | |
obj->hsv = cvCreateImage(cvGetSize(image), 8, 3); |