Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Fwd: CGAL classification

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Fwd: CGAL classification


Chronological Thread 
  • From: Zhang Jinwei <>
  • To:
  • Subject: Re: [cgal-discuss] Fwd: CGAL classification
  • Date: Fri, 21 Feb 2020 12:56:32 +0800
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:zWT4+BPPhGSWFBI+5gol6mtUPXoX/o7sNwtQ0KIMzox0LfX/rarrMEGX3/hxlliBBdydt6sYzbqN+P++EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba59IRmsrgjcuMYajIljJ60s1hbHv3xEdvhZym9vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhNwzY7bYoGbOvR9cK3AY90VWXFMUdxNWyFbGI6wc5cDAugHMO1Fr4f9vVwOrR6mCAavBOPg0DlIhnDr1qM+0uQhFw/H0xIhH9kTt3nUrs/6NLwVUeCz1qXIzzvCbvJW2Tjn7ojIfQssof6JXb1qcMrRzVMjGB/CjlWVsIHoOS6e2OoKs2ie9eVgVOSvhnYoqw5vpTivw9kjipXThoMVxFDL7zl2wJoyJd2iSE93e8KrEJxVtyycKoB4QdsiTnl2tComzrAKo522cSgQxJg6xhPSauaLfoiU7h/lSe2fOy13hGh/d7K6nxuy8Vavyun7VsSs1VZFtCtFkt3VunAM0Bzf99GLSvV980u9wzqP2AfT6uZLIUAwi6XXMYIuwrk1lpYLsETDGDH5mFnugaOIakkp/vKk5ufnb7n8u5ORNo55hhv+P6gygsC/BP43MgkKX2iV4+S807jj8FX7QLpQlf02la/ZvIrYJcUVp6+5AxVa0oAs6xukADem1c4XnXgDLF5fZB2HiI3pN0nUIP/kFfe/n0iskDBzyv/aMb3uGJHNImHen7fgZrZy91NcyBEozd1E/JJVCrQBIOrpVUPrtdzYCAU5Mw2uzOr9BtV9zNBWZWXaCaCQNObesESD+/k0C+iKfo4c/jjneNY/4Pu7v38wn1BVX6ivwpYWICS6F+9hJQObfmjsi9EOOWgPtws6CuftjQvRAnZoe3+uUvdktXkAA4W8ANKbH93/sPm6xC6+W6ZuSCVGB1SLSyq6coyFX7INb3vXLJI51DMDUrelRskq0hT87FammYoiFfLd/2gjjbymzMJ8vrSBmhQ79DgyBMOYgTnUHjNE21gQTjpz55hR5El0y1ONy6992qUKGtla5vcPWQA/Z8fR

Dear Mr. Giraudot,

I used the version of 5.01. Now the situation is that when I use the example file cluster_config.gz or mesh_config.gz, everything is ok. 

For output configuration file I use:
std::ofstream fconfig(“classifier_config.gz”);
classifier.save_configuration(fconfig);
fconfig.close();

For loading configuration I write:
std::ifstream input;
input.open(filename_config, std::ios::in | std::ios::binary);
classifier.load_configuration(input);

However, when I tried to produce and load my own configuration file by using save_ and load_configuration function, then I encountered  an exception errors which jumps to the boost serialization library file. I compared the file I produced with the file in your example, and I found your configuration file is ascii format while mine is binary format. So how did you generate the configuration file of the trained classifier?

Sorry that I cannot attach a snapshot picture of errors because I use different devices.

Another question: as shown in the examples, the cluster and mesh can also be classified by the package. But there is no example to show how to export them? In which format? And how to export the results of cluster and mesh with the colors and labels?

If you could give me help and suggestions, I would really appreciate it!

Thank you very much! Looking forward to your reply!

Best regards,
Jinwei



Hello,

Sorry you encountered trouble with CGAL Classification.

What version of CGAL are you using? Also, can you share a source code + the full error messages?

Best regards,


-- 
Simon Giraudot, PhD
R&D Engineer
GeometryFactory - http://geometryfactory.com/
Le 18/02/2020 à 19:12, Zhang Jinwei a écrit :
Dear Ms./Mr.,

Thank you for providing us this CGAL open source library. I am a research engineer working in the field of urban reconstruction.

I faced a problem, when I used the package Classification for point cloud and mesh classification. I want to train the classifier, and then classify the point cloud data by the trained classifier. 

So, firstly I used the example training dataset training_b9.ply, for training step by using ETHZ random forest, and save the configuration by function save_configuration as .gz file. And secondly, I load the produced configuration from last step using load_configuration, and classify the data by this trained classifier. 

However,  when I saved and loaded the configuration of classifier, it came out an unhandeled exception: boost::archive::archive_exception. I just used the example data file training_b9.ply for the whole procedure. 

So could you explain me what the reason is? And could you please help me and give me suggestions on how to solve it? What do I need to notice when I doing training and classification using configuration file? It would be better if you could provide me more examples in detail. 

Thank you very much for your support! Looking forward to your kindly reply!

Best regards,
Jinwei Zhang







Archive powered by MHonArc 2.6.18.

Top of Page