STL file Find center sphere

2 vues (au cours des 30 derniers jours)
Giulia Mazzucchelli
Giulia Mazzucchelli le 12 Fév 2018
Hi there,
I have a STL file (stereolitography file format) and in this file there are 3 semisphere, is possibile using Matlab to detect those sphere and calculate center of each sphere? Thanks in advance

Réponses (2)

Alexandr Litvin
Alexandr Litvin le 11 Mar 2019
Hi, I am solving a similar problem. Did you find the coordinates of the sphere in the STL image?
  1 commentaire
darova
darova le 11 Mar 2019
Have a few spheres? Is there a distance between them?
Untitled.png
x1 = X(X<a & Y>b);
y1 = Y(X<a & Y>b);
x2 = X(X>a);
y2 = Y(X>a);
x1 = X(X<a & Y<b);
y1 = Y(X<a & Y<b);

Connectez-vous pour commenter.


Giulia Mazzucchelli
Giulia Mazzucchelli le 11 Mar 2019
Hi, yes I did.
First the user select the point in the STL image (ginput), then I selected the area near the point through a function called findNeighborsInRadius (the name is pretty self explanatory) and finally I used the function pcfitsphere.
I suggest you to check Computer Vision Toolbox System

Community Treasure Hunt

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

Start Hunting!

Translated by