<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div>On the other hand, if you already have something in github, it’s quite trivial to get a tarball for it:</div><div> </div><div> <a href="https://github.com/blowekamp/itkOBBLabelMap/archive/master.tar.gz">https://github.com/blowekamp/itkOBBLabelMap/archive/master.tar.gz</a></div><div> </div><div>Or for a specific commit:</div><div> </div><div><div> <u><font color="#0066cc">https://github.com/blowekamp/itkOBBLabelMap/archive/<div>6e03338d3a5d76782e488222bf343b58a6b852ac.tar.gz</div></font></u></div></div><div> </div><div> </div><div data-signatureblock="true"> </div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face="Calibri, 'Segoe UI', Meiryo, 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'Khmer UI', 'Nirmala UI', Tunga, 'Lao UI', Ebrima, sans-serif" style='line-height: 15pt; letter-spacing: 0.02em; font-family: Calibri, "Segoe UI", Meiryo, "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "Khmer UI", "Nirmala UI", Tunga, "Lao UI", Ebrima, sans-serif; font-size: 11pt;'><b>From:</b> Xiaoxiao Liu<br><b>Sent:</b> Wednesday, April 3, 2013 1:17 PM<br><b>To:</b> Bradley Lowekamp<br><b>Cc:</b> Insight Developers</font></div></div><div> </div><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 3, 2013 at 1:04 PM, Bradley Lowekamp <span dir="ltr"><<a title="mailto:blowekamp@mail.nih.gov" href="mailto:blowekamp@mail.nih.gov" target="_parent">blowekamp@mail.nih.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div style="-ms-word-wrap: break-word;">Xiaoxiao,<div><br></div>
<div>I was looking at the instructions for the source module:</div><div><br></div><div><a title="https://github.com/InsightSoftwareConsortium/InsightJournalTemplate/tree/ModularTemplate/Source" href="https://github.com/InsightSoftwareConsortium/InsightJournalTemplate/tree/ModularTemplate/Source" target="_parent">https://github.com/InsightSoftwareConsortium/InsightJournalTemplate/tree/ModularTemplate/Source</a></div>
<div><br></div><div>It looks like I need to copy my current ITK Module into this IJ Template directory, then copy it back into ITK to build it... Seems like too much coping.</div><div><br></div></div></blockquote><div>
</div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div style="-ms-word-wrap: break-word;"><div> </div><div>Say I have a module I have been using and want to write an IJ article on it:</div>
<div><br></div><div><a title="https://github.com/blowekamp/itkOBBLabelMap" href="https://github.com/blowekamp/itkOBBLabelMap" target="_parent">https://github.com/blowekamp/itkOBBLabelMap</a></div><div><br></div><div>Could I just add a submodule in the Source directory? Do I have to use the "MyIJSubmission" for the name of my module?</div>
<div><br></div></div></blockquote><br><div><span style="font-weight: bold;">>> You don't need to copy your ITK module into the IJ template directory. You should be able to just upload the module folder "</span><b>itkOBBLabelMap"</b><span style="font-weight: bold;"> as it is, no need to use "MyIJSubmission". Take a look at the <a title="http://www.insight-journal.org/browse/publication/869" href="http://www.insight-journal.org/browse/publication/869" target="_parent">LSTK example</a>, look into the zip file, you will see. I will update the instructions to make it clear.</span></div>
<div> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div style="-ms-word-wrap: break-word;"><div> </div><div>
Would something like the following work:</div><div>git clone --origin template git@github.com:InsightSoftwareConsortium/InsightJournalTemplate.git ijOBBLabelMap</div><div>cd ijOBBLabelMap</div><div>git submodule add <a title="https://github.com/blowekamp/itkOBBLabelMap" href="https://github.com/blowekamp/itkOBBLabelMap" target="_parent">https://github.com/blowekamp/itkOBBLabelMap</a> Source/itkOBBLabelMap</div>
<div><br></div></div></blockquote><div><b> >> Why you are using submodule here? Right now, we still require contributors to upload the code tar ball instead of providing a git url. It is an excellent idea though to use a git repo link instead. This will need some extra work on the IJ server end. Let me check how difficult it is and report back.</b></div>
<div><b> </b></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div style="-ms-word-wrap: break-word;"><div> </div><div>Thanks,</div><div>Brad</div><div><br><div><br></div><div><br><div><div><div class="h5"><div>On Apr 3, 2013, at 12:08 PM, Xiaoxiao Liu <<a title="mailto:xiaoxiao.liu@kitware.com" href="mailto:xiaoxiao.liu@kitware.com" target="_parent">xiaoxiao.liu@kitware.com</a>> wrote:</div>
<br></div></div><blockquote style="margin-top: 0px; margin-bottom: 0px;"><div><div class="h5"><div dir="ltr"><div>Hi All, </div><div><br></div><div>Just want to let you know that our favorite open-source journal the <a title="http://www.insight-journal.org/" href="http://www.insight-journal.org/" target="_parent">Insight Journal</a> </div>
<div>now supports <b>ITK module</b> submissions.</div>
<div><br></div><div>The modular code template can be found at:</div><div><a title="http://www.insight-journal.org/help/submission" href="http://www.insight-journal.org/help/submission" target="_parent">http://www.insight-journal.org/help/submission</a></div><div><br></div><div>
Here is an example of the ITK module submission:</div>
<div> <a title="http://www.insight-journal.org/browse/publication/869" href="http://www.insight-journal.org/browse/publication/869" target="_parent">http://www.insight-journal.org/browse/publication/869</a></div><div>with the <a title="http://open.cdash.org/viewTest.php?buildid=2837728" href="http://open.cdash.org/viewTest.php?buildid=2837728" target="_parent">dashboard testing results</a> shown on the review page.</div>
<div><br></div><div>Newly submitted ITK modules will be tested with ITK 4.3.1 for now, and hopefully will soon be tested with latest release version of ITK at the time of submission.<br></div><div><br></div><div>
The main advantages of organizing your code into a ITK module (using the itk module macros in the CMake code) for IJ submission are:</div><div>1) Make it easier to integrate your code into ITK proper later. The modular structure makes you to think about the module dependencies and categorization of your code earlier on.</div>
<div>2) Make it easy to share your cool contribution to the community via the <a title="http://www.itk.org/Wiki/ITK/Policy_and_Procedures_for_Adding_Remote_Modules" href="http://www.itk.org/Wiki/ITK/Policy_and_Procedures_for_Adding_Remote_Modules" target="_parent">ITK Remote Module distribution mechanism</a> : other ITK users/developers can fetch your code remotely by switching on a CMake variable at build time.</div>
<div>3) Testing is easy when utilizing the testing infrastructure (providing image comparisons) in ITK, just follow the example provided in the modular template.</div><div><br></div><div>Please let me know if you see problems or need help when submitting your modular ITK code.</div>
<div>Thanks.</div><div><br></div><div>--Best</div><div>Xiaoxiao</div>---------------------------------------------<br><b>Xiaoxiao Liu</b>, Ph.D.<div><div><font face="arial, sans-serif">R & D Engineer</font></div>
<div><a title="http://www.kitware.com/" href="http://www.kitware.com/" target="_parent">Kitware Inc</a>.</div><div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">Clifton Park, NY</span><div><div>Phone: <a title="tel:%28518%29%20881-4924" href="tel:%28518%29%20881-4924" target="_parent">(518) 881-4924</a> or <span style="color: rgb(136, 136, 136); font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;"><a title="tel:%28518%29%20371-3971%20x124" href="tel:%28518%29%20371-3971%20x124" target="_parent">(518) 371-3971 x124</a></span></div>
<div><font face="Verdana, Arial, Helvetica, sans-serif"><span style="line-height: 31px; font-size: x-small;"><br></span></font></div></div></div></div>
</div></div></div>
_____________________________________<br>Powered by <a title="http://www.kitware.com/" href="http://www.kitware.com" target="_parent">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a title="http://www.kitware.com/opensource/opensource.html" href="http://www.kitware.com/opensource/opensource.html" target="_parent">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Kitware offers ITK Training Courses, for more information visit:<br><a title="http://www.kitware.com/products/protraining.php" href="http://www.kitware.com/products/protraining.php" target="_parent">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br>
<a title="http://www.itk.org/Wiki/ITK_FAQ" href="http://www.itk.org/Wiki/ITK_FAQ" target="_parent">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a title="http://www.itk.org/mailman/listinfo/insight-users" href="http://www.itk.org/mailman/listinfo/insight-users" target="_parent">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div><br></div>---------------------------------------------<br><b>Xiaoxiao Liu</b>, Ph.D.<div><div><div>
<font face="arial, sans-serif"><span style="border-collapse: collapse;">R & D Engineer</span></font></div><div><div><a title="http://www.kitware.com/" href="http://www.kitware.com/" target="_parent">Kitware Inc</a>.</div></div><div><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">Clifton Park, NY</span><div>
<div>Phone: (518) 881-4924 or <span style="color: rgb(136, 136, 136); font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">(518) 371-3971 x124</span></div><div><font face="Verdana, Arial, Helvetica, sans-serif"><span style="line-height: 31px; font-size: x-small;"><br>
</span></font></div></div></div></div></div>
</div></div>
</div></body></html>