Friday, April 22, 2011

Some notes

Compilation note: 

While trying to get Matlab to work with the OpenCV library in order to run  OpenTLD I encountered a problem: Matlab wasn't able to find g++ when it tried executing the mex files. This is due to an incorrect symbolic link (Matlab was looking for the wrong g++ library since I'm using a newer version of g++ than  Matlab R2010a expected). In order to fix this problem I had to create a new symbolic link so that Matlab could find the correct library:

cd ~/Matlab/sys/os/glx86
ln -s /usr/lib/libstdc++.so.6.0.13 ~/Matlab/sys/os/glnx86/libstdc++.so.6

Notes about tools:

Avidemux, a video editing utility for Ubuntu, has proven to be very useful in dealing with my raw footage. It has proven very useful for...
(1) converting movies into a series of jpgs (file -> save -> save selection as JPEG images)
(2) adjusting the resolution to more closely mimic the demo footage conditions. My movies were running at less than half the speed that the demo was running at (about 2-4 fps instead of 6-7 fps). In order to test whether or not I could attribute this to the disparity in resolutions between the two movies, I adjusted the resolution of a few of my sample videos to 50% of their original resolution. In order to use Avidemux to do this, open the file you wish to convert, and in the left toolbar under "Video" select MPEG-4 ASP, click "Filters" and add MPlayerResize. I then set the new size to be 50% of the old video. Click "done" and then click "Configure." For encoding mode select "two pass - average bitrate" and set kb/sec to 1050. Save. Done.

RecordMyDesktop is a serviceable utility for recording within a designated window (others were too slow and seemed to be affecting how fast the tracker ran because they were using too many resources). Even RMD may be slowing the processing down but if it is, it's not terribly noticeable.

Even though it ended up not being useful for this project, I played around with a tool to convert a large amount of image files to other formats and came across Imagemagick. Pretty cool.

No comments:

Post a Comment