Hi Chris,<div><div class="gmail_quote"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
With the -stop option, inclusion regions and bidirectional tracks in<br>
streamtrack, do tracks get accepted if tracks in both directions hit the<br>
inclusion region or are they accepted if only one direction hits the<br>
inclusion region?<br></blockquote><div><br></div><div>Only one direction needs to hit the inclusion ROI for the whole track to be accepted. The -stop option simply ensures the track does not propagate any further as soon as it's included, so you don't need to worry about where else it might go if it were to propagate through the inclusion ROI and out of the other side. </div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Also, is there a way of finding out where the tracks are ultimately<br>
seeded from if using bidirectional tracks?<br></blockquote><div><br></div><div>Unfortunately not... It would be easy to modify the code to output this information into a separate file if required. Basically, you'd need to modify cmd/streamtrack.cpp, and add:</div>
<div><br></div><div>- one line at 276 to store the seed point:</div><div> Point seed (tracker->position());</div><div><br></div><div>- modify line 287 to accept the seed point as an additional argument:</div><div>
append (tck, (!tracker->track_excluded() && tracker->track_included() && tck->size() > min_size), seed);</div><div> </div><div>- modify the append() declaration at line 223 to accept the seed point as an argument:</div>
<div> void append (std::vector<Point>*& tck, bool accept, const Point& seed)</div><div><br></div><div>- get append() to output the positions at line 229 if the track is accepted:</div><div> std::cout << seed[0] << " " << seed[1] << " " << seed[2] << "\n";</div>
<div><br></div><div>This will spit out the seed positions to standard output, so you'd need to redirect the output of streamtrack to a file:</div><div>$ streamtrack blah blah > seeds.txt</div><div><br></div><div>There's ways to make it prettier with options etc, but as a first rough cut that should do it...</div>
<div><br></div><div>Cheers,</div><div><br></div><div>Donald.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Thank you in advance,<br>
<br>
Chris Adamson.<br>
<br>
--<br>
Dr Christopher Adamson, PhD (Melb.), B Software Engineering (Hons.,<br>
Monash)<br>
Research Officer<br>
Developmental Imaging, Critical Care and Neurosciences<br>
<br>
Murdoch Childrens Research Institute<br>
The Royal Children’s Hospital<br>
Flemington Road Parkville Victoria 3052 Australia<br>
T 9345 4306<br>
M XXXX XXX XXX<br>
E <a href="mailto:chris.adamson@mcri.edu.au">chris.adamson@mcri.edu.au</a><br>
<a href="http://www.mcri.edu.au" target="_blank">www.mcri.edu.au</a><br>
<br>
______________________________________________________________________<br>
This email has been scanned by the MessageLabs Email Security System.<br>
For more information please visit <a href="http://www.messagelabs.com/email" target="_blank">http://www.messagelabs.com/email</a><br>
______________________________________________________________________<br>
_______________________________________________<br>
Mrtrix-discussion mailing list<br>
<a href="mailto:Mrtrix-discussion@www.nitrc.org">Mrtrix-discussion@www.nitrc.org</a><br>
<a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">http://www.nitrc.org/mailman/listinfo/mrtrix-discussion</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jacques-Donald Tournier (PhD)<br>Brain Research Institute, Melbourne, Australia<br>Tel: +61 (0)3 9035 7033<br>
</div>