# Category: Matlab

## [3D Scan and Print] Paintings!

I made a super-high resolution 3-D scanner for paintings. With that, we scanned two paintings by Rembrandts and a Van Gogh. In order to visualize the result, these were 3-D printed in full color...

## [Matlab] Hyperspectral Data To RGB

In here I will describe how you can convert your hyperspectral data containg wavelengths and reflectance values, from for example a hyperspectral cube (or hypercube), to RGB data (or XYZ, Lab, whatever). In order...

## [Matlab] Quit or Exit External Process with Matlab

Sometimes you just want to kill any process that you are running from matlab. This process has to run within Matlab or be Matlab itself, otherwise it is impossible. Therefore you can run an...

## [Imaging] Lytro In Matlab

This post tells you how to use images and pictures shot by the Lytro camera with Matlab. Lytro images are called “light field images” or dynamic images are whatever, but whatever they tell you;...

## [3D Matlab] Save Stereo 3D image

So if you happen to have a stereo-vision enabled computer, you’d like to look at some 3D stuff. Particularly interesting is of course your own data. Matlab is easy for data processing and making...

## [Vision] Depth estimation from Blur estimation

In this post I will briefly demonstrate how we can compute the depth estimation from ‘focal’ blur estimation. I will give a brief introduction, show some formula’s, and then give the Matlab sample code...

## [Compass] Easy Magnetometer Calibration

This code is a short example on how to calibrate your cheap magnetic compass. I used a three axis HCM5883 magnetometer from Honeywell. It’s very cheap, but mine was pretty bad. It turned out...

## [2D] Optical flow

This is a function for optical flow in Matlab, using Lucan-kanande/Horn-Schunck optical flow estimation. It includes a sample code and the function itself. Assumptions behind the Lucas-Kanade and Horn-Schunck Optical Flow Estimation methods Both...

## [Grid] Crop a grid of images in Matlab

This function makes you get a crop a grid in Matlab. So it crops multiple images out of one image and puts it in an image array. You can define the bordersize of each...

## [Saturation] Saturate or Desaturate an image in Matlab

This function written in Matlab lets you change the saturation of an image in Matlab. You can saturate the image by setting the factor >1, and if you want to desaturate the image in...