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 <pthread.h> | |
using namespace cv; | |
using namespace std; | |
//GLOBALS | |
VideoCapture vcap; | |
Mat frame; |
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
echo "QuarkSpark/Sept'12" | |
echo "################################" | |
echo "Installing Qt" | |
apt-get install libqt4-dev | |
apt-get install libqt4-core | |
apt-get install libqt4-gui | |
apt-get install libqt4-xml | |
apt-get install libqt4-opengl | |
echo "done with Qt Installation!! :)" | |
echo "---------------------------------" |
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
echo "QuarkSpark/Sept'12" | |
echo "########################" | |
echo "Installing OpenSSH..." | |
apt-get install openssh-server | |
echo "----------------------------" | |
echo "Installing Emacs, Gfortran, Git, Screen...." | |
apt-get install emacs | |
apt-get install gfortran | |
apt-get install git | |
apt-get install screen |
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
echo "QuarkSpark/Sept'12" | |
echo "#####################################" | |
echo "Initializing Updates...." | |
echo "#####################################" | |
echo "Auto-removing unnecessary stuff" | |
apt-get autoremove | |
apt-get clean all | |
apt-get autoclean | |
echo "#####################################" | |
echo "Updating process initialized" |
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
// Convert IplImage* to Mat | |
IplImage * image = cvLoadImage("test.jpg"); | |
Mat matImg(image); | |
// Convert Mat to IplImage* | |
//Convert to IplImage or CvMat, no data copying | |
IplImage ipl_img = img; | |
CvMat cvmat = img; | |
IplImage* img_new = &ipl_img |
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
Mat src = imread("road-1_4.jpg", 1); | |
Mat samples(src.rows * src.cols, 3, CV_32F); | |
for( int y = 0; y < src.rows; y++ ) | |
for( int x = 0; x < src.cols; x++ ) | |
for( int z = 0; z < 3; z++) | |
samples.at<float>(y + x*src.rows, z) = src.at<Vec3b>(y,x)[z]; | |
int clusterCount = 4; | |
Mat labels; |
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
/* | |
* File Operation.cpp | |
* Pree, 20th October 2009 | |
* Contains definitions of class methods for Operation. | |
*/ | |
#include "Operation.h" | |
#include <iostream> |
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
/* | |
* File main.cpp | |
* Pree, 20th October 2009 | |
* Contains the main function, as well as some functions that help with user | |
* interaction. | |
*/ | |
#include "Bdd_node.h" | |
#include "Operation.h" | |
#include "Bdd_tables.h" |
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
/* | |
* File Bdd_tables.cpp | |
* | |
* Contains the implementation of the class methods of Bdd_tables, defined | |
* in Bdd_tables.h | |
*/ | |
#include "Bdd_tables.h" | |
#include <iostream> |
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
#ifndef BDD_TABLES_H | |
#define BDD_TABLES_H | |
/* | |
* File Bdd_tables.h | |
* | |
* Defines the class Bdd_tables, along with a structs computed_table_key | |
* and unique_table_key | |
*/ |