I would like to know if someone has tried to link Mathematica with ITK code (call ITK code in Mathematica)?

-
It looks like it's written in C++, so this more general information might be useful. –  b.gatessucks Jul 19 '12 at 14:26
It seems you've been looking for something like this for a while: forums.wolfram.com/mathgroup/archive/2010/Dec/msg00252.html It's the only related post Google gives me. If you implement it yourself, be sure to let us know! –  Szabolcs Jul 19 '12 at 14:28
From what I can tell ITK is already integreated, run a WatershedComponents filter and watch for an ITK process to appear. –  s0rce Jul 30 '12 at 0:06

ITK seems to have already been implemented using MathLink. Watch your processes when you run a WatershedComponents filter, you can see an ITK.exe process appear. I'm not too familiar with MathLink but maybe this very simple starting point can be taken further by people who know how to use MathLink.

This is a Windows-centric example:

(*
*)

(*
"Begin[\"ImageITK\"];"
*)

(*
True
*)

"ImageITK::filterr = \"1 generated code 2: 3`\";"