# Create sphere brush to edit voxels values in scanners image without fixed position

**URL:** <https://discourse.slicer.org/t/create-sphere-brush-to-edit-voxels-values-in-scanners-image-without-fixed-position/3521>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [July 19, 2018, 8:41am UTC](https://discourse.slicer.org/t/create-sphere-brush-to-edit-voxels-values-in-scanners-image-without-fixed-position/3521 "2018-07-19T08:41:05Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 19, 2018, 2:00pm UTC](https://discourse.slicer.org/t/create-sphere-brush-to-edit-voxels-values-in-scanners-image-without-fixed-position/3521/8 "2018-07-19T14:00:07Z")

</div>

Glad to know this is progress for you 👍

Once you know how you want things to work via the GUI, you can make them work via python scripting too. If you search this forum for keywords segmentation and python and labelmap you’ll find lots of snippets.

This might be what you need:

> [@Import labelmap to segmentation node - in batch processing](https://discourse.slicer.org/t/import-labelmap-to-segmentation-node-in-batch-processing/2360/10):
>
> There were a couple of problems: It is not enough to create the segmentation node but you need to also add to the scene. You can use slicer.mrmlScene.AddNewNodeByClass to create a node and add it to the scene in one step. slicer.util.loadVolume loads file as scalar volume, while ImportLabelmapToSegmentationNode expects a labelmap volume; you need to use slicer.util.loadLabelVolume instead Relative path was used for the input image. I’m not sure what is the working directory of Slicer. It is s…

---

_[View the full topic](https://discourse.slicer.org/t/create-sphere-brush-to-edit-voxels-values-in-scanners-image-without-fixed-position/3521)._
