Damiles Blog. A computer vision, OpenCV and IT technology blog.
-
GNUPLOT - 3d plot surface
For 3d plot gnuplot use command splot.
Read moresplot sin(sqrt((x*x+y*y)))/sqrt(x*x+y*y) t "weaves"
-
AWK. Calculate mean, min and max
AWK is a general purpose programing language that is designed for processing text-based data. This unix command is very powerful and with it we can calculate the mean, min and max of a data stored in file.
data.txt:
10 20 50 100 200 500
awk command:
awk '{if(min==""){min=max=$1}; if($1>max) {max=$1}; if($1< min) {min=$1}; total+=$1; count+=1} END {print total/count, min, max}' data.txt
Result:
Read more146.667 10 500
-
OpenCV & OpenGL
In this tutorial we see how we can acces to OpenCV functions and use the images we process with it to use in our OpenGL program.
To use an OpenCV image (IplImage) and use it as an OpenGL textures we mus use this function.
Read more
subscribe via RSS