STL file Find center sphere

2 次查看(过去 30 天)
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

回答(2 个)

Alexandr Litvin
Alexandr Litvin 2019-3-11
Hi, I am solving a similar problem. Did you find the coordinates of the sphere in the STL image?
  1 个评论
darova
darova 2019-3-11
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);

请先登录,再进行评论。


Giulia Mazzucchelli
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