mkazhdan / PoissonRecon

Poisson Surface Reconstruction
MIT License
1.51k stars 422 forks source link

Confidence parameter #274

Open Clayes97 opened 9 months ago

Clayes97 commented 9 months ago

Hello, I am not understanding what the confidence parameter represents.

Should It be something related on how much I want to fulfill the constraint related to the screeming? Is therefore what is called alpha in the papers?

Thanks a lot for your answer

mkazhdan commented 9 months ago

Not quite. The alpha parameter for screening is defined by --pointWeight.

In addition, it is possible that you have more confidence in some samples than others. (For example, if a point is facing the camera you are likely to be more confident than in a point viewed at a grazing angle). To support this, the code allows you to encode your confidence in the magnitude of the normal. The code then computes the magnitude of the normal raises it to the power of --confidence, and further scales the screening weight at that sample by the exponentiated normal magnitude. (By default --confidence has value 0 so that the local weight is 1 for all samples, but you could set it to a positive value if you have encoded confidence in the magnitude of a sample's normal.)

Clayes97 commented 9 months ago

So, if I got it: There are some points p of my point cloud for which I'm suspicious about their position (due to the sensor). Therefore, I weight their contribution in the screening constraint as w (p) = ||n_p||^{(confidence)} in order to say that for those points I dont want a perfect interpolation?

mkazhdan commented 9 months ago

Yes. Assuming that when you generated the point cloud you made the magnitudes of the normals of those points smaller.

Clayes97 commented 9 months ago

Amazing! But just a last question: how do I select those points? How does the code understand which points suffer the confidence?

mkazhdan commented 9 months ago

If the points have normals with magnitude 1, the associated weight will be 1 regardless of the confidence. So as long as you can scale the unit normals by the samples confidence (in the range [0,1])...

On September 18, 2023 10:27:18 AM EDT, Clayes97 @.***> wrote:

Amazing! But just a last question: how do I select those points? How does the code understand which points suffer the confidence?

-- Reply to this email directly or view it on GitHub: https://github.com/mkazhdan/PoissonRecon/issues/274#issuecomment-1723538243 You are receiving this because you commented.

Message ID: @.***>