Tracer sur un plan 2D une intensité par rapport aux coordonées des points sur MATLAB

5 views (last 30 days)
Bonjour à tous, je sais que le titre de mon post n'est pas très pertinent donc laissez moi vous expliquer :
Alors en fait j'ai une image (un vortex de Rankine) en niveau de gris sur laquelle j'ai détecté un certain nombre de particule. J'ai calculé le barycentre de ces particules avec deux méthodes différentes. J'ai donc deux couple de vecteur i et j de la même taille.
Par exemple les point i1(30);j1(30) et i2(30);j2(30) renvoient à la même particule. Sauf que i1(30) est différent de i2(30) et j1(30) différent de j2(30).
J'ai donc en fait deux barycentres pour un même point, car j'ai utilisé deux méthode différente. Je sais que la bonne méthode est la méthode 2, c'est à dire les barycentres i2;j2 et je peux donc aisément calculer l'erreur absolue pour chacun des barycentre.
Et donc, je voudrais tracer sur une figure en 2D les erreurs que j'ai trouvé. Je voudrais donc en fait avoir un point d'une certaine couleur (par exemple plus l'erreur est grande plus la couleur tend vers le rouge) correspondant à une particule.
Au final j'aurais donc en fait mon image 2D sur laquelle se trouveraient des points situés exactement à la position des particules, mais avec des couleurs différentes. (car certaines régions provoquent beaucoup d'erreur alors que d'autre quasiment pas).
J'espere ne pas vous avoir perdu avec mes longues explication.
Merci de la lecture, j'attend vos réponses avec impatience, Amicalement.
  1 Comment
Walter Roberson
Walter Roberson on 25 May 2016
Approximate translation:
Hello everyone, I know the title of my post is not very relevant so let me explain:
So in fact I have an image (a vortex Rankine) grayscale which I have detected a number of particle. I am calculating the barycenter of these particles with two different methods. So I have two vector torque i and j of the same size.
For example i1 point (30); j1 (30) and i2 (30); j2 (30) refer to the same particle. Except that i1 (30) is different from i2 (30) and j1 (30) different j2 (30).
So I actually two centers of gravity for the same point, because I used two different method. I know the right method is the method 2, ie the centroid i2, j2, so I can easily calculate the absolute error for each centroid.
So, I would draw on a figure 2D the mistakes I found. So I would actually have a point of a certain color (eg more error is greater the more the color tends toward red) corresponding to a particle.
So in the end I would actually my 2D image on which to find points in exactly the position of particles, but with different colors. (For some areas cause error while many other hardly).
I hope you have not lost with my long explanation.
Thank you for reading, I await your answers impatiently, Sincerely.

Sign in to comment.

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!