Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting the thickness bone table from Bone Thickness Mapping extension #4

Open
MOdabaee opened this issue Aug 3, 2021 · 0 comments

Comments

@MOdabaee
Copy link

MOdabaee commented Aug 3, 2021

Hi,
I’ve been using Bone Thickness Mapping extension. It’s an amazing tool and the heatmap it creates is super useful. However, I need to have access to thickness values to do more statistical analyses. I assume for each pixel or coordinate, there is a thickness value. I’m new in scripting and still learning Python. From Line 921 to 924 of the provided script (BoneThicknessMapping.py), it says:

ix = [int(i) for i in [minmax_thickness[0]*gradient_scale_factor, (minmax_thickness[1])*gradient_scale_factor + 1]]
thicknessTableNode = BoneThicknessMappingLogic.build_color_table_node('ThicknessColorMap', ix[-1])
for i in range(ix[0], ix[-1]): calculate_and_set_colour(thicknessTableNode, i, hue=p(i, ix[-1], ix[0]) * 0.278, sat=0.9, val=0.9)

Does this mean that the data I’m after is called “thicknessTableNode”? If so, would you let me know how I can save the data in a table, text file or other formats?

Thanks,
Mo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant