Tag: coding

Dicomymizer – user-friendly DICOM anonymizer / hierarchy builder

Another fruit of my unholy union with Laboratoire de Recherche en Neuroimagerie. A forgotten one actually, as it is a piece of software I wrote about a year ago. The classical problem of creating hierarchy of DICOM files (e.g. PatientName/StudyDate/ProtocolName/SeriesNumber – my favorite 😉 ) and possibly anonymizing them on […]

File Origin Tracker (for SPM)

If you’re annoyed by having to memorize the meaning and origin of all those thousands of files that you generate every day with SPM, I’ve got something for you. A file origin tracker that will record the checksums of all the Nifti files created by SPM, along with their origins […]

Leap Motion SDK has arrived

I’ve been waiting long weeks but finally it happened. Today I received my free Leap Motion SDK device. I don’t have any videos yet but here I can show you a piece of code that I wrote for emulating mouse using Leap Motion. It’s ugly and stupid but I was […]

xdir.m – more powerful rdir.m

It offers the same syntax as rdir.m but differs in two major ways: 1) performs processing on pathnames from a list 2) supports relative paths in the wildcard expression To demonstrate what the above means in practical terms, assume that you have the following hierarchy: For some reason you already […]

parallelize_matlabbatch

This script loads selected SPM batch, tries to intelligently guess which fields are potential candidates for “parallel splits” and after interactively asking for confirmation: splits your batch into multiple .mat, .m and .sh files (placing them in the same directory as the original batch) – the latter being ready for […]

Nifti Review Tool

Nifti Review Tool can be used to prepare thumbnail previews of large numbers of Nifti files. It is aiming to provide some control over the quality of your preprocessing stages as well as prepare figures for the papers. Usage consists of generating a review, then loading it into the GUI, […]

Brain Connectivity Viewer

There’s plenty of medical image format viewers and brain viewers in particular, however there seemed to be a niche for a small, efficient brain connectivity viewer having all the necessary features for comprehensive and appealing presentation of dynamic causal modelling results, resting-state connectivity or statistical longitudinal coupling (novel work by […]

Yet another Maybe monad for Java

A better one of course – based on cglib’s Enhancer functionality. I wanted to extract some optional elements from an XML file and (if present) assign their contents to fields of my class. In the beginning I started by using try-catch but it soon became unmanageable (and painful to look […]

Foamy Liquid Shader

A variation of my animated water shader supporting foam around obstacles. Unfortunately I can’t prepare a video, but the foam is fully dynamic, it appears around places with small flow and is subject to flow animation. Attached is the archive with the shader, all necessary textures and a demo scene […]

Massacre 3D Release 2012.12

Massacre 3D is the first 3D game I’ve created. It was over 11 years ago – I was 17 and I knew nothing about programming. Really! I didn’t even know what the heck .h files were for in C++ 😉 I was placing both functions and variables in them and […]