Command line mode and classification

Feel free to ask any question here
Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: Command line mode and classification

Post by Haowyr »

I have done it, with auto values or set manually values and it doesn' change anything, that's the problem.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line mode and classification

Post by daniel »

Can you post your command line?
Daniel, CloudCompare admin
Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: Command line mode and classification

Post by Haowyr »

The last version of the command line looks like this

Cloudcompare -o -global_shift auto %chemin_las%/1639600_8202250.las -no_timestamp -apply_trans %chemin_matrix%
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line mode and classification

Post by daniel »

Oh it's a LAS file?

For LAS files, since version 2.6.X we use by default the embedded 'shift/scale' by default (and we assume they are good ;).

But it should work if you specify a custom shift. Are you sure you input the shift as '-big_X, -big_Y, -big_Z'? CC 'adds' the shift to the original coordinates.
Daniel, CloudCompare admin
Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: Command line mode and classification

Post by Haowyr »

As I understand it, the -global_shift is not the problem as I used it several times before for other operations but in this case what I want is to open correctly my pretty "large" point cloud so I guess auto shift is good enough for me and i wanna save some "reduced" coordinates with the global_shift and save it in a new file because canupo command line version can handle my tile only if I shift it. So for me the parameter used to open the file seems not really important for me, just relevant for CloudCompare to be able to deal with it, am I wrong?

In any case, I tried already to use a custo shift with the same valuesthan I have in my matrix, I have tried to create an xyz or a bin file to use it as a source for this operation and I always haev the same type of result for now. I also tried to segment my point cloud to check if the size had something to do with it but none of these "methods" gave me another result for now.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line mode and classification

Post by daniel »

Are you trying to remove the global shift in order to save your files in a local coordinate system? Because in this case, indeed the command line version of "Apply transformation" doesn't work the same way than the "graphical" version.

And anyway it shouldn't be done like that (you should use instead the 'Edit > Edit global shift & scale' method in the graphical version). For the command line, the option have yet to be added.
Daniel, CloudCompare admin
Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: Command line mode and classification

Post by Haowyr »

Exactly I trying to remove a global shift (not necessarily the one used in "auto" parameter as I explained) to save some memory during the process and I used to do it with "Apply transformation" in CloudCompare so the idea was to use the same txt containning my matrix to do it in command line.

But if it's not possible to do it like this I'm pretty I might find another software that can help me doing it!
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Command line mode and classification

Post by daniel »

Indeed we could add the option but it would not be for tomorrow ;)

Have you looked at lastools?
Daniel, CloudCompare admin
Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: Command line mode and classification

Post by Haowyr »

I haven't but I'm going to take a look at this but I might not even need it considering the software I can use just like microstation/terrascan and FME.
Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: Command line mode and classification

Post by Haowyr »

Hello,
Thanks to your help my work has progressed consequently, thanks you very much.
I have two little more questions:
- Is there a way to colorize a point cloud in command line with just one RGB values set (not using -CBANDING {dim} {freq} which is the only way to add a color I found in command line mode for now)
- Is there a "full" silent mode available? I would like to have absolutely no confirmation message popping up during the process like, for example, no confirmation of the columns' types when I open an .xyz file nor "OK" confirmation at the end of any operation. For now I'm using a little script which presses ENTER every 5 sec but it is creating some window focus issues, having cloud compare behind the ms dos which makes it doesn't validate the validation message until I click manually on the CC windows...
Post Reply