Subject: CGAL users discussion list
List archive
- From: Simon Giraudot <>
- To:
- Subject: Re: [cgal-discuss] Fwd: CGAL classification
- Date: Wed, 11 Mar 2020 15:01:58 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:n33eaBwpxoZrn47XCy+O+j09IxM/srCxBDY+r6Qd0usSKPad9pjvdHbS+e9qxAeQG9mCt7Qd0bCd7v2ocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfLx/IA+roQnPqMUajotvJ6YswRbVv3VEfPhbymxvKV+PhRj3+92+/IRk8yReuvIh89BPXKDndKkmTrJWESorPXkt6MLkqRfMQw2P5mABUmoNiRpHHxLF7BDhUZjvtCbxq/dw1zObPc3ySrA0RCii4qJ2QxLmlCsLKzg0+3zRh8dtjqxUvQihqgRizYDKboGbNPlwcK3TctwVR2VOQt1cWDZdDo6mdYYDE+QMMOReooLgp1UOtxy+BQy0Ce3yyz9Ig3j23asn2OogEAHGxhYvH88Tv3TTsNX+KaAfUfu0zKnNyjXDaela2Tj86IjSaB8hvOyDXbVsccfKxkkgCQTFjlCOpoz5JTOU1uoNvHKH4Op8UuKvkW4mpxttrTiow8chk4/EjZ8bxFDD8CV22oc1JdugRUFnbt6rCp9QuzudN4tsTcMuW25otzg9yr0Dp5G7YDIKyZQpxxHFd/OHb4+I4gjjVeqLPTh4g3dldKqwhxaz7UigyvD8WdKu3FlWqSpFl9/BvW0O2RzL8sWLV/lw80S71TuB2Q3f8PxILVw2mKbBNpIszbA9moIOvUjfGiL6glv6gLKKekk+9eWl5P7rb7X+qpOALYN4lhvyPrg0lsCjB+kzLxYDX2yG+eSnyL3s41f5TqhLjvw3jKbUqIzWKMIGraCjGQBVyJws6xOnAjemztsYmX4HIUpYdB6diojpPEzCLfL6APulhlSjijZrx/TfMr3mH5XNMmLPkLD/fbZ98UJczhQ8zcxH65JVDLEOPu7zV1fsuNHaDRI1KQK5zuj9BNlgyo8TW3iDDrKWPa7cqVOI4/ggI+iIZI8bojb9LP0l6ub1jX84nF8deq+p0YEYaHC5BPRpOViZbmfrgtcdCmoKsRQxTOvviFKcTT5TfXazX6wm6T4nFIKmCp3DR4C3jLOd2ye7G4VaZnpaBVCUDXfoa4KEVu8QZyKdOMBhliUIWqWgS486yR6uqRT6y6F8I+rP+iwYsIrj28Jv6+3SkxEy7z10AN6H32GDVWF4hmYIRzgr069huUF90VKD0bRgg/BBEtxT+u9JXh86NZHCy+x6DMj/WhrFftiTSFepXM+mDSwwQ98y2dMOY1xyF8+ljhDd3yqmGbkVmKKXBJAs86Lc2Wb+J9plxnrazqUtk0MqTtdVOWG6nqJ/7RTcB5bVk0WFkKanbbgT3CHX+2eH1GaBoUBYUBVsXqXYRnAffVDbrdX/5kPYTr+hE64rMgVbyZ3KFqwfYdLgiRBKRezoJc/FS2O3gWa5QxiSlZ2Wa4+/QGQY2yOVJ0kemh0f+mrOYRM/AyCn5W3fFjVzGVXzS0zh9uxztGmqQEY/0waQfgtq0L/jqU1dvuCVV/5GhuFMgywmsTghRA/gjeKTMMKJok9aRIsZYd455w0ZhzufsgskYcPmKqljghsZbhgxuF3ukRN6FtcYyJR4nDYR1AN3bJmg/hZZbTrChML/N7rSJ3Xo7R6mYLLRwECY29GTqP9WuaYI7m77tQTsLXIMtnBu0t1byXyZvMyYAwcVVJ/tSFc5/hNmoKvLJCI64tGM2A==
Hello, The requirement of the format for the color information is quite
clearly described as `CGAL::Color`: This means that you should provide a property map that associates each input point with a CGAL::Color object. If you are not comfortable with Property Maps, I suggest you start by reading https://doc.cgal.org/latest/Property_map/index.html If your colors are stored in 3 different arrays, then you should write a property map that constructs a CGAL::Color on-the-fly from the 3 r g b values. Best regards, -- Simon Giraudot, PhD R&D Engineer GeometryFactory - http://geometryfactory.com/ Le 11/03/2020 à 14:02, Zhang Jinwei a
écrit :
Hello Simon,
Sorry for disturbing you again. As described in
the user manual of classification, the color information could
also be possibly input for generating features based on point
colors. Now I have some questions about this issue.
Since it is not clearly described in the
document that the requirement of the format for the color
information as parameters in the ”feature_generator” function,
so may I ask for a more specific description or an example
about it?
Normally, for example, the “r g b“ values are as
unsigned char type in the .ply file. So, the colormap is input
as vector or as “r” “g” “b” separately? Does it read the color
information into colormap by property_map() in CGAL? Is it
different for reading color information from binary or ascii
data file? The colormap has the same size as the point map or
label map, right?
The questions sound perhaps stupid. But...now
actually I am trying to get familiar with CGAL stuffs.
Therefore, I would really appreciate for your kindly
explanation.
Thank you very much!
Regards,
Jinwei Zhang
On Mon 2. Mar 2020 at
17:12, Simon Giraudot <>
wrote:
Hello Zhang, As explained in the manual https://doc.cgal.org/latest/Classification/classCGAL_1_1Classification_1_1ETHZ_1_1Random__forest__classifier.html#a7c0b299cb5829f598f395bcc16df72fa the expected format for the ground truth range that you give to the train() function is, for each input point, the index of its expected label in the Label_set that you used. Judging by the breakpoint you provided, the ground
truth that you pass probably contains indices which
exceed the Label_set number of labels (I'm mostly
guessing as you don't provide any code/data for
context). Points with label value -1 are ignored, but there's no problem in giving a fully labeled dataset to the random forest. Best regards, -- Simon Giraudot, PhD R&D Engineer GeometryFactory - http://geometryfactory.com/ Le 29/02/2020 à 09:03, Zhang Jinwei a écrit :
|
- Re: [cgal-discuss] Fwd: CGAL classification, Simon Giraudot, 03/02/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Dmitry Anisimov, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Dmitry Anisimov, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Dmitry Anisimov, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Dmitry Anisimov, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Dmitry Anisimov, 03/09/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/11/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Simon Giraudot, 03/11/2020
- Re: [cgal-discuss] Fwd: CGAL classification, Zhang Jinwei, 03/09/2020
Archive powered by MHonArc 2.6.18.