Skip to content

Instantly share code, notes, and snippets.

View abhigarg's full-sized avatar
🎯
Focusing

Abhinav Garg abhigarg

🎯
Focusing
View GitHub Profile
@abhigarg
abhigarg / 0-JS-EXCEL.MD
Created November 5, 2023 19:39 — forked from code-boxx/0-JS-EXCEL.MD
Javascript Create Excel File
@abhigarg
abhigarg / trie.cc
Created January 24, 2017 13:06 — forked from reterVision/trie.cc
A simple Trie implementation in CPP.
#include <iostream>
#include <string>
#include <map>
#include <vector>
using namespace std;
struct Node {
char ch;
map<char, Node*> children;
#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);
#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);