<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.5%2FFAQ%2FSegmentation</id>
	<title>Documentation/4.5/FAQ/Segmentation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.5%2FFAQ%2FSegmentation"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.5/FAQ/Segmentation&amp;action=history"/>
	<updated>2026-04-23T16:21:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Documentation/4.5/FAQ/Segmentation&amp;diff=44027&amp;oldid=prev</id>
		<title>JChris.FillionR: Created page with '&lt;noinclude&gt;{{documentation/versioncheck}}&lt;/noinclude&gt; &lt;noinclude&gt;__TOC__ ={{#titleparts: {{PAGENAME}} | | -1 }}=&lt;/noinclude&gt;&lt;includeonly&gt; {{#ifeq: {{#titleparts: {{PAGENAME}} | 3…'</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.5/FAQ/Segmentation&amp;diff=44027&amp;oldid=prev"/>
		<updated>2015-11-13T00:50:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;lt;noinclude&amp;gt;{{documentation/versioncheck}}&amp;lt;/noinclude&amp;gt; &amp;lt;noinclude&amp;gt;__TOC__ ={{#titleparts: {{PAGENAME}} | | -1 }}=&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt; {{#ifeq: {{#titleparts: {{PAGENAME}} | 3…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{documentation/versioncheck}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;__TOC__&lt;br /&gt;
={{#titleparts: {{PAGENAME}} | | -1 }}=&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;&lt;br /&gt;
{{#ifeq: {{#titleparts: {{PAGENAME}} | 3 }} | Documentation/{{documentation/version}}/Developers | | ='''User FAQ: {{{1}}}'''=}}&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How to switch between scalar/labelmap volume ? ==&lt;br /&gt;
&lt;br /&gt;
Previously it was possible to switch between scalar/labelmap type by changing an attribute value. Now scalar/labelmap volumes are stored in different classes, therefore a new node has to be created for the converted volume. Conversion options:&lt;br /&gt;
&lt;br /&gt;
* Use the ''Cast Scalar Volume'' module to convert between scalar/labelmap volumes.&lt;br /&gt;
* Create a new node for the target representation and pass the image data of the source node to the target node. For example, conversion to labelmap volume:&lt;br /&gt;
&lt;br /&gt;
    scalarVolume = slicer.util.getNode('MRHead')&lt;br /&gt;
    labelVolume = slicer.modules.volumes.logic().CreateAndAddLabelVolume(scalarVolume,scalarVolume.GetName()+'-label')&lt;br /&gt;
    labelVolume.SetAndObserveImageData(scalarVolume.GetImageData())&lt;br /&gt;
    slicer.mrmlScene.RemoveNode(scalarVolume)&lt;/div&gt;</summary>
		<author><name>JChris.FillionR</name></author>
		
	</entry>
</feed>