<div dir="ltr"><div><div><div><div><div><div><div><div>Matlab is slightly different than C/C++, but there are a few examples down in: packages/kwiver/arrows/matlab/example_*<br><br></div><div>Make sure you are building with VIAME_ENABLE_MATLAB=ON   (We also just pushed a few updates for this today, as the flag was broken with CMake versions less than 3.3, so now it enforces you have at least 3.3)<br><br></div><div>You mostly just need to write a .m file that takes inputs and outputs in the right format, such as in the examples. Then you can make a viame matlab process in a .pipe file that points to this .m file.<br></div><div><br></div><div><br>We'll be covering this a bit more during the workshop next week, but the summary for making a new matlab code plugin would be to:<br><br></div>1) Make a new git branch for your code (in [viame_source]: git checkout -b [branch_name])<br></div>2) Create a name for your plugin [your_plugin_name]<br></div>3) Make directory [viame_source]/plugins/[your_<wbr>plugin_name]<br></div>4) If you have an external repository (git, svn, etc.) where you want to manage your own code, there are a few ways to add it to the build (can send you slides on this in a little bit). If not, add all your code to your [your_plugin_name] directory in VIAME.<br></div>5) Add an enable flag for your plugin like the others in the attached powerpoint<br></div>6) Create a matlab function interface for your detector (a function in the right format see above examples)<br></div>7) Create a pipeline file pipelines/[your_plugin_name].pipe which points to your main .m file<br></div>8) Commit all changes to your git branch<br><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 15, 2016 at 5:21 PM, Alexandra Branzan Albu <span dir="ltr"><<a href="mailto:aalbu@uvic.ca" target="_blank">aalbu@uvic.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Dear Matt
<div>I have built VIAME on my MAC (OS 10 El Capitan), and now I have it as a folder on my desktop, but I have no idea about how to integrate Matlab stuff on it.</div>
<div>I have attached a screenshot with what I have in the VIAME folder.</div>
<div>how do I get my Matlab algorithms to run in VIAME?</div>
<div>Alexandra</div>
<div><br>
</div>
<div>
<div>Alexandra Branzan Albu, PhD, PEng<br>
Associate Professor<br>
Electrical and Computer Engineering<br>
Computer Science (cross-listed)<br>
University of Victoria, BC, Canada<br>
<a href="http://www.ece.uvic.ca/~aalbu" target="_blank">www.ece.uvic.ca/~aalbu</a><br>
<a href="mailto:aalbu@uvic.ca" target="_blank">aalbu@uvic.ca</a> </div>
<br>
<div>
<blockquote type="cite"><div><div class="h5">
<div>On 15 Sep 2016, at 13:57, Matt Dawkins <<a href="mailto:matt.dawkins@kitware.com" target="_blank">matt.dawkins@kitware.com</a>> wrote:</div>
<br>
</div></div><div><div><div class="h5">
<div dir="ltr">
<div>
<div>If anyone hasn't built VIAME yet, now's a decent time to try doing it before the hackathon. I've created a second git release tag from today's source (2016-09-15-Pre-Hackathon-Rele<wbr>ase) that's relatively stable and has a few new features
 compared to the first. To update it, in [viame_source] run:<br>
<br>
</div>
<div>git fetch -p<br>
</div>
<div>git checkout 2016-09-15-Pre-Hackathon-Relea<wbr>se<br>
</div>
<div>git submodule update --init --recursive<br>
</div>
<div><br>
</div>
<div>Then rebuild.<br>
</div>
<div><br>
Here's some quick notes on any issues w.r.t. different build systems and what VIAME features they support to the extent of my knowledge:<br>
<b><br>
</b></div>
<div><b>Linux:</b><br>
<br>
</div>
<div>Ubuntu 14.04+/Fedora 19+/CentOS/RHEL 6+ : GCC/G++ - Full support, can encounter some simple build issues highlighted on the build instructions "known issues" page (<a href="https://github.com/Kitware/VIAME/blob/master/doc/install_guide.rst" target="_blank">https://github.com/Kitware/VI<wbr>AME/blob/master/doc/install_gu<wbr>ide.rst</a>),
 but once you get past any of them you should be set. If using ENABLE_PYTHON, using python 2.7 is best, possible(?) issues with 3.3. When ENABLE_DOC and ENABLE_PYTHON turned on build sometimes fails, but running make again causes it to succeed.<br>
</div>
<div><br>
<div><b>Mac</b>:<br>
</div>
<div><br>
</div>
OSX (Apple) 10.11 : Clang - Full support - runtime issues with 1 of the included GUIs, will fix soon. Also, setup_viame.sh has been fixed to work on mac not just linux.<br>
<br>
OSX (Apple) 10.10 : Clang - 90% support - possible issue with a couple enable flags (CAFFE, VXL?) deps on compiler version and hopefully not hard to fix in person.<br>
<br>
</div>
<div><b>Windows:</b><br>
<br>
</div>
<div>Windows 7/8/10 : Visual Studio 2013 64-bit - 90% support but requires external caffe build for caffe users. Fixed some issues with DLLs being put in wrong locations requiring manual moves to the install tree. Issues with ENABLE_KWANT and possibly
 ENABLE_PYTHON flags remain. Could also use a windows .bat equivalent of the setup_viame.sh script for certain EXEs.<br>
<br>
</div>
<div>Windows 7/8/10 : Visual Studio 2015 64-bit - Now builds, but still offers only basic support for a few features, recommend using 2013 still (you can still get the community edition of '13 for free and I have both '15, '13, and '10 on my laptop
 side by side). Several ENABLE_* flags still not building on first go, requiring local hacks for them.<br>
</div>
<div><br>
Thanks<br>
</div>
<div>-MD<br clear="all">
</div>
<div>
<div><br>
-- <br>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>Matthew Dawkins<br>
<a href="tel:1-518-881-4416" value="+15188814416" target="_blank">1-518-881-4416</a><br>
Senior R&D Engineer<br>
Kitware, Inc<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
______________________________<wbr>_________________<br>
Viame mailing list<br>
<a href="mailto:Viame@public.kitware.com" target="_blank">Viame@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/viame" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/viame</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>

</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Matthew Dawkins<br>1-518-881-4416<br>Senior R&D Engineer<br>Kitware, Inc<br></div></div></div></div></div>
</div>