Forum

Author Topic: calculating normals  (Read 10826 times)

im_thelumberjack

  • Newbie
  • *
  • Posts: 1
    • View Profile
calculating normals
« on: January 20, 2018, 08:25:34 AM »
I am working a lot with lidar dense point clouds at the moment, and currently using photoscan for the mesh generation stage.  My current workflow is to import the cloud data into cloud compare, do the cloud clean up and point normals and export out to photoscan.  I am currently hitting a snag though while importing the point clouds into photoscan.  The points will import quickly, but photoscan will then have to calculate point normals which can take a very long time, and typically limit how many points I can acceptably import.  Also I find that the normals often have multiple areas that are inverted which can be a pain.  For file types I have been trying laz,ply,pts, and e57, but they all go through the same import process.

Basically I want to know if there is a way that I can import the dense point cloud with out having to go through the calculate point normal phase, or if there is something I can do that will speed it up.

Thank you!

benj_G

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: calculating normals
« Reply #1 on: February 07, 2018, 06:35:47 PM »
if you have find any tips i'm interessed !!!!!
thanks

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: calculating normals
« Reply #2 on: February 07, 2018, 06:46:17 PM »
How many points there are typically in the point clouds that you are importing to PhotoScan?
Best regards,
Alexey Pasumansky,
Agisoft LLC

benj_G

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: calculating normals
« Reply #3 on: February 12, 2018, 10:35:51 PM »
For me, 300 million points for the biggest job site, on average 100 million points for the other. and it's a key points cloud
« Last Edit: February 13, 2018, 09:18:16 AM by benj_G »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: calculating normals
« Reply #4 on: February 14, 2018, 09:44:51 PM »
Hello benj_G,

We'll try to reproduce the issue on a similar size point clouds. Which import format you are using?
Best regards,
Alexey Pasumansky,
Agisoft LLC

benj_G

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: calculating normals
« Reply #5 on: February 14, 2018, 11:41:29 PM »
thanks for your interest and your reply ! I work with LAS but if you have any other most fast format I doesn't matter!
thanks

SAV

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
Re: calculating normals
« Reply #6 on: February 16, 2018, 07:14:41 AM »
Hi benj_G,

As far as I know las and laz formats DO NOT store any point normal information, hence PhotoScan has to recompute them.

Save your points as a ASCII cloud in CloudCompare in *.pts format. Also make sure that you tick/enable columns title & number of points (separate line) in the export options. Set order to [PTS].
The pts files will be much larger (about 3-4 times), but PhotoScan should not need to compute all normals again.

All the best.

Regards,
SAV
« Last Edit: February 16, 2018, 07:16:46 AM by SAV »

benj_G

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: calculating normals
« Reply #7 on: February 19, 2018, 10:23:56 AM »
thanks for your reply !! I try your methode but I have some errors:

1- you need to calculate de normals in cloudcompare and it's slow too !
2- and when I export like you (in PTS) PhotoScan didn't import anything and exit with an error.

thanks again
« Last Edit: February 19, 2018, 01:04:18 PM by benj_G »

SAV

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
Re: calculating normals
« Reply #8 on: February 20, 2018, 01:32:16 AM »
Hi benj_G,

Sorry, my fault. I double checked, and you are right.
PhotoScan did not calculate any normals because the file wasn't correctly imported. The dense point cloud symbol showed up in the workspace pane, but normally it also shows the number of points, which was missing in my case.
It looks like you need to export from CloudCompare using SPACE as separator in order to be able to open/read *.pts files in PhotoScan. But it will automatically compute normals again. I haven't found a way to get around it, same as you. Which means you probably don't need to compute normals in CloudCompare if  PhotoScan is doing it again during import.

Would be nice if PhotoScan accepted point clouds without normals. #featurerequest

Benj_G, why do you want to import the point cloud into PhotoScan after cleaning it up with third party software packages? Maybe there is a different/easier workflow which would help you to achieve what you want. #thereisalwaysadifferentwaytodothings  ;)

Regards,
SAV

benj_G

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: calculating normals
« Reply #9 on: February 20, 2018, 06:32:41 PM »
hi,
yes pleaaase and this request  :P :P :P

I work with classify lidar points and a lot of images (average 2500 tif's of phaseone) so I have already a dense cloud and I want to skip de generation of it.

SAV

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
Re: calculating normals
« Reply #10 on: February 21, 2018, 12:59:23 AM »
Hi benj_G,

Have you tried CloudCompare to classify your lidar point clouds? CloudCompare is free & open-source and has two main algorithms/tools to automatically classify point clouds (detecting ground):
1. CSF: http://www.cloudcompare.org/doc/wiki/index.php?title=CSF_(plugin)
2. CANUPO: http://www.cloudcompare.org/doc/wiki/index.php?title=CANUPO_(plugin)

Alternatively, you can also classify based on properties of each lidar point itself (e.g., number of returns, scan angle rank, intensity, etc) or you can compute scalar field values for each point such as density, curvature etc. and classify and crop your cloud based on these.

All the best.

Regards,
SAV

benj_G

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: calculating normals
« Reply #11 on: February 21, 2018, 01:38:54 AM »
Hi,
Yes I try Cloudcompare but I prefer lastools ! I have some scripts and it's fully parallelized ! It's not free but it's really rocks

benj_G

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: calculating normals
« Reply #12 on: February 26, 2018, 03:38:01 PM »
Hi all,
So i try to avoid import of points cloud and this generation of normal by importing DEM.
So I import DEM created by Global Mapper but Photscan import nothing. I have an error "can't parse geo key directory".
Can you tell me what export parameter I need In globalmapper!

THANKS