I am Charmie

メモとログ

2014-01-01から1年間の記事一覧

Install CImg library on Ubuntu

CImg is a c++ template library for image processing provided as a huge but single header file. sudo apt-get install cimg-dev cimg-doc cimg-examples

Spyder: a Python IDE

Spyder is a Python IDE, which provides MatLab like GUI. Anaconda, mentioned in an earlier post, installed Spyder as well as other packages.

Install Anaconda on Ubuntu

Anaconda is a kind of python related packages installer. Using Anaconda, NumPy, SciPy, MatPlotLib, iPython, etc are installed by using a single script file on Linux (must be similar on Windows and Mac). # for 64-bit version Linux wget http…

Installation Python on Ubuntu

I found a better solution and post it here. sudo apt-get install python-numpy python-scipy python-matplotlib python-pandas python-sympy python-nose ipython-notebook python-matplotlib-doc python-numpy-doc python-tk sudo apt-get install pyth…

Installation Acrobat reader on Ubuntu 12.04

sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"sudo apt-get updatesudo apt-get install acroread

a bit modified sample code using QPBO

I started using QPBO, published by Vladimir Kolmogorov, for solving discrete optimization problem. QPBO.h contains a sample code, which I couldn't understand at first moment. Since my colleague told me what the code means, I wrote a bit mo…

Build OpenGM 2.2.1 on Ubuntu

OpenGM is a C++ library for discrete optimization and inference. OpenGM uses several open source codes as external libraries. I compiled it on Ubuntu 12.04. Due to some reasons, I omitted some of the external libraries: CPlex: I spent 2-3 …

Install libDAI on Ubuntu

libDAI for OpenGM. The latest version, which contains CMakeLists.txt, is available on github. The following commands are for older versions. sudo apt-get install libgmp-dev cimg-dev wget http://cs.ru.nl/~jorism/libDAI/libDAI-0.3.1.tar.gz t…

Install CMake 2.8.12.2 from source

There are several ways for CMake installation from source. I tried to install CMake 2.8.12.2 from source using pre-installed CMake 2.8.7 but it failed. #!/bin/bash wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz tar zxvf cmake-2…

CMakeLists.txt for STASM version 4.1.0

STASM is a C++ library for face features detection using Active Shape Model. The version 4.1.0 contains a program, called TASM, that trains ASM given a set of face control points database such as MUCT. The version 4.1.0 lacks CMakeLists.tx…

Confusion matrix with LaTeX

The following code generates a confusion matrix whose diagonal elements have colored background. [code language="latex"] \documentclass{article} \usepackage{tabularx} \usepackage{colortbl} \usepackage{hhline} \begin{document} \begin{tabula…

skype on Ubuntu 12.04 64bit

wget http://download.skype.com/linux/skype-ubuntu_4.0.0.8-1_amd64.debsudo dpkg -i --force-depends skype-ubuntu_4.0.0.8-1_amd64.debsudo apt-get -f install

CurveLab Installation (C++)

User guide of CurveLab explains how to install CurveLab C++. This post is a quick-note for CurveLab C++ installation w/o mex. It requires 2 main steps. 1. FFTW installationDownload FFTW version 2.1.5 from download page. Extract the compres…

AR Bone Puzzle

Our work on medical Augmented Reality system for learning human bone anatomy will be presented at IEEE VR 2014 as a poster. http://youtu.be/cTxSx4EjZog

LaTeX: count the number of words

TeXcount counts the number of words in LaTeX document. How to setup is here though TeXLive might install it. Simple command just to count the total number of words is texcount input.texThe result is:FILE: input.texWords in text: 4415Words …

adjust space between columns in table

A variable \tabcolsep adjusts the space between columns in table. The following command changes the space to 1.5pt:\setlength{\tabcolsep}{1.5pt}

Change the version of a PDF file

The following command can change the version of input.pdf to 1.4 and save as output.pdf by using Ghostscript. gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

PDF annotation on Ubuntu

Xournal can annotate PDF files on Ubuntu. It can add text boxes and some basic shapes such as circle. The annotation functions are not as high quality as PDF Xchange Viewer but satisfies me so far.

convert AR face database to other image formats

AR face database is one of the famous and well-used face databases. This post is a memo how to convert RAW images of AR face database to other formats. All images are stored as RGB RAW files and each image is of 768x576 pixels and of 24 bi…