Tag: coding

Efficient CSV Reader for MATLAB

This CSV reader will provide you with uncompromised performance. Thanks to the power of MEX compiler, for the first time in history you can load _HUGE_ CSV files into MATLAB in seconds. Enjoy! Usage: The attached archive contains compiled MEXW64 version. For other OS/architecture you need to: DOWNLOAD: swallow_csv.zip

GraviBall Released

DOWNLOAD: graviball.zip Finally, the time has come to release my first more or less complete computer game in quite some time. GraviBall started as a small experiment with custom gravity in Unity3D and quickly grew to be a space arcade with SMG-like feeling. At the moment, it has six levels […]

Large Table Viewer

Every now and then you have to deal with tabular data files that are larger than average. I, for one, occasionally have to deal with CSV files as large as 500MB – 1GB each (e.g. 10000 rows, 30000 columns). If you already had the doubtful pleasure of using Excel to […]

Sound Manager for Unity3D

Unity3D’s default sound philosophy (2D/3D audio sources with support for directionality, volume, panning, property animations and filters like Reverb, Echo, etc.) is cool but if you want to add some simple sounds to your game really quickly and also: – keep playing music when loading and into new scenes – […]

SSlicer

Slightly off-topic with regard to recent posts, I’ve found an old piece of code which I figured could be published. It’s image slicing utility. Load an image, draw regions using LMB + drag, name and/or remove regions using double-click, export slices using menu or toolbar. A very straightforward tool, replacement […]

Animated normal maps simulating geometry displacement

As promised – application example of Flow Editor‘s new functionality – an animation map. I created a high-poly model of an alien eyeball in Blender and texture-painted it. Then I baked the color map and normal map onto a regular low-poly sphere. After loading the generated color map into Flowed, […]

mat_joy – MATLAB Interface for Joysticks

Admittedly, it already exists – http://code.google.com/p/prok-screen/ but its awkward way of doing things (exposing functions using ActiveX server) was a bit of overkill for our needs. Hence, this stripped down, pure MEX version. Enjoy. Usage: [position, buttons] = mat_joy(joystick_id), where: joystick_id – joystick identifier (0-15), position – list of joystick […]

Faster dot product for SVM

If you’ve ever used SVM for classification of 3D images, you’re probably a big fan of the kernel trick as it improves SVM performance significantly when working with such huge sets of features. I’m working in neuroscience at the moment and I think it’s fair to say that using SVM […]

Java: Automatic configuration dialog for cli-parser annotated fields

In case you haven’t heard about cli-parser – it’s a command-line interface library for Java and a very handy one at that. Its main class parses command line parameters into fields of a given class specified just by annotations. It can also produce a neat usage description characteristic for CL […]

Lindenberg's watershed-based blob detection for MATLAB

Just something I needed recently and haven’t found any existing standalone implementation. Algorithm description can be found on Wikipedia. Usage is quite simple:         % Where I is 1-, 2- or 3-dimensional image [~, index] = sort(reshape(I, numel(I), 1), 1, ‘descend’); blobs = ls_blob_detect(I, index);