View Issue Details

IDProjectCategoryView StatusLast Update
0003866Slicer4Core: Base Codepublic2018-03-02 11:06
ReporterZ o o m Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product VersionSlicer 4.3.1-2 
Target VersionSlicer 4.5.0-1Fixed in VersionSlicer 4.5.0-1 
Summary0003866: subtract label map from label map
Description

Hi,
I created a copy of a label map file, including about 400 slices;
from which i removed a lot some colored parts to get an other view of it.

-> So far I've got the original file and the edited one.

Now i wanted to create a new label map, which consists of the original label map minus the edited one.

Can i do this with slicer?
If so, how? :)
If not, do you know an other way for me to take?

Thanks,
Z o o m

TagsNo tags attached.

Activities

Z o o m

Z o o m

2014-10-19 08:10

reporter   ~0012635

No ideas?
:)

jcfr

jcfr

2015-09-22 10:30

administrator   ~0013299

Hi Z o o m,

Sorry for the late answer.

There are few options:

1) Assuming the two label map have the same values. You could use the "SubtractImageFilter" provided by SlicerSimpleFilters module.

2) It should also be possible to combine label maps of same geometry using few lines of python. Here are some example explaining how to access the volume data:

http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/ScriptRepository#Modify_voxels_in_a_volume

http://wiki.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Python_scripting#Accessing_Volume_data_as_numpy_array

Hth
Jc

Issue History

Date Modified Username Field Change
2014-10-09 03:46 Z o o m New Issue
2014-10-09 03:46 Z o o m Status new => assigned
2014-10-09 03:46 Z o o m Assigned To => jcfr
2014-10-15 06:40 jcfr Category Module Welcome => Core: Base Code
2014-10-15 06:40 jcfr Target Version => Slicer 4.4.0
2014-10-15 06:40 jcfr Target Version Slicer 4.4.0 => Slicer 4.5.0-1
2014-10-19 08:10 Z o o m Note Added: 0012635
2015-09-22 10:30 jcfr Note Added: 0013299
2015-09-22 10:30 jcfr Status assigned => resolved
2015-09-22 10:30 jcfr Fixed in Version => Slicer 4.5.0-1
2015-09-22 10:30 jcfr Resolution open => fixed
2018-03-02 11:06 jcfr Status resolved => closed