Changing scaler field data

Feel free to ask any question here
Post Reply
Ingsayyad
Posts: 97
Joined: Fri Oct 25, 2013 9:17 am

Changing scaler field data

Post by Ingsayyad »

I have comapred Coud A with B. A part of Cloud A shows deviation> 1cm. I donot want it be shown or I want it to be manipulated.
One way is to export this segmented part as txt and change/ fix upper limit of scaler field value (All scaler field value>1cm changed with 1cm) and then again import it back in CC and fuse it with bigger part. It is time consuming even it works (I havn't done it sofar).
Does there exits any other solution inside CC. I donot want to delete points but just change their scaler field values.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Changing scaler field data

Post by daniel »

Well, you could just set the "max distance" parameter to 1 cm in the distance computation dialog.

Otherwise you can play with both the 'Edit > Scalar Field(s) > Filter by value' method and the 'Edit > Scalar Field(s) > Arithmetics' method to get what you want (segment + replace the SF on the > 1 cm part by a constant one with same name + merge).
Daniel, CloudCompare admin
Ingsayyad
Posts: 97
Joined: Fri Oct 25, 2013 9:17 am

Re: Changing scaler field data

Post by Ingsayyad »

I cann't figur out.
I segmented cloud A <0.0269 and cloud B >0.027 to 0.03 by
by 'Edit > Scalar Field(s) > Filter by value' method
All value above 0.027 should be 0.027.

Next I selected segmented point cloud B, 'Edit > Scalar Field(s) > Arithmetics' --> C2C absolute distance minus C2C absolute distance ), it give SF with 0. I keep selecting
segmented point cloud ADD Scaler field-->( name Cont1, value 0.027). It makes gives SF =0.027 on selecting segmented point cloud. Now when I merg it with segmented cloud A <0.0269, it gives me agian point cloud with SF >0.03. I think it should be max( 0.027).
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Changing scaler field data

Post by daniel »

I should have detailed the second method (but I was hoping the first one will suit you ;):
  • filter by value [min ; 0.27]
  • filter by value [0.27 ; max]
  • on the second sub-cloud, delete the scalar field
  • add a constant scalar field (same name as the original SF with 0.27 as constant value)
  • merge
Daniel, CloudCompare admin
Ingsayyad
Posts: 97
Joined: Fri Oct 25, 2013 9:17 am

Re: Changing scaler field data

Post by Ingsayyad »

I deleted scaler field and the point cloud has now no color. I merged it into bigger one . I brings it scaler field value (modified) but also it white (no color)color. I want it to get color it automatically accoring to its scaler field.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Changing scaler field data

Post by daniel »

Not sure to understand here: after having deleted the scalar field, haven't you created a new 'constant' scalar field? Colors are dynamically generated from the scalar values. So if you don't see colors it means that either the scalar field is deactivated or that there's no scalar field...
Daniel, CloudCompare admin
Post Reply