lytro resources

http://optics.miloush.net/lytro/TheResources.aspx

http://eclecti.cc/computervision/reverse-engineering-the-lytro-lfp-file-format

http://www.timzaman.com/?p=2457

发表在 Research | 留下评论

solve steam crash when shart problem

I encountered a problem that when startsteam.sh: line 755:  3142 Segmentation fault

I ran “DEBUGGER=gdb steam” and found that it is related to the 32bit nvidia GL library

So I uninstalled nvidia driver and uninstalled these two packages:

libgl1-mesa-dri:i386, libgl1-mesa-glx:i386

Then, reinstall the nvidia driver and open steam, it will you prompt you to install some i386 package(which is the above mentioned two packages), and then it works again.

发表在 Linux使用 | 留下评论

install caffe on ubuntu 12.04

caffe is a deep learning framework, the official site is at: http://caffe.berkeleyvision.orginstall the dependencies following the instructions on the official site, when install nvidia driver and the cuda, better install both from the .run script

发表在 Linux编程 | 留下评论

[quote]MATLAB R2013a on Ubuntu 12.10: libstdc++ issues when running 64-bit

source: http://blogs.bu.edu/mhirsch/2013/04/matlab-libstdc-issues-when-running-64-bit/

In some systems (here, it was 64-bit Matlab on 64-bit Ubuntu 12.10) you may find an error about the version of libstdc++ being wrong. E.g. when using the system() or unix()commands.

Here’s what worked for me.

1) cd /usr/local/MATLAB/R2013a/sys/os/glnxa64
2) sudo mkdir obsolete
3) sudo mv libstdc* obsolete/
4) sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc* ./

The specific error this fixed for me was calling gnucap from Matlab. I would get the error:
gnucap: /usr/local/MATLAB/R2013a/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15′ not found (required by gnucap)

when running in Matlab
unix('gnucap -b foo.net')
or
system('gnucap -b foo.net')

发表在 Linux编程 | 留下评论

Install python-lfp-reader in ubuntu 12.04

python lfp reader is a tool that can read the latest lytro camera file format, and then extract the content inside.

The website for this project is: http://code.behnam.es/python-lfp-reader/ . The project has instructions on how to install and run. However, when installing on ubuntu 12.04, I still encountered several problems. Here I took a note on how to solve the problems.

  • no element ffdec_h264 : need to install package gstreamer0.10-ffmpeg
  • no element h264parser : need to install package gstreamer0.10-plugins-bad
  • ecoder jpeg not available : need to make a link in order for PIL to find the jpeg lib, refer to the following links:       http://stackoverflow.com/questions/4632261/pil-jpeg-library-help             and after making the link, you need to reinstall the PIL library
  • no modeule named _imagingtk : need to install package python-imaging-tk

Then you can use:  “lfp-picture export <path to your input stack.lfp file>” to obtain all the focus stack and depth map and the all_focus image. The depth map txt file can be directly read into matlab using load command.

发表在 Research, 计算视觉 | 留下评论

Indoor Segmentation and Support Inference from RGBD Images

Deploy and Setup

  1. download the dataset, which is a single .mat file.
  2. modify the “Consts.m” file. In this file, we need to setup the correct path. This includes:
  3. download and install SPAMS framework. Download and build the package, paste the absolute path to “build” folder to the Const.m
  4. download and install gurobi optimization package.

Start to Run

There are three entry points to the code package. The first is the run_pipeline_segmentation.m. This only generate the segmentation results. The other two are the run_pipeline_support_inference_gt.m and run_pipeline_support_inference_seg.m. These two do support inference based on the manually labeled segments and the segments generated by the segmentation procedure respectively.

Issue in running in 2013a

The original package is written and compiled in 2011a, there are some changes between the versions of Matlab. The code will fail in an error “not positive semi-definite”. We need to create a new function and copy the content in “princomp.m” into it, then change this line

varargout{1} = pca(varargin{1},’Algorithm’,’eig’,’Economy’,fEconomy);

to use the ‘svd’ algorithm. Then change all the places that call princomp to call this new funciton.

发表在 Research | 留下评论

[quote] gdb : Could not insert hardware watchpoint

Source: http://stackoverflow.com/questions/3206332/gdb-stops-with-too-many-watchpoints-when-there-is-only-one

set can-use-hw-watchpoints 0

 

发表在 C++ | 留下评论

[original] How to use symbian phone as webcam under ubuntu 13.10

The project is here  http://sourceforge.net/projects/smartcam/files/

In ubuntu we need to first download the source code. Then according to there readme file, we need to build it. First install some dependencies.

intltool, libgtk2.0-dev, libdbus-glib-1-dev, libgconf2-dev, libbluetooth-dev

发表在 数码 | 留下评论

[quote]How can I configure dbus to allow ssh-user to suspend server

Original link: http://askubuntu.com/questions/21586/how-can-i-configure-dbus-to-allow-ssh-user-to-suspend-server

There are two basic ways this can be done and a workaround:

继续阅读

发表在 Linux使用 | 留下评论

【转】Linux下文件分割合并

转载自:http://os.51cto.com/art/201104/255359.htm

截取文中关于二进制的部分:

对于可执行文件等二进制文件,则不能通过文件行数来进行文件分割,此时我们可以指定分割大小来分隔文件。

命令: 继续阅读

发表在 Linux使用 | 留下评论