[Qt + VTK] Displaying Single DICOM File Using VTK Widget in Qt

To install the VTK library, you should see tutorial how to install VTK library using CMAKE.
Read this post if you want to read a series of DICOM files using sliderbar.
1. Create a new "Qt GUI Application" Project in Qt
2. Open the .pro file, add the following items in it:
LIBS += -L/usr/local/lib/vtk-5.10 #folder to your VTK library

LIBS += -lvtkCommon \
        -lvtkRendering \
        -lvtkVolumeRendering \
        -lQVTK \
        -lvtkIO \
        -lvtkFiltering \
        -lvtkgdcm
INCLUDEPATH += /usr/local/include/vtk-5.10 #folder to your VTK include files

[Qt + VTK] Install VTK with Qt Integration using CMake-GUI (Linux & Windows)

If you already finished installing VTK, let's try the examples to read single DICOM file and DICOM file series.
1. Download Cmake-GUI and install:

    1. Open the Synaptic Manager, search for the Cmake-gui then install it.
    2. Open terminal, then type apt-get install cmake-qt-gui
    3. Download and install it from source: http://www.cmake.org/cmake/resources/software.html

[Qt + OpenCV] Displaying Images and Convert to Grayscale

If you are interested to just display the image, see displaying image in Qt with OpenCV.
1. Create a new Qt GUI Application project.
2. Add a new Label and 3 Push Buttons (Open Image, To Grayscale, and Reset buttons) in the form.
3. Do the rest with writing the program:

Linux Shortcuts and Commands


Legend:
<> = single special or function key on the keyboard. For example <Ctrl> indicates the "control" key.
italic = name of the file or variable you probably want to substitute with your own.
fixed width = in-line Linux commands and filenames.
Notes for the UNIX Clueless:
1. LINUX IS CASE-SENSITIVE. For example: Netscape, NETSCAPE and nEtscape are three different commands. Also my_filE, my_file, and my_FILE are three different files. Your user login name and password are also case sensitive. (This goes with the tradition of UNIX and the "c" programming language being case sensitive.)
2. Filenames can be up to 256 characters long and can contain letters, numbers, "." (dot), "_" (underscore), "-" (dash), plus some other not recommended characters.
3. Files with names starting with "." are normally not shown by the ls (list) or dir commands. Think of these files as "hidden". Use ls -a  (list with the option "all") to see these files.
4. "/" is an equivalent to DOS "\" (root directory, meaning the parent of all other directories).
5. Under Linux, all directories appear under a single directory tree (there are no DOS-style drive letters).
6. In a configuration file, a line starting with # is a comment.

Android : Install the Text to Speech Engine and Locales

Install all the .apk in this compressed .zip file and you are ready to go to use the text to speech engine with several languages such as english, german, french, italian, and many more.

Linux and UNIX Commands Cheat Sheet

This cheat sheet contains of all common commands in UNIX and LINUX for system handling, hardware information, load, statistics, users handling, password handling, process handling, network debugging, file system handling, kernel programming, and many more.

Download this cheat sheet, here.

Android : Text to Speech with Language Changer Option

Text to Speech with Language Changer Option

In this post we are going to make a Android Application using the text to speech feature. What differs this tutorial with the other is this tutorial uses a language changing option. So the text can be spoken in different accent based on the country selected.