<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Matlab is (was) a nice platform from algorithm prototyping, but implementing user interface in Matlab even for basic tasks, such as DICOM image import, reslicing,
 surface, volume visualization, etc. is a lot of work. I would recommend using 3D Slicer as user interface and running algorithms that you have implemented in Matlab using Slicer’s MatlabBridge (https://www.slicer.org/wiki/Documentation/Nightly/Extensions/MatlabBridge).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">With growing popularity of Python and increasing number and quality of Python packages, Matlab is getting more and more irrelevant. I would recommend switching
 to Python as soon as you can. For example, you could easily put together algorithm prototypes that use ITK, as most (all?) ITK is already available in Python.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Andras<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> thanos thanos [mailto:thanosxania@gmail.com]
<br>
<b>Sent:</b> Thursday, September 21, 2017 9:58 AM<br>
<b>To:</b> Andras Lasso <lasso@queensu.ca><br>
<b>Cc:</b> insight-users@itk.org<br>
<b>Subject:</b> Re: [ITK] [ITK-users] New Submission: ND morphological contour interpolation<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Thank you for your reply!<br>
I have some binary data which I load in Matlab and I reshape them to obtain my 3D image. I perform 2D semi-automatic segmentation (based on active contours and b-splines) where I obtain both the curve as a set of points as well as binary images which I then
 multiple with my original image. I then use isosurfaces to get the 3D model. </span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">What I want is to avoid performing the semi-automatic segmentation on each slice so I thought of creating a binary 3D model with missing slices and then do the interpolation. I will study now the "grow from
 seeds effect" and working with scripts on Slicer since I haven't done this before.. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Best,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt">Thanos<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Thu, Sep 21, 2017 at 3:27 PM, Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">It should be easy to write an executable like that. It can be either a standalone executable, or –
 if you want to use other effects or you don’t want to set up a build environment on multiple platforms and create distribution mechanism (software download page and/or app store) – then you can do it using 3D Slicer and a small Python script. See for example
 how to apply a Segment Editor effect in a script here: <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.slicer.org%2Fwiki%2FDocumentation%2FNightly%2FScriptRepository%23How_to_run_segment_editor_effects_from_a_script&data=02%7C01%7Classo%40queensu.ca%7C7daca75d4ffb4e3ab8c008d500f8d338%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415991056644063&sdata=bLWnVZncZNGk0qLuK3lkVhjoFJMy23XTFXSisoRmkFU%3D&reserved=0" target="_blank">
https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#How_to_run_segment_editor_effects_from_a_script</a></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">How the rest of your pipeline is implemented (image loading, visualization, contouring, etc)?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Andras</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> thanos thanos [mailto:<a href="mailto:thanosxania@gmail.com" target="_blank">thanosxania@gmail.com</a>]
<br>
<b>Sent:</b> Thursday, September 21, 2017 8:22 AM<br>
<b>To:</b> Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>><br>
<b>Cc:</b> <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a></span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
<b>Subject:</b> Re: [ITK] [ITK-users] New Submission: ND morphological contour interpolation<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello Andras,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thank you very much for your answer. I already tried Slicer and the Segment Editor and it works fine. I was wondering if I can make an executable that I could use for my data (for
 example an .nrrd segmented volume with some slices missing). <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Best regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanos<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On Wed, Sep 20, 2017 at 6:25 PM, Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">If you want to see what the morphological contour interpolation filter can do, then download nightly version of 3D Slicer (<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.slicer.org&data=02%7C01%7Classo%40queensu.ca%7Ca08e625765f04a0fac1408d500eb5119%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415933050412732&sdata=ADd9uXu9%2FX%2BkJr5FW1P1vKgLtvzgpx8b8tQtel%2FWgE4%3D&reserved=0" target="_blank">www.slicer.org</a>)
 and try "Fill between slices" effect. Some information about the tool is available at 
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fslicer.readthedocs.io%2Fen%2Flatest%2Fuser_guide%2Fmodule_segmenteditor.html&data=02%7C01%7Classo%40queensu.ca%7Ca08e625765f04a0fac1408d500eb5119%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415933050412732&sdata=Dz2kfKpmJrib0je7bRayRVmqmCTLvmAbnQUL6eu92sU%3D&reserved=0" target="_blank">
http://slicer.readthedocs.io/en/latest/user_guide/module_segmenteditor.html</a>, but if you are stuck at any point then you can ask help at
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdiscourse.slicer.org&data=02%7C01%7Classo%40queensu.ca%7Ca08e625765f04a0fac1408d500eb5119%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415933050412732&sdata=SWrqY0hKYfYPc7UhOP%2FuAjl2WZDM%2F2pgEusdpmNG1Pk%3D&reserved=0" target="_blank">
https://discourse.slicer.org</a> - all questions are answered, typically within a few hours.<br>
<br>
Andras<br>
<br>
-----Original Message-----<br>
From: Community [mailto:<a href="mailto:community-bounces@itk.org" target="_blank">community-bounces@itk.org</a>] On Behalf Of thanos<br>
Sent: Wednesday, September 20, 2017 10:21 AM<br>
To: <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>
Subject: Re: [ITK] [ITK-users] New Submission: ND morphological contour interpolation<br>
<br>
Hello,<br>
<br>
Is there maybe an example for the morphological contour interpolation?<br>
I am working on Matlab for the segmentation of some 3D data and since I am currently segmenting semi-automatically slice by slice, it would be great if I could use this class..<br>
I also have a quite silly question.. I am aware about the "test" folder and data but I don't really understand what is used for... I had a look on the Software Guide on the chapter "How to create a module" but I still don't get it..<br>
<br>
Thank you very much.<br>
<br>
Best regards,<br>
Thanos<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fitk-insight-users.2283740.n2.nabble.com%2F&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=w8KKHVVNr%2BQU7gU2kx9hlrlI4oQKpSRemCZunUiPHiY%3D&reserved=0" target="_blank">
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fitk-insight-users.2283740.n2.nabble.com%2F&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=w8KKHVVNr%2BQU7gU2kx9hlrlI4oQKpSRemCZunUiPHiY%3D&reserved=0</a><br>
_____________________________________<br>
Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=3GRadntJJVw%2BXFixpMl00ZrbMdG89XZ5Ud8E5itiYNs%3D&reserved=0" target="_blank">
https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=3GRadntJJVw%2BXFixpMl00ZrbMdG89XZ5Ud8E5itiYNs%3D&reserved=0</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=VYlnDSe2Fw31wAWDnhgvnVutXCQrlmSTFy81h5JlYqo%3D&reserved=0" target="_blank">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=VYlnDSe2Fw31wAWDnhgvnVutXCQrlmSTFy81h5JlYqo%3D&reserved=0</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fproducts%2Fprotraining.php&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=9MblUPjPUyQGNWN%2BVHwqIcF%2Fn2%2BGoYPzJogE8VV%2FCEc%3D&reserved=0" target="_blank">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fproducts%2Fprotraining.php&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=9MblUPjPUyQGNWN%2BVHwqIcF%2Fn2%2BGoYPzJogE8VV%2FCEc%3D&reserved=0</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2FITK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=%2BGQeoDNmK1PyueIexmz%2F1%2F4%2BWHDgiWYUGGGaePJMMzo%3D&reserved=0" target="_blank">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2FWiki%2FITK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=%2BGQeoDNmK1PyueIexmz%2F1%2F4%2BWHDgiWYUGGGaePJMMzo%3D&reserved=0</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Finsight-users&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=jBHTnHY%2BFgrahTGkQ0SBY363B%2FXsCBpxdS4S9ocZhBI%3D&reserved=0" target="_blank">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Finsight-users&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=jBHTnHY%2BFgrahTGkQ0SBY363B%2FXsCBpxdS4S9ocZhBI%3D&reserved=0</a><br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fcommunity&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=knp5fEl0ec9s8nSlN2pYITU41RJp3T9JKATsOVjjbos%3D&reserved=0" target="_blank">https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fcommunity&data=02%7C01%7Classo%40queensu.ca%7C66ffdacfdc7549999e2e08d50032d77e%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636415140716713211&sdata=knp5fEl0ec9s8nSlN2pYITU41RJp3T9JKATsOVjjbos%3D&reserved=0</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>