Giter Club home page Giter Club logo

Comments (6)

agnivsen avatar agnivsen commented on July 28, 2024

Normal vector between two points can be derived somewhat like this:
https://math.stackexchange.com/questions/12745/how-do-you-calculate-the-unit-vector-between-two-points

Normal vector to a plane can be found using:
http://mathworld.wolfram.com/NormalVector.html

Normal to the planes of a model should be obtained from the model itself. Most model file formats (.obj, .ply etc.) comes with the per-plane normal data (although it is optional).

Does that answer your question?
(If not, could you please clarify your question)

from icp.

zhchyang2004 avatar zhchyang2004 commented on July 28, 2024

Thanks for answer! But I am still quite curious about the mentioned normal vectors features. They seem very different from common cases, which means normal vector length equals to 1 and starts from (0,0,0).

from icp.

agnivsen avatar agnivsen commented on July 28, 2024

The normal vectors used here are unit normal vectors. Hence their lengths are always equal to one. Normal vectors do not necessarily start from a point.

I do not understand how you infer that the normal vectors always starts from (0,0,0). Please explain more, if this has not already answered your question.

from icp.

zhchyang2004 avatar zhchyang2004 commented on July 28, 2024

When I use pcl_pointcloud function to calculate normal vectors, it gives out normal vectors starting from (0,0,0) and each length is 1. For sure, normal vectors can start at any point, e.g. the corresponding point, after removing them.

In this case, with this code, you can get distances from corresponding points to normal vector points. you can find the distances are different from each other.
'np.linalg.norm(dest_points_et_normal[:,:3]-dest_points_et_normal[:,3:],axis=1)'

When using pcl to watch the hare and its normal vectors from deformed.xyz, you can see the hare is far inside normal vector ending points. It also seems normal vector points forms a globe.

After a globe is fit with all normal vectors points, we can find following features:
1.the globe radius does not equal to 1
2.the distance from each normal vector point to the globe center does not equal to each other and are different greatly.

Above findings confuse me. Where does each normal vector start?

from icp.

agnivsen avatar agnivsen commented on July 28, 2024

@zhchyang2004 sorry for the extremely late response, are you still looking for an answer to this question?

from icp.

zhchyang2004 avatar zhchyang2004 commented on July 28, 2024

@agnivsen Hello, although it has been one year later, I am still eager to get the answer.

from icp.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.