Ask Your Question

Sid's profile - activity

2014-05-15 14:56:24 -0600 received badge  Editor (source)
2014-05-15 14:43:04 -0600 asked a question Issues with installing OpenCV 2.4.9 on Ubuntu 12.04 - gtkerror

I am trying to install the latest version of OpenCV (2.4.9) on Ubuntu and am getting an error as under

[ 10%] Built target pch_Generate_opencv_highgui
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_images.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/loadsave.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/utils.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window.cpp.o
[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_gtk.cpp.o
In file included from /usr/local/include/glib-2.0/glib/gasyncqueue.h:30:0,
             from /usr/local/include/glib-2.0/glib.h:32,
             from /usr/local/include/gtk-2.0/gdk/gdktypes.h:32,
             from /usr/local/include/gtk-2.0/gdk/gdkcolor.h:4,
             from /usr/local/include/gtk-2.0/gdk/gdk.h:30,
             from /usr/local/include/gtk-2.0/gtk/gtk.h:31,
             from /opt/opencv/OpenCV-2.4.9/modules/highgui/src/window_gtk.cpp:48:
/usr/local/include/glib-2.0/glib/gthread.h:233:27: error: variable or field 'g_static_mutex_init' declared void
/usr/local/include/glib-2.0/glib/gthread.h:233:27: error: 'GStaticMutex' was not declared in this scope
/usr/local/include/glib-2.0/glib/gthread.h:233:41: error: 'mutex' was not declared in this scope
/usr/local/include/glib-2.0/glib/gthread.h:234:27: error: variable or field 'g_static_mutex_free' declared void
/usr/local/include/glib-2.0/glib/gthread.h:234:27: error: 'GStaticMutex' was not declared in this scope
/usr/local/include/glib-2.0/glib/gthread.h:234:41: error: 'mutex' was not declared in this scope
/usr/local/include/glib-2.0/glib/gthread.h:253:3: error: 'GStaticMutex' does not name a type
/usr/local/include/glib-2.0/glib/gthread.h:255:3: error: 'GSystemThread' does not name a type
/usr/local/include/glib-2.0/glib/gthread.h:272:3: error: 'GStaticMutex' does not name a type

I have GTK 2.0 installed and also updated my CMakeCache.txt to point to glibconfig.h and gdkconfig.h

2013-05-29 01:10:59 -0600 received badge  Supporter (source)
2012-09-10 23:50:28 -0600 received badge  Student (source)
2012-09-10 14:26:50 -0600 asked a question Log Polar Transform

I have been going through the latest OpenCV implementation of the Log Polar Transform using the Blind Spot Model. I am a bit confused as to how the cortical image size (sectors x rings) is being calculated. The inputs I provide are width & height of original image, center point, rings, blindspot size and I ask OpenCV to internally calculate the sectors.

Given this, my cortical image size turns out to be 120 x 134 when I give the following values as inputs : width = 800, height = 600, center(400,300), rings R = 120, blindspot size ro0 = 1, romax = 0.5*min(width,height). This means that my no of sectors is being internally calculated to be 134 to keep the aspect ratio of the log-polar template = 1.

If I manually calculate S = 2pi/(a-1) where a = exp(ln(romax/ro0)/R) I however get S = 130

I am not sure why I am getting this discrepancy of 4 rows. Any suggestions would be helpful.

Thanks