# Margin calculator extension

**URL:** <https://discourse.slicer.org/t/margin-calculator-extension/3736>\
**Category:** Support\
**Created:** [August 12, 2018, 7:11am UTC](https://discourse.slicer.org/t/margin-calculator-extension/3736 "2018-08-12T07:11:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aseman](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@aseman](https://discourse.slicer.org/u/aseman)\
**Post date:** [August 12, 2018, 7:11am UTC](https://discourse.slicer.org/t/margin-calculator-extension/3736/1 "2018-08-12T07:11:20Z")

</div>

Slicer version:4.8.1  
Hi 3D slicer experts:  
I want to work with some modules of margin calculator extension , but I don’t know any thing about it. can you help me and introduce a comperhensive tutorial about this extension (and it’s modules)?  
thanks a lot

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 12, 2018, 8:57am UTC](https://discourse.slicer.org/t/margin-calculator-extension/3736/2 "2018-08-12T08:57:43Z")

</div>

Since Margin and Logical operators effects are available in Segment Editor module, I would recommend using them instead of the standalone Margin Calculator extension.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [August 12, 2018, 9:16pm UTC](https://discourse.slicer.org/t/margin-calculator-extension/3736/3 "2018-08-12T21:16:57Z")

</div>

The Margin Calculator extension was created by one of our collaborators, but since then has been abandoned. If it has any feature that Segment Editor cannot do and you need it for your project, I’m happy to guide you in resurrecting it.

---

<div class="post-metadata">

**Author:** ![aseman](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@aseman](https://discourse.slicer.org/u/aseman)\
**Post date:** [August 13, 2018, 1:56pm UTC](https://discourse.slicer.org/t/margin-calculator-extension/3736/4 "2018-08-13T13:56:16Z")

</div>

Hi 3D slicer experts  
Thanks for your response. I want to calculate the random and systematic errors . I think that the modules of this extension can calculate these errors . can you guide me?  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [August 13, 2018, 2:37pm UTC](https://discourse.slicer.org/t/margin-calculator-extension/3736/5 "2018-08-13T14:37:03Z")

</div>

The Segment editor does not compute random and systematic errors. You will need to implement this yourself. The formula is very simple, and you can do this in Excel.

(By the way, I never used the Margin Calculator, but I don’t think it computes random and systematic errors. Instead, I think you are supposed to supply these as inputs.)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 14, 2018, 4:38am UTC](https://discourse.slicer.org/t/margin-calculator-extension/3736/6 "2018-08-14T04:38:41Z")

</div>

Do you mean computing random and systematic errors of segmentation? Do you have multiple segmentations of the same structure?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [August 14, 2018, 12:37pm UTC](https://discourse.slicer.org/t/margin-calculator-extension/3736/7 "2018-08-14T12:37:09Z")

</div>

I believe the Margin Calculator can calculate such errors, see description on page  
[https://www.slicer.org/wiki/Documentation/Nightly/Extensions/MarginCalculator](https://www.slicer.org/wiki/Documentation/Nightly/Extensions/MarginCalculator)  
“Motion simulation for systematic and random errors”

The dashboard shows that it builds fine on Linux and Mac, but not on Windows.  
[http://slicer.cdash.org/index.php?project=SlicerPreview&filtercombine=or&filtercount=1&showfilters=1&field1=label&compare1=63&value1=MarginCalculator](http://slicer.cdash.org/index.php?project=SlicerPreview&filtercombine=or&filtercount=1&showfilters=1&field1=label&compare1=63&value1=MarginCalculator)  
It shouldn’t be too hard to fix. @aseman do you want to give it a try?
