Hello,
How do you specify a scale underneath 1 in the parameter file ?
I have tried :
feature_PLANA_SC.5_PC1 and feature_PLANA_SC0.5_PC1
After computing features and when loading the sbf, I get the following error : KeyError: 'SPHER_PC1@0.5'
This is my parameters_feature_sources.txt looks like :
#Features_SF
0:SPHER_PC1@0.5
0:PLANA_PC1@0.5
0:LINEA_PC1@0.5
0:PCA1_PC1@0.5
0:PCA2_PC1@0.5
0:ROUGH_PC1@0.5
0:PCA2_PC1@0.8
0:PCA1_PC1@0.8
0:LINEA_PC1@0.8
0:PLANA_PC1@0.8
0:SPHER_PC1@1.15
0:PLANA_PC1@1.15
0:PCA2_PC1@1.15
0:ROUGH_PC1@1.15
0:ANISO_PC1@1.15
0:SPHER_PC1@2
0:ZRANGE_PC1@2
0:LINEA_PC1@2
0:PLANA_PC1@2
0:ZRANGE_PC1@5
0:LINEA_PC1@5
0:PLANA_PC1@5
Thanks !
Scale 0.x in the parameters
-
- Posts: 40
- Joined: Tue Dec 01, 2020 1:21 pm
Re: Scale 0.x in the parameters
1) What are you doing exactly? Give details about your workflow.
2) Did you open your SBF file with a text editor to see the names of the scalar fields of your point cloud? If '0:SPHER_PC1@0.5' is in your _feature_sources.txt, you should see it in your SBF file.
I did a simple test a few minutes ago. Calling 3DMASC in Python with the following parameters.txt file:
cloud: PC1
cloud: CORE
core_points: CORE
feature: PLANA_SC0.5_PC1
generates the following parameters_source_features.txt file automatically:
#Features_SF
0:PLANA_PC1@0.5
And the SBF file is the following:
[SBF]
Points=6321
GlobalShift=-806962.591797, -6368192.593750, 0.000000
SFCount=1
SF1=PLANA_PC1@0.5
The SBF is loaded correctly by the Python function classification.cc_3dmasc.load_sbf_features (I suppose this is what your a trying to do) of the lidar_platform library. The KeyError can come from a discrepancy between your '_source_features.txt' and the SBF file, you should double check that.
2) Did you open your SBF file with a text editor to see the names of the scalar fields of your point cloud? If '0:SPHER_PC1@0.5' is in your _feature_sources.txt, you should see it in your SBF file.
I did a simple test a few minutes ago. Calling 3DMASC in Python with the following parameters.txt file:
cloud: PC1
cloud: CORE
core_points: CORE
feature: PLANA_SC0.5_PC1
generates the following parameters_source_features.txt file automatically:
#Features_SF
0:PLANA_PC1@0.5
And the SBF file is the following:
[SBF]
Points=6321
GlobalShift=-806962.591797, -6368192.593750, 0.000000
SFCount=1
SF1=PLANA_PC1@0.5
The SBF is loaded correctly by the Python function classification.cc_3dmasc.load_sbf_features (I suppose this is what your a trying to do) of the lidar_platform library. The KeyError can come from a discrepancy between your '_source_features.txt' and the SBF file, you should double check that.
Re: Scale 0.x in the parameters
Hello,
Thanks for your help !
Indeed I wasn't loading the correct sbf file !
It's all working now, thanks
Thanks for your help !
Indeed I wasn't loading the correct sbf file !
It's all working now, thanks