MATLAB Answers

How can I transform a sphere with associated values to a arbitrary shape?

7 ビュー (過去 30 日間)
Marcus Nilsen
Marcus Nilsen 2020 年 10 月 7 日
コメント済み: Marcus Nilsen 2020 年 10 月 8 日
I am trying to make a "device" that can scan the temperature of an object with a infrared thermometer.
The device is build so that the object is lying in the center and the "robot" is then scanning the temperature of the object, while rotating the object.
This gives me a list of x,y,z coordinates and the measured temperature.
The way the device is built the x,y and z coordinates follow the surface of a sphere.
I can then take these measurements and make a plot, showing the temperature as a sphere.
My problem is then that i would like to "transform" this sphere to the shape of my scanned object.
The object im scanning has a step/stl file, and i was hoping i could be able to "shrink wrap" my sphere around the model.
Think like deflating a baloon with a abject inside.
I hope that my question makes sense.
Best regards

  0 件のコメント



Hiro 2020 年 10 月 7 日
I did not really get what you're trying to do but it has something to do with the coordinate transformation?
This can be a help.
The best way to raise questions here in MATLAB Answers is converting your questions into something generic so anyone can understand where you get stuck technically/mathematicall.

  3 件のコメント

Marcus Nilsen
Marcus Nilsen 2020 年 10 月 7 日
Thank you for your reply!
After rereading my post I can se that it is quite confusing.
My question is this:
I now have long list of measurements. Each measurement is taken on a point on the surface on a sphere.
I can plot a sphere i matlab, where my temperature measurement can be visualized as the color.
This gives me a sphere, where a red color is a warm temperature and blue is cold.
This is all fine and dandy, but now i would like to transform this sphere to the form of the object I scanned, but keeping the color the same.
So my problem is that i would like to transform a sphere with a specific color to another shape, and keeping the color pattern the same.
But I have no idea about where to start looking for this.
I hope this is formulated better.
Hiro 2020 年 10 月 8 日
I got you.
This is the one that combines "color" and "3D map":
You can use your temperature for the argument C.
Also you can make your colormap from your data easily by using this tool:
Marcus Nilsen
Marcus Nilsen 2020 年 10 月 8 日
Thanks for the quick reply!
It looks helpful :-)


その他の回答 (0 件)




Community Treasure Hunt

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

Start Hunting!

Translated by