Archive for September, 2007

Radial Fields

Posted in Computing 10 months, 4 weeks ago

For some work I was supposed to do later this term, I wanted a few synthetic vector/tensor fields. Something more complicated than a regular planar field.

I’ve used radial and tangential fields in electromagnetics (think solenoids and inductors) countless times, so it should be trivial to generate one, shouldn’t it? Unfortunately, I was getting mixed up in the minus signs somewhere and for the life of me couldn’t find out where. I checked and rechecked my math. I checked the usage of atan2(3) instead of atan(3). Finally, I had to resort to generating them by rotating the Cartesian basis and regenerating the tensors from the spectral components. Hacky, cludgy and doesn’t follow the DRY principle but this is just a test case. Yay tangential field:

tensor.png

To check the robustness of my algorithms later on, I need to add some noise to the fields and see how well they perform. Plagued by partial volume effects, diffusion tensor data are inherently very noisy, so it’ll be good to include noise as part of the algorithm development process. Right now, modeling noise in tensors is a very complicated process because the tensors themselves are built through a linear regression from diffusion weighted images. The noise is definitely not gaussian. Gaussian noise is easy, and that’s what I’m doing now until I fully understand how noise is transformed through the regression.

Another matter of complication is that regularizing (or denoising/smoothing) these fields is an active area of research. Extensions to the standard anisotropic edge-preserving filters like Perona-Malik are non-trivial (at least to me.) One of the technicalities of diffusion tensors is that they are positive definite. The positive definiteness is a physical manifestation as diffusion can only be zero at absolute zero (a great story for sci-fi.) I picked one of the many extensions just to test my workflow and here are the results. Pretty good I’d say for all the complications.

tensor15.png tensor15s.png

Lastly, opensource visualization tools seem to trip over the simplest of tasks. MayaVi seems to be the only one that can update the VTK pipeline when the source data changes. In other programs I have to rebuild the pipeline each time. As you can imagine, this gets tiring really fast.

MayaVi tensor visualization

Mathematical Image Analysis

Posted in Activity, Design 11 months, 1 week ago

I’m taking just one course this semester — a special topics course on Computational Anatomy and Medical Image Analysis. The course is highly focused on the research interests of my supervisor, so instead of sitting beside each other in the lab, we go to another class room and sit beside each other.

Computational Anatomy is “the use of mathematical analysis to learn how tissues grow, assume new shapes and morph into mature structures.” The first few classes are review of the pre-requisites – linear systems theory and stochastic systems. Having not taken either of these courses, I’m seeing plenty of new material. A lot of it is intuitive, some of it not obvious at all. Overall a Good Thing.

I don’t have a copy of the outline yet, but some of the topics we are going to cover are vector space theory, variational calculus, differential and riemannian geometry, tensor analysis and applications in Computational Anatomy. An example of an application is what I’ve just finished writing — linear statistical analysis to classify the hippocampus in dementia of the Alzheimer’s type.

I’ll be posting about things that I find interesting here. If you’re in the class and want to follow along, a quick way to do so if by bookmarking the tag: ensc462.

MIAL Openhouse

Posted in Activity 11 months, 1 week ago

Sometime last week, the members of the Medical Image Analysis Lab held an openhouse to attract new students. The idea was to showcase some of the work being done and I guess to see how this is relevant in the long run.

MIAL Handout Page1 MIAL Handout Page2

Download the full resolution of the handouts.

Variational Image Matching

Posted in Activity 11 months, 1 week ago

Computational Anatomy

The aforementioned report is now ready for your immediate consumption. A single slide on my Fluid Match has been expanded to a whole section. Took me a little longer than I thought it would, but this is behind me now. I think I’ve more or less achieved what I set in front of me eight months back.

I could have talked about the implementation for a massively parallel supercomputer, but I was already pushing the page limits.

Keywords: optimization, variational, registration, diffeomorphisms, fluid-match, statistical tests, Alzheimer’s.

Palantir

Posted in Design 11 months, 2 weeks ago

Instrument Explorer

Amazing set of screenshots from the palantir blog.

Palantir is building an enterprise platform for analysis of financial and intelligence data. Analysts at government agencies across investigative and intelligence realms are experiencing tremendous analytical challenges managing the tidal wave of information that flows across their desks and throughout their knowledge networks. Palantir Government provides a new way of exploring, understanding, and sharing these large sets of structured and unstructured information across departmental and organizational lines. Similarly, Palantir Financial is a powerful new analytical platform for approaching and understanding financial markets. For decades, traders and economists have struggled with conventional financial and statistical software to explore the financial world. With Palantir, analysts directly explore and manipulate dynamic financial concepts. Properties and connections amongst a vast array of time series, time periods, macroeconomic trends and events, and exotic hedge fund strategies can be discovered, published and shared, unlocking organizational knowledge.