<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0);">
<div>
<div><font face="Calibri">Hello Sami,</font></div>
</div>
</div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri"><br>
</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri">We are just about to release the latest version of SimpleITK which includes the LandmarkBasedTransformInitializer. This will happen in the next couple of weeks.</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri"><br>
</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri">For an immediate solution, you can build the toolkit’s master branch for anaconda using the conda recipe found on my github:</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri"><br>
</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri">git clone https://github.com/zivy/conda-recipes.git</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri">cd conda-recipes</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri">git checkout simpleitkMaster</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri">cd python</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri">conda build simpleitk</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri"> </font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri">Then just install the package you built. This build process is for people who want to stay on the cutting edge, in between official releases (the master branch is our stable branch so you should be fine).</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri"><br>
</font></div>
<div><font face="Calibri"> regards</font></div>
<div style="color: rgb(0, 0, 0);"><font face="Calibri"> Ziv</font></div>
<div style="color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Sami Koho <<a href="mailto:sami.koho@gmail.com">sami.koho@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, July 12, 2016 at 5:29 AM<br>
<span style="font-weight:bold">To: </span>insight-users <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>><br>
<span style="font-weight:bold">Subject: </span>[ITK-users] SimpleITK landmark based initialisation (and image visualisation)<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">I was thinking of adding a manual landmark based initialisation to my image registration method, as the automatic initialiser does not reliably work in my current application. I’m registering correlative microscopy images with very large shift
and rotation between moving and fixed images — usually the moving image also covers only a small part of the area shown in the fixed image. By specifying the initial offset and rotation manually, registration works nicely, but this is a bit cumbersome, because
I have to figure out the approximate offsets first.</div>
<div class=""><br class="">
</div>
<div class="">The problem is that I do not seem to have the sitk.LandmarkBasedTransformInitializer() available in my SimpleITK version. It was used in the notebook <a href="http://insightsoftwareconsortium.github.io/SimpleITK-Notebooks/67_Registration_Semiautomatic_Homework.html" class="">http://insightsoftwareconsortium.github.io/SimpleITK-Notebooks/67_Registration_Semiautomatic_Homework.html</a>.
I have SimpleITK 0.9.1 (Compiled Sep 28 2015) that I have installed on Anaconda according to the Wiki instructions. I am using Python 2.7. Would I possibly need some other version of SimpleITK? How could I get it? </div>
<div class=""><br class="">
</div>
<div class="">Alternatively, is there some other simple method for calculating a spatial transformation from control point pairs in SimpleITK? I can of course do that in Numpy, but I wouldn’t like to overly complicate things.</div>
<div class=""><br class="">
</div>
<div class="">Another question, in the notebook above you are using a visualisation module named “gui"<i class=""> </i>to show nice interactive plots, from which it is possible to make landmark selections as well. Is that by chance publicly available somewhere?
</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class=""><br class="">
</div>
<div class="">Sami<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
</span>
</body>
</html>