Friday, March 28, 2014

features.isContionous() assertion - clustering - opencv

probably you forget to initialize the mat in hierarchical clustering.

region of interest (ROI) opencv

they have changed how ROI works in opencv
if you'd like to focus on a region in an image you need to copy it to another image/mat

Mat samples_hog = samples( Rect(0, 0, 96, soFar)).clone();

and do not forget the .clone() part it is important.

in Rect with four parameters (x, y, width, height) but not (x1, y1, x2, y2)

Monday, March 3, 2014

no highlighting in vim

:noh

how tu submit opencv jobs to sge (sun grid engine)

here is the script that I use to submit opencv jobs on sge

qsub -v LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<opencvPATH>/lib/ -b y -cwd -l mem_free=4g -l mem_token=4g ./FlannMatch <PARAMETERS>

Sunday, March 2, 2014

matlab figure fonts issue in ubuntu

it seems like matlab figure fonts are not changed even if you make the changes on ubuntu.

you need to install packages;
xfonts-75dpi
xfonts-100dpi

Saturday, March 1, 2014

undeclared variable in flann/lsh_table.h with -std=gnu++0x (Bug #2179)

if you faced with a problem like this;


/usr/local/opencv/include/opencv2/flann/lsh_index.h:49:0,

                 from /usr/local/opencv/include/opencv2/flann/all_indices.h:42,

                 from /usr/local/opencv/include/opencv2/flann/flann_base.hpp:44,

                 from /usr/local/opencv/include/opencv2/flann/flann.hpp:50,

                 from /usr/local/opencv/include/opencv/cv.h:69,

                 from FlannMatchWindows.cpp:7:

/usr/local/opencv/include/opencv2/flann/lsh_table.h: In member function ‘void cvflann::lsh::LshTable<ElementType>::add(cvflann::Matrix<T>)’:

/usr/local/opencv/include/opencv2/flann/lsh_table.h:196:14: error: ‘use_speed_’ was not declared in this scope



this then you can check this link out and even though they do not say the fix you can find it here;

remove the statement "if (!use_speed_)"  from the line 196 lsh_table.h

it is also fixed on later version of 2.4.2