Skip to content

Instantly share code, notes, and snippets.

Avatar

Kumar Krishna Agrawal kumarkrishna

View GitHub Profile
@kumarkrishna
kumarkrishna / Shapes
Created Dec 3, 2013
Shape Detection.. Go through the carefully...A bit of unused lines of code here and there. :P
View Shapes
//Author: Kumar Krishna Agarwal
//Mail : kumar.1994.14@gmail.com
#include <stdio.h>
#include <highgui.h>
#include <cv.h>
#include <cxcore.h>
#include <stdio.h>
#include <stdlib.h>
@kumarkrishna
kumarkrishna / BlobDetection
Created Dec 2, 2013
Non-recursive blobDetection using queue . Centroid also implemented
View BlobDetection
//Author :Kumar Krishna Agarwal
//Mail :kumar.1994.14@gmail.com
#include <stdio.h>
#include <highgui.h>
#include <cv.h>
#include <cxcore.h>
#include <stdio.h>
#include <stdlib.h>
@kumarkrishna
kumarkrishna / EdgeDetect
Created Nov 30, 2013
EdgeDetection_TrackBar
View EdgeDetect
//Author: Kumar Krishna Agarwal
//Mail : kumar.1994.14@gmail.com
#include <iostream>
#include <highgui.h>
#include <cv.h>
#include <cmath>
#include <time.h>
IplImage* img;
View videoWriter
#include <iostream>
#include <highgui.h>
#include <cv.h>
#include <cmath>
#include <time.h>
int main()
{
CvCapture* capture=cvCreateCameraCapture(0);
@kumarkrishna
kumarkrishna / trackkBar
Created Nov 30, 2013
Using callback function in trackBar
View trackkBar
//Author : Kumar Krishna Agarwal
//mail : kumar.1994.14@gmail.com
#include <iostream>
#include <highgui.h>
#include <cv.h>
IplImage* img;
IplImage* gray; //Global declared images to be accessed by both functions
@kumarkrishna
kumarkrishna / histogram
Last active Dec 29, 2015
Histogram based thresholding / Adaptive thresholding
View histogram
//Author : Kumar Krishna Agarwal
//mail : kumar.1994.14@gmail.com
#include <iostream>
#include <highgui.h>
#include <cv.h>
int main()
{
@kumarkrishna
kumarkrishna / gist:7704926
Created Nov 29, 2013
Creating knaive binary image
View gist:7704926
//Author : Kumar Keishna Agarwal
//Mail : kumar.1994.14@gmail.com
#include <iostream>
#include <highgui.h>
#include <cv.h>
int main()
View Create_Image
//Author: Kumar Krishna Agarwal
//Mail : kumar.1994.14@gmail.com
#include <iostream>
#include <highgui.h>
#include <cv.h>
int main()
{
You can’t perform that action at this time.