I am Charmie

メモとログ

2014-03-01から1ヶ月間の記事一覧

Fusion Move implementation in OpenGM

OpenGM has two files, alphaexpansionfusion.hxx and fusion_mover.hxx, both of which seem to implement Fusion Move algorithm. Yes, both of the code in fact implement Fusion Move algorithm but they are different. 1. AlphaExpansionFusionThis w…

script for install OpenGM on Ubuntu

The following script downloads the source code of OpenGM it, and installs it. sudo apt-get -yV install libhdf5-serial-dev wget https://github.com/opengm/opengm/archive/master.zip -O opengm-master.zip unzip opengm-master.zip mkdir opengm-bu…

script for install libDAI on Ubuntu

The following script downloads the source code of libDAI it, and installs it. wget https://github.com/yesimon/libDAI/archive/master.zip -O libdai-master.zip unzip libdai-master.zip mkdir libdai-build cd libdai-build cmake ../libDAI-master …

script for install TinyXML2 on Ubuntu

The following script downloads the source code of TinyXML2, compiles it, and installs it. wget https://github.com/leethomason/tinyxml2/archive/master.zip -O tinyxml2-master.zip # download the source code unzip tinyxml2-master.zip mkdir tin…

MS Office 2010 activation failure

The activation requires administrator right. Without the right, we will have 0x80070190 error. The solution is to run any of office application as an administrator and then do activation.

play DVD with VLC player on Ubuntu

the following settings are required: sudo apt-get -yV install libdvdread4 sudo /usr/share/doc/libdvdread4/install-css.sh

VirtualBox installation on Ubuntu 12.04

this is not on VirtualBox installation on Ubuntu 12.04, which is based on this. sudo apt-get -yV install dkms sudo gedit /etc/apt/sources.list # add the following line at the end of /etc/apt/sources.list deb http://download.virtualbox.org/…

PlayOnLinux

PlayOnLinux is a software for Linux with which we can play software/applications for Windows on Linux. PlayOnLinux uses wine to enable to use software for Windows. We don't have to install wine before installing PlayOnLinux because PlayOnL…

Install a pdf viewer qpdfview on Ubuntu

qpdfview is a pdf viewer, which provides tab-browsing and copying pdf document as a picture. sudo apt-add-repository ppa:b-eltzner/qpdfview sudo apt-get update sudo apt-get -yV install qpdfview

Build OpenGM 2.3.1 on Ubuntu

Patch files for IBFS (MaxFlow-IBFS) and GCO were corrected in OpenGM 2.3.1!!

TeXMaths: LIbreOffice's extension

TeXMaths is an LibreOffice's extension that enables to make equations with LaTeX on LibreOffice. The installation is very simple: Download .oxt file from download pageRun LibreOffice -> Tools -> Extension manager -> Add -> Specify the down…

CImg: display image(s)

This code loads an image lena.bmp and shows the original image and its grayscaled one in a window, which shows text "Original image | Grayscale image" on its bar. [code lang="c"] std::string strFile = "lena.bmp"; cimg_library::CImg<unsigned char> img1(st</unsigned>…

CImg: convert an RGB image to a grayscale image

This code loads a image lena.bmp and converts the image to grayscale one. [code lang="c"] std::string strFile = "lena.bmp"; cimg_library::CImg<unsigned char> img1(strFile.c_str()); cimg_library::CImg<unsigned char> img2; int color = _imgInput.spectrum(); // to check th</unsigned></unsigned>…

CImg: open an image file

CImg provides several constructors for cimg_library::CImg type objects. [code lang="c"] std::string strFile = "lena.bmp"; cimg_library::CImg&lt;unsigned char&gt; img1(strFile.c_str()); cimg_library::CImg&lt;unsigned char&gt; img2; img2 = c…

CImg: CMakeLists.txt

CImg is provides as a single header file, however it requires several libraries to use CImg in C++ code. CMakeLists.txt and Makefile in ./CImg-1.5.8_rolling140227/examples tells us which libraries should be set.

Ubuntu: change default applications

Default applications for each file type are set in a text file /usr/share/applications/defaults.list . In the file, an application is assigned to each file type as a default application as text/plain=gedit.desktop The above line means that…

Install Mozc

Install mozc sudo apt-get -yV install ibus-mozc run ibus as a startup Dash -> Startup -> Add command: ibus-daemon -drx

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