Apple is providing "photo with depth" on their duel-camera iPhones, e.g. iPhone 8, iPhone X, etc. When you shoot in "portrait" mode, the jpg file will contain an auxiliary photo, i.e. the disparity map representing depth (example shown below). Here's an example of the above-mentioned jpg file: IMG_1616.jpg. This jpg file contains two jpgs. The... Continue Reading →
Quick tips to begin Qt
Hey, it's never too late to have some human-friendly GUI! Why Qt It's pure c++! Don't let me talk about the plenty of headache I had using CLR to bind wfp(c#) and c++. The signal/slot mechanism is so good. It's popular, meaning a lot of answers on Stack Overflow. **Qt 4.0 used to be maintain... Continue Reading →
Register function/class mapping table in c++ — linking problem
When developing Factory pattern in c++, we usually want to automatically maintain a Function/Class table of children implementations to create, e.g. APPLE -> Class Apple BANANA -> Class Banana The problem is that every time a new implementation is added, the table needs a update. Editing the table may incurs conflicts. The proper solution is... Continue Reading →
Caffe + vs2013 + OpenCV in Windows Tutorial (II)
This post is a small example of start caffe from Visual Studio. Usually caffe is called from command window for simplicity. Yet with Visual Studio, step into/over codes line by line make the Debugging much straight forward. All codes are written in the "train-MNIST" project. "SolverParameter solver_param" reads the solver's configuration from a .prototxt file. A... Continue Reading →
Caffe + vs2013 + OpenCV in Windows Tutorial (II) – Use caffe in vs2013
If you have the code compiled from the previous post: Caffe + vs2013 + OpenCV in Windows Tutorial (I) – Setup. Now you can use caffe in the following two ways: Use the caffe.exe from cmd. The main function came from the "caffe/tools/caffe.cpp" file, which can be used for batch training and testing. For example the... Continue Reading →
Caffe + vs2013 + OpenCV in Windows Tutorial (I) – Setup
The purpose of this series it to get caffe working in windows in the most quick and dirty way: I'll provide 1) the modified file that can be compiled in windows right away; 2) the vs2013 project that I'm currently using. In short: Install CUDA, Boost, OpenCV. Download caffe code with vs2013 from GitHub. Download... Continue Reading →
Build Caffe in Windows with Visual Studio 2013 + CUDA 6.5 + OpenCV 2.4.9
Caffe is a deep learning framework popular in Linux with Python or Matlab interface. I just managed to compile Caffe in Windows, and I think it's worth sharing. niuzhiheng's GitHub was of great help. This repository is organized in a way that future update merging from Caffe's GitHub would be very straight forward. For quick setup and... Continue Reading →
OpenCV 2.4.9 + CUDA 6.5 + Visual Studio 2013
Building OpenCV 2.4.9 + CUDA 6.5 + Visual Studio 2013.