3D Frontal bone thickness colour map.

huangapple go评论56阅读模式
英文:

3D Frontal bone thickness colour map

问题

You can calculate the thickness of a 3D frontal bone model with a color map using MeshLab. The recommended approach would be to follow the instructions provided in the Stack Overflow post you mentioned: https://stackoverflow.com/questions/61787028/how-to-calculate-the-thickness-of-a-mesh/62198280#62198280

This method should help you achieve the desired results.

英文:

I want to calculate the thickness (with color map)of 3D frontal bone model using meshlab. Can I do that using shape diameter function in meshlab? Can I follow this step in youtube? https://youtu.be/it-RxI9z_io

Or should I follow this? https://stackoverflow.com/questions/61787028/how-to-calculate-the-thickness-of-a-mesh/62198280#62198280

I reconstruct the bone in 3D slicer.So I had tried the 3D slicer bone thickness extension. But it seems that it only calculate a thin layer of thickness.can i use meshlab or please suggest any software that could help me show the bone thickness with color map.

答案1

得分: 1

以下是翻译好的内容:

也许你应该都跟随,但首先从第二个链接开始。

第二个链接解释了如何计算厚度并将其存储为顶点质量值。顶点质量只是存储在每个顶点中的数字,在这种情况下,“形状直径函数”将存储厚度。这些数字可以导出到文件(导出网格并选择“数量”选项),或者用于计算某些内容,但最初“看不见”。

第一个链接解释了如何将这些值表示为网格表面上的颜色,以便质量值可见。

如果你只对厚度值感兴趣(而不是颜色),你可以跳过质量映射步骤,然后在应用“形状直径函数”后立即导出网格。

要导出已经存储为每个顶点质量的厚度值,你需要使用“导出网格为”选项,输入一个带有“.ply”扩展名的文件名,并检查“顶点”列下的“质量”选项,并取消选中“二进制编码”。

结果是一个ASCII PLY文件,类似于以下内容:

(接下来是PLY文件的头部,包含有关顶点和面数的信息。每个顶点具有4个属性,即其3D坐标和质量。因此,对于这个文件,厚度存储在每个顶点的最后一列中。这个文件格式很容易导入到Matlab/Excel中,例如,用于计算模型的最小、最大和平均厚度。)

如果你想要为网格着色,可以使用“按顶点质量着色”或“质量映射器”方法之一。

第一个方法更简单(可能推荐),只需将质量范围映射到预定义的颜色函数,从红色(低值)到黄色到蓝色(高值)颜色,使用线性渐变。

第二个方法更全面,因此你可以个性化颜色调色板或“质量到颜色曲线”的形状。请注意,默认调色板在这里是反转的,所以“蓝色”表示低值。

如果你已经使用任何方法对网格着色,你可以使用与之前相同的选项将RGB颜色导出到ASCII PLY文件,但在“Vert”列后检查“颜色”选项。

在这种情况下,每个顶点将具有7个属性:X、Y、Z、R、G、B、质量。

英文:

Probably, you should follow both, but start by the second link.

The second link explain how to compute the thickness and store the values as a vertex quality. A vertex quality is just a number stored in each vertex, and in this case the 'Shape Diameter function' will stored the thickness. These numbers can be exported to a file (export the mesh and select the 'quantity' option), or used to compute something, but initially 'cannot be seen' .

The first link explains how to represent those values as colors in the surface of the mesh, so quality values are visible.

If you are interested in the thickness values (not the colors, you can avoid the quality mapper step, and export the mesh just after applying the 'Shape Diameter function'.

To export the thickness values once you have stored them as per vertex quality, you have to use the "Export Mesh As" option, enter a filename with the ".ply" extension and check the option "Quality" under the vertex column and uncheck "Binary encoding"

3D Frontal bone thickness colour map.

The result is a ascii ply file like this:

ply
format ascii 1.0
comment VCGLIB generated
element vertex 2724
property double x
property double y
property double z
property double quality
element face 5440
property list uchar int vertex_indices
end_header
0.233160783 0.95932031 0.0953535725 0.20976299269 
0.462929754 0.81837577 0.0657370521 0.15641355702 
0.202524351 0.92948891 -0.146474276 0.17747184249 
0.000811799 0.95794361 -0.065255075 0.17676775606 
0.450552929 0.82249427 0.3468674341 0.22105761373 
0.443139354 0.82520659 -0.268912174 0.19443450433 
...

First 11 lines are the ply header, with information about the number of vertex and faces. Each vertex has 4 properties, which are its 3D coordinates and the quality.
So for this file, the thickness are stored in the last column of each vertex. This file format is quite easy to import into matlab/excel (for example, to compute the min, max and average thickness of your model)

If you are interested in colorize the mesh, you can use any of the Colorize by vertex Quality or Quality Mapper methods.

The first is more simple (and probably recommended), just map the quality range to a predefined color function that goes from red (low values) to yellow to blue (high values) colors using a linear ramp.

The second is more complete, so you can personalize the color palette or the shape of the "quality to color curve". Note that the default palette here is flipped, so "blue" mean low values.

If you have colorized the mesh using any method, you can export the RGB colors to a ascii ply file using same options than before but checking the "Color" option after the Vert column.

3D Frontal bone thickness colour map.

In this case, each vertex will have 7 properties: X,Y,Z,R,G,B,Quality

huangapple
  • 本文由 发表于 2023年5月7日 13:43:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76192361.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定