bastula / dicompyler

Extensible radiation therapy research platform and viewer for DICOM and DICOM RT
http://www.dicompyler.com
263 stars 99 forks source link

Area calculation is incorrect using Surveyor's formula #99

Open bastula opened 7 years ago

bastula commented 7 years ago

The area calculation for Surveyor's formula might be incorrect.

Using the algorithm in dvhdata.py - CalculateVolume, it does not produce the correct result when running the toy example given on https://en.wikipedia.org/wiki/Shoelace_formula for a simple area calculation.

This should be a rather simple fix.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41870898-area-calculation-is-incorrect-using-surveyor-s-formula?utm_campaign=plugin&utm_content=tracker%2F18109348&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F18109348&utm_medium=issues&utm_source=github).