I am Charmie

メモとログ

2012-09-01から1ヶ月間の記事一覧

POV-Ray: Language directives

#include loads .inc files that describe any data used in .pov files as: #include "file.inc" #declare and #local declares identifiers. Identifiers include vector, object, *_map, etc. For scalar, vector, and color, don't forget put ; at the …

XPE: neXtgen Povray Editor

XPE (neXtgen Pov-ray Editor) is an editor for POV-Ray based on wxWidgets library. Here's the quick commands list for XPE installation. sudo apt-get install libwxgtk2.8-dev libwxgtk2.8 tar -zxf xpe_project_v0_9_5b.tar.gz cd xpe_project/ ./c…

PovClipse: eclipse plug-in for POR-Ray

PovClipse is an eclipse plug-in for POV-Ray and MegaPOV. Since the original tutorial assumes Windows, I briefly write how to setup on Ubuntu. Edit povray.conf If rendering fails, you should add the following command in ~/.povray/3.6/povray…

POV-Ray: Editor

Contrast to POV-Ray on Windows, POV-Ray on Linux does not contain GUI*. Just for editing, any editor is fine, however, we'd also like render images while editing. In such sense, we prefer editor with rendering function. There exist several…

POV-Ray: install 3.6.1 plus Clemens Rabe's patch

For rendering lens distorted images, I installed POV-Ray 3.6.1 and then apply the patch provided by Clemens Rabe. building environment sudo apt-get install build-essentials supporting libraries The following supporting libraries are needed…

MatLab Toolbox for Camera Calibration and Simulation

I found a cool toolbox!! I tried the basic functions for synthesize images with different parameters. It runs faster than my MatLab code! I'll dive into the code for more detail, especially how to apply intrinsic/extrinsic parameters and l…

Pov-Ray: lens distortion effect

I mentioned rendering images with lens distortion effect. It could be possible Clemens Rabe's patch. However, I'm giving up it because I couldn't compile povray under windows... One solution is install linux on virtual PC and apply the pat…

Visual Studio 2010: switch development environment

How to switch development environment from/to C++ to/from C# is Tools->Import and Export Settings ... Choose a radio button "Import selected environment settings" and click Next Choose either save current settings or not (yes is better) an…

Install: Microsoft XNA Game Studio 4.0

Download setup.exe and execute it. If the installation is successfully finished, template of XNA Game Studio 4.0 is added in the list of Visual Studio.

CG: add/remove lens distortion

I'm considering making a multiple cameras calibration dataset with CG modeler/renderer. Functions I want are easy to add/remove cameras, easy to check rendering result, good lens distortion effect. First candidate is Blender. Blender satis…

run a batch file recursively

run a batch file recursively: set nameDir=%CD% :: run the following code recursively for /r /d %%d in (*) do ( :: go to a next directory cd %%d :: run batch file call test.bat :: go back to nameDir cd nameDir ) %%d: each directory name nam…

access row/column of 2 dimensional cell array

See here. C = { ... rand(100,2) rand(150,2) rand(130,2) rand(50,2); ... rand(110,2) rand(120,2) rand(310,2) rand(10,2); ... rand(130,2) rand(115,2) rand(110,2) rand(40,2); ... }; C = [100x2 double] [150x2 double] [130x2 double] [50x2 doubl…

update MatLab graph/plot in real time

pause function works well to call graph/plot in a loop. Suppose, you want to show a sequence of images in a for loop. If processes in a loop is not heavy, imshow() only shows image after the loop has executed. The code spends enough time t…