# specifying bones by lines

**URL:** https://discourse.itk.org/t/specifying-bones-by-lines/2289
**Category:** Beginner Questions
**Tags:** simpleitk
**Created:** [October 1, 2019, 7:31am UTC](https://discourse.itk.org/t/specifying-bones-by-lines/2289 "2019-10-01T07:31:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![epilicer](https://discourse.itk.org/letter_avatar_proxy/v4/letter/e/e19b73/32.png) [@epilicer](https://discourse.itk.org/u/epilicer)
#### Post date: [October 1, 2019, 7:31am UTC](https://discourse.itk.org/t/specifying-bones-by-lines/2289/1 "2019-10-01T07:31:17Z")

</div>

Hi,

I am a physicist and have recently started to orient in data science. I came an idea to calculate the angle for the valgus deformation from an x-ray image (attachment). All I did for the moment is to read image and apply some filters to find edges in the image by using Python. I still could not figure out how to draw such lines based on each bone position to estimate the valgus angle. I wonder if SimpleITK is a tool to help me out for that purpose and if so I would appreciate of any information.

Best,  
Ercan

 ![DSC01282_3](https://discourse.itk.org/uploads/default/original/2X/3/333a9e220ca2df832ec284be360c17e845e1184f.jpeg)

---

<div class="post-metadata">

### Author: ![zivy](https://discourse.itk.org/user_avatar/discourse.itk.org/zivy/32/1726_2.png) [@zivy](https://discourse.itk.org/u/zivy)
#### Post date: [October 1, 2019, 1:11pm UTC](https://discourse.itk.org/t/specifying-bones-by-lines/2289/2 "2019-10-01T13:11:11Z")

</div>

Hello @epilicer,

Welcome to SimpleITK!

Generally speaking, SimpleITK does not provide visualization (shape drawing) functionality, its focus is on image analysis. Having said that, in Python you can combine the results from SimpleITK with visualization and user interfaces (e.g. pyqt or just plain matplotlib).

[This Jupyter notebook](https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks/blob/master/Python/71_x-ray-panorama.ipynb), from our notebook repository actually deals with computation of a panoramic image as a first step for HKA computation and is possibly a good starting point for your work.

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.itk.org/user_avatar/discourse.itk.org/lassoan/32/27_2.png) [@lassoan](https://discourse.itk.org/u/lassoan)
#### Post date: [October 2, 2019, 12:34am UTC](https://discourse.itk.org/t/specifying-bones-by-lines/2289/3 "2019-10-02T00:34:34Z")

</div>

If you need interactive graphical user interface for specifying points, lines, angles, displaying them over image slices, etc. then you can use markups module in [3D Slicer](http://slicer.org). Slicer has an embedded Python interpreter, so you can run your Python code that uses SimpleITK or any other Python package inside Slicer.
