Command Line and Research Sandbox Functions in ICP

Feel free to ask any question here
Post Reply
cwsheen61
Posts: 4
Joined: Sat Jan 27, 2018 9:34 am

Command Line and Research Sandbox Functions in ICP

Post by cwsheen61 »

I'm using ICP to match small pieces of mobile lidar-based scanned point clouds to a model the object that was scanned. The code below works well to create a command line call.

When working out the process, I found that the Research tab in the UI provided options to constrain the ICP (Z-rotation, XY-translation only).

Have these been implemented in the command line interface in some way? My results would be far better if I could constrain the alignment by just Z-rotation, and XY-translation.

Here is a little section of code (Mac OSX Python) that works for general, unconstrained ICP for a large group of files (3800 small files).


for i in range (0,loops):
callStr.extend(['/usr/bin/open', \
'-W', \
'-n', \
'-g', \
'-a', \
'/Applications/CloudCompare.app', \
'--args', \
'-SILENT', \
'-C_EXPORT_FMT', 'PLY', \
'-PLY_EXPORT_FMT', 'ASCII', \
'-NO_TIMESTAMP' \
])
fileStr = ('/<pathname>/<model_name>.txt')
callStr.extend (['-o', fileStr])
fileNum = (i * groups) + 1
print fileNum
fileStr = ('/<pathname>/pointcloud_%d_MERGED.ply' % fileNum)
callStr.extend (['-o', fileStr])
callStr.extend (['-ICP', \
'-REFERENCE_IS_FIRST', \
'-OVERLAP', '20' \
])
callStr.extend (['-POP_CLOUDS'])
call(callStr)
callStr = []
daniel
Site Admin
Posts: 7722
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command Line and Research Sandbox Functions in ICP

Post by daniel »

Hi,

Sorry, I kind of missed your message ;). As you may have already realized, these 'research' options are not available via the command line. It wouldn't be hard to had them though. But it's becoming harder and harder for me to do all these (even small) modifications myself. I'll add it to the TODO list and we'll see what happens ;)
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7722
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command Line and Research Sandbox Functions in ICP

Post by daniel »

For the records, this is now possible with the 2.11 version (option -ICP -ROT - see https://www.cloudcompare.org/doc/wiki/i ... _line_mode)
Daniel, CloudCompare admin
Post Reply