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 <stdio.h> | |
int main(){ | |
printf("Hello, World!\n"); | |
return 0; | |
} |
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
#change this line | |
LIBS=-lm -lcv -lhighgui -lcvaux -lgsl -lgslcblas -ljpeg | |
#for this line | |
LIBS=-lm -lgsl -lgslcblas -ljpeg -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann |
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
OPENCV_HOME=/usr | |
INCL=\ | |
-I$(OPENCV_HOME)/include/opencv\ |
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
uchar *data = (uchar *)frame->imageData; | |
for (i=0;i<width;i++){ | |
for(j=0;j<height;j++){ | |
image[ i + j * width ] = data[ i + j * width]; | |
} | |
} |
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
/** | |
* Changes the coordinate system of the transformation matrix from regular image | |
* coords (opencv-like) to a different coords system like this: | |
* | |
* .-------> x ^ y | |
* | V | | |
* | ---> | | |
* | | | |
* v y .-------> x | |
* |