<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">In this case the problem is likely related to the “min_track_length” parameter in the config file. The bundle adjust tool currently filters tracks shorter than “min_track_length” before running bundle adjustment. It looks like you don’t have any tracks longer than the current value of “min_track_length”. You could set this parameter to as low 2 to use all the relevant tracks. Setting it to 3 might be a little more robust. The problem with these small values is that you will generally be using a lot more data than you really need to optimize the cameras. It’s better to use a more minimal set of good long tracks first, and then go back and triangulate additional features later if desired.<div class=""><br class=""></div><div class="">The proper setting for the “min_track_length" parameter is very dependent on your data. If you have a slow moving camera and/or high frame rate you may end of with very long tracks and want this value to be high. If your scene changes more rapidly from frame to frame you need this value to be shorter. We are working on making this smarter so that it adapts to the data. For now, you’ll have to play with the parameter to find a value that suits your problem.</div><div class=""><br class=""></div><div class="">The fact that the executable seg faults when it gets 0 tracks should be considered a bug. It should handle this case more gracefully and exit cleanly. Could you report an issue on this on Github?</div><div class=""><br class=""></div><div class=""><a href="https://github.com/Kitware/maptk/issues" class="">https://github.com/Kitware/maptk/issues</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Matt</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 3, 2015, at 7:37 AM, Stedraw <<a href="mailto:527063960@qq.com" class="">527063960@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello! I returned with another problem... ( T ^ T )</div><div class=""><br class=""></div><div class="">After using maptk_track_features, I got a feature tracks file.</div><div class="">And then I want to use maptk_bundle_adjust_tracks to take feature tracks and produces cameras and 3D points (PLY file).</div><div class="">But now I met a problem :</div><div class=""><br class=""></div><div class=""><div class=""><font color="#000080" class="">stedraw@stedraw-PC:~/maptk/maptk/bin$ ./maptk_bundle_adjust_tracks -c adjust.conf</font></div><div class=""><font color="#000080" class="">File parsed! Contained 38 k/v entries.</font></div><div class=""><font color="#000080" class="">loading track file: ./output_tracks.txt</font></div><div class=""><font color="#000080" class="">loaded 36447 tracks</font></div><div class=""><font color="#000080" class="">filtered down to 0 long tracks</font></div><div class=""><font color="#000080" class="">track filtering: 0.010000 sec CPU, 0.009851 sec wall</font></div><div class=""><font color="#000080" class="">Initializing cameras and landmarks: 0.000000 sec CPU, 0.000008 sec wall</font></div><div class=""><font color="#000080" class="">Segmentation fault (core dumped)</font></div></div><div class=""><br class=""></div><div class="">Features_track produced a big file, as "<span style="color: rgb(0, 0, 128); line-height: 1.5;" class="">loaded 36447 tracks</span><span style="line-height: 1.5;" class="">", however, it "</span><span style="color: rgb(0, 0, 128); line-height: 1.5;" class="">filtered down to 0 long tracks</span><span style="line-height: 1.5;" class="">", and cause "</span><span style="color: rgb(0, 0, 128); line-height: 1.5;" class="">Segmentation fault".</span></div><div class="">How could I solve this fault to get a PLY-file ?</div><div class=""><br class=""></div><div class="">Thank you for helping! </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;" class="">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;" class=""><div class=""><b class="">发件人:</b> "cz";<<a href="mailto:527063960@qq.com" class="">527063960@qq.com</a>>;</div><div class=""><b class="">发送时间:</b> 2015年7月3日(星期五) 下午4:20</div><div class=""><b class="">收件人:</b> "kwiver-users"<<a href="mailto:kwiver-users@public.kitware.com" class="">kwiver-users@public.kitware.com</a>>; <wbr class=""></div><div class=""></div><div class=""><b class="">主题:</b> Re: [Kwiver-users] problems about maptk</div></div><div class=""><br class=""></div><div class="">Oh my god....</div><div class="">I'm so sorry that i missed a blank line at the last of the <span style="color: rgb(0, 0, 128); font-family: 'Arial Narrow'; font-size: 12px; line-height: 18px;" class="">input_image_list.txt</span><span style="line-height: 1.5;" class="">! </span><span style="line-height: 1.5;" class="">! </span><span style="line-height: 1.5;" class="">! </span></div><div class=""><div class="">Now I could run <span style="color: rgb(0, 0, 128); line-height: 1.5;" class="">maptk_track_features</span></div><div class="">Thank you so much! </div><div class=""><br class=""></div><div class=""><br class=""></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;" class="">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;" class=""><div class=""><b class="">发件人:</b> "cz";<<a href="mailto:527063960@qq.com" class="">527063960@qq.com</a>>;</div><div class=""><b class="">发送时间:</b> 2015年7月3日(星期五) 下午3:52</div><div class=""><b class="">收件人:</b> "kwiver-users"<<a href="mailto:kwiver-users@public.kitware.com" class="">kwiver-users@public.kitware.com</a>>; <wbr class=""></div><div class=""></div><div class=""><b class="">主题:</b> Re: [Kwiver-users] problems about maptk</div></div><div class=""><br class=""></div><div style="font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><font size="2" class="">Sorry, I have little experience about mailing list using.....Even this email , I'm not sure if I sent to the right place......</font><span style="color: rgb(51, 51, 51); font-family: arial; font-size: 13px; line-height: 20.0200004577637px;" class="">^_^|||</span></div><div style="font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><br class=""></div><div style="font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><span style="line-height: 1.5; font-size: small;" class=""><b class="">About VXL</b></span></div><div style="font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><span style="font-size: small; line-height: 19.5px;" class="">this is the download-link in the main page of the VXL, </span></div><table style="font-family: 'Times New Roman';" class=""><tbody class=""><tr class=""><td class=""><ul class=""><li class=""><a href="http://sourceforge.net/projects/vxl/" class="">Download VXL-1.17</a></li></ul></td><td class=""><ul class=""></ul></td></tr></tbody></table><div style="font-family: 'Arial Narrow'; padding: 2px 0px;" class="">but the version of VXL there which is available to me is 1.14</div><div style="font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><span id="cid:E70530EC@672A4F5F.F7739655"><E70530EC@672A4F5F.F7739655></span></div><div style="font-family: 'Arial Narrow'; padding: 2px 0px; font-size: 12px;" class="">So I went to github and git clone it. I take it as version 1.18 because of its <a href="https://github.com/vxl/vxl/blob/master/CHANGES.txt" class="">CHANGES.txt</a> .</div><div style="font-family: 'Arial Narrow'; padding: 2px 0px; font-size: 12px;" class=""><br class=""></div><div style="font-family: 'Arial Narrow'; padding: 2px 0px; font-size: 12px;" class=""><b class="">About ctest</b></div><div style="font-family: 'Arial Narrow'; padding: 2px 0px; font-size: 12px;" class="">I followed your advice to have enabled test in CMake, and had a OK result:</div><div style="font-family: 'Arial Narrow'; padding: 2px 0px; font-size: 12px;" class=""><font color="#000080" class="">...</font></div><div style="padding: 2px 0px;" class=""><div style="padding: 2px 0px;" class=""><font face="Arial Narrow" color="#000080" class=""><span style="font-size: 12px; line-height: 18px;" class="">100% tests passed, 0 tests failed out of 162</span></font></div><div style="padding: 2px 0px;" class=""><font face="Arial Narrow" color="#000080" class=""><span style="font-size: 12px; line-height: 18px;" class="">Total Test time (real) = 10.49 sec</span></font></div><div style="font-family: 'Arial Narrow'; font-size: 12px;" class=""><br class=""></div><div style="font-family: 'Arial Narrow'; font-size: 12px;" class=""><b class="">About imagelist</b></div></div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class="">These are from my<font color="#000080" class=""> track_feature.conf:</font></div><div style="padding: 2px 0px;" class=""><div style="padding: 2px 0px;" class=""><font face="Arial Narrow" color="#000080" class=""><span style="font-size: 12px; line-height: 18px;" class=""># Path to an input file containing new-line separated paths to sequential image</span></font></div><div style="padding: 2px 0px;" class=""><font face="Arial Narrow" color="#000080" class=""><span style="font-size: 12px; line-height: 18px;" class=""># files.</span></font></div><div style="padding: 2px 0px;" class=""><font face="Arial Narrow" color="#000080" class=""><span style="font-size: 12px; line-height: 18px;" class="">image_list_file = /home/stedraw/maptk/maptk/bin/input_image_list.txt</span></font></div><div style="padding: 2px 0px;" class=""><font face="Arial Narrow" color="#000080" class=""><span style="font-size: 12px; line-height: 18px;" class=""><br class=""></span></font></div><div style="font-family: 'Arial Narrow'; font-size: 12px;" class="">And these are from my <span style="color: rgb(0, 0, 128);" class="">input_image_list.txt:</span></div></div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><div style="padding: 2px 0px;" class=""><font color="#000080" class="">/home/stedraw/IMG/2015-07-02_04-13-10-89BB.bmp</font></div><div style="padding: 2px 0px;" class=""><font color="#000080" class="">/home/stedraw/IMG/2015-07-02_04-12-39-130BB.bmp</font></div><div style="padding: 2px 0px;" class=""><font color="#000080" class="">/home/stedraw/IMG/2015-07-02_04-13-05-690BB.bmp</font></div><div style="padding: 2px 0px;" class=""><font color="#000080" class="">/home/stedraw/IMG/2015-07-02_04-12-55-668BB.bmp</font></div><div style="padding: 2px 0px;" class=""><font color="#000080" class="">/home/stedraw/IMG/2015-07-02_04-12-56-481BB.bmp</font></div><div style="padding: 2px 0px;" class=""><font color="#000080" class="">...</font></div><div style="padding: 2px 0px;" class=""></div></div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class="">And in the <span style="color: rgb(0, 0, 128);" class="">input_image_list.txt, </span><span style="line-height: 1.5;" class="">I'm sure that there is no blank line.</span></div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><br class=""></div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class="">By the way, my OS is Ubuntu 14.04.</div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><br class=""></div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class="">Thanks!</div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><br class=""></div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><br class=""></div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class=""><br class=""></div><div style="font-size: 12px; font-family: 'Arial Narrow'; padding: 2px 0px;" class="">------------------ Original ------------------</div><div style="font-size: 12px; padding: 8px; background: rgb(239, 239, 239);" class=""><div class=""><b class="">From: </b> "matt.leotta";<<a href="mailto:matt.leotta@kitware.com" class="">matt.leotta@kitware.com</a>>;</div><div class=""><b class="">Date: </b> Thu, Jul 2, 2015 09:38 PM</div><div class=""><b class="">To: </b> "Stedraw"<<a href="mailto:527063960@qq.com" class="">527063960@qq.com</a>>;<wbr class=""></div><div class=""><b class="">Cc: </b> "kwiver-users"<<a href="mailto:kwiver-users@public.kitware.com" class="">kwiver-users@public.kitware.com</a>>;<wbr class=""></div><div class=""><b class="">Subject: </b> Re: problems about maptk</div></div><div style="line-height: 21px;" class=""><br class=""></div>Thanks for your interest in MAP-Tk. In the future, please join the kwiver-users mailing list (MAP-Tk is a component of KWIVER) and post questions there. This will allow more than just myself to respond, it will also archive the responses so that others who have similar questions can benefit. The mailing list sign-up page is here:<div class="" style="line-height: 21px;"><br class=""></div><div class="" style="line-height: 21px;"><a href="http://public.kitware.com/mailman/listinfo/kwiver-users" class="">http://public.kitware.com/mailman/listinfo/kwiver-users</a></div><div class="" style="line-height: 21px;"><br class=""></div><div class="" style="line-height: 21px;">It is linked from both <a href="http://www.kwiver.org/" class="">www.kwiver.org</a> and the README.md in MAP-Tk.</div><div class="" style="line-height: 21px;"><br class=""></div><div class="" style="line-height: 21px;"><br class=""></div><div class="" style="line-height: 21px;">In response to your message: First, your dependency versions look okay, though we haven’t tested that exact combination. You may want to enable tests in CMake and then run “ctest” in your build tree to verify that the tests pass. There are some known issues with the last official release of VXL (1.17), but the master branch should work. You said VXL 1.18, I’m not sure that that exists.</div><div class="" style="line-height: 21px;"><br class=""></div><div class="" style="line-height: 21px;">The correct way to call maptk_track_features (or any MAP-Tk tool) is with the “-c” to specify the config file. In your last example without the “-c" the config check failures are because the tool is not reading the config file and just using the default config values.</div><div class="" style="line-height: 21px;"><br class=""></div><div class="" style="line-height: 21px;">In the case where you are correctly using “-c”, the exception you are getting indicates “Path does not exist”. This is most likely related to loading image files. Your config file should have “image_list_file” set to a path to a text file in which each line in the file is a path to one image to load (i.e. each frame of video). What is the contents of your image list file? Is it empty or does it have a blank line?</div><div class="" style="line-height: 21px;"><br class=""></div><div class="" style="line-height: 21px;">—Matt</div><div class="" style="line-height: 21px;"><br class=""></div><div class="" style="line-height: 21px;"><br class=""></div><div class="" style="line-height: 21px;"><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jul 1, 2015, at 11:30 PM, Stedraw <<a href="mailto:527063960@qq.com" class="">527063960@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello, thank you for reading (^_^)</div><div class="">I have installed :</div><div class="">Boost 1.58 ,</div><div class="">Eigen 3.25 ,</div><div class="">opencv 2.4.11 (the latest version 3.0 can't work with maptk, because it doesn't have Algorithm::_create() ), </div><div class="">proj 4.91 , </div><div class="">VXL 1.18 .</div><div class="">Then I built maptk sucessfully.</div><div class=""><br class=""></div><div class="">But when I ran <span class="" style="color: rgb(0, 0, 128);">maptk_track_features </span>, I can't get the output</div><div class=""><br class=""></div><div class=""><div class=""><font color="#000080" class="">stedraw@stedraw-PC:~/maptk/maptk/bin$ ./maptk_track_features -c track_feature.conf -o track_feature.conf</font></div><div class=""><font color="#000080" class="">File parsed! Contained 102 k/v entries.</font></div><div class=""><font color="#000080" class="">OpenCV Error: Bad argument (Unknown matcher name) in create, file /home/stedraw/opencv-2.4.11/modules/features2d/src/matchers.cpp, line 497</font></div><div class=""><font color="#000080" class="">[---] Ignore the above error message, it will be handled. OpenCV is silly.</font></div><div class=""><font color="#000080" class="">OpenCV Error: Bad argument (Unknown matcher name) in create, file /home/stedraw/opencv-2.4.11/modules/features2d/src/matchers.cpp, line 497</font></div><div class=""><font color="#000080" class="">[---] Ignore the above error message, it will be handled. OpenCV is silly.</font></div><div class=""><font color="#000080" class="">INFO: Configuration file contained valid parameters and may be used for running</font></div></div><div class=""><font color="#000080" class=""><br class=""></font></div><div class="">It seems like I can run then. But:</div><div class=""><div class=""><font color="#000080" class="">stedraw@stedraw-PC:~/maptk/maptk/bin$ ./maptk_track_features -c track_feature.conf</font></div><div class=""><font color="#000080" class="">File parsed! Contained 102 k/v entries.</font></div><div class=""><font color="#000080" class="">OpenCV Error: Bad argument (Unknown matcher name) in create, file /home/stedraw/opencv-2.4.11/modules/features2d/src/matchers.cpp, line 497</font></div><div class=""><font color="#000080" class="">[---] Ignore the above error message, it will be handled. OpenCV is silly.</font></div><div class=""><font color="#000080" class="">OpenCV Error: Bad argument (Unknown matcher name) in create, file /home/stedraw/opencv-2.4.11/modules/features2d/src/matchers.cpp, line 497</font></div><div class=""><font color="#000080" class="">[---] Ignore the above error message, it will be handled. OpenCV is silly.</font></div><div class=""><font color="#000080" class="">Exception caught: Path does not exist: ""</font></div></div><div class=""><br class=""></div><div class="">And I also tried :</div><div class=""><div class=""><font color="#000080" class="">stedraw@stedraw-PC:~/maptk/maptk/bin$ ./maptk_track_features track_feature.conf</font></div><div class=""><font color="#000080" class="">Config Check Fail: Config needs value image_list_file</font></div><div class=""><font color="#000080" class="">Config Check Fail: Config needs value output_tracks_file</font></div><div class=""><font color="#000080" class="">Configuration Failure: invalid option</font></div><div class=""><font color="#000080" class=""> feature_tracker:type =</font></div><div class=""><font color="#000080" class=""> valid options are</font></div><div class=""><font color="#000080" class=""> core</font></div><div class=""><font color="#000080" class="">Config Check Fail: feature_tracker configuration check failed</font></div><div class=""><font color="#000080" class="">Configuration Failure: invalid option</font></div><div class=""><font color="#000080" class=""> image_reader:type =</font></div><div class=""><font color="#000080" class=""> valid options are</font></div><div class=""><font color="#000080" class=""> ocv</font></div><div class=""><font color="#000080" class=""> vxl</font></div><div class=""><font color="#000080" class="">Config Check Fail: image_reader configuration check failed</font></div><div class=""><font color="#000080" class="">Configuration Failure: invalid option</font></div><div class=""><font color="#000080" class=""> convert_image:type =</font></div><div class=""><font color="#000080" class=""> valid options are</font></div><div class=""><font color="#000080" class=""> bypass</font></div><div class=""><font color="#000080" class="">Config Check Fail: convert_image configuration check failed</font></div><div class=""><font color="#000080" class="">ERROR: Configuration not valid.</font></div></div><div class=""><br class=""></div><div class="">I swear that these three options have been set with the valid value !...</div><div class="">So now I don't know how to kill this error, and I really want to try this maptk for "<span class="" style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; font-size: 16px; line-height: 25.6000003814697px;">efficiently processing aerial video"...</span></div><div class="">Thank you very much !</div></div></blockquote></div></div></div></div></div></blockquote></div><br class=""></div></body></html>