# SegmentComparison for nii.gz image

**URL:** <https://discourse.slicer.org/t/segmentcomparison-for-nii-gz-image/8825>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [October 18, 2019, 12:52am UTC](https://discourse.slicer.org/t/segmentcomparison-for-nii-gz-image/8825 "2019-10-18T00:52:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [October 18, 2019, 1:59am UTC](https://discourse.slicer.org/t/segmentcomparison-for-nii-gz-image/8825/2 "2019-10-18T01:59:16Z")

</div>

You’ll need to create a segmentation from the volume.

Import or convert the nii.gz to a labelmap node as described here:

> [@How to convert volume to segmentation?](https://discourse.slicer.org/t/how-to-convert-volume-to-segmentation/1081/4):
>
> You can only import labelmap volumes. You have two options for having your volume interpreted as labelmap: Option A: Load your volume as a labelmap: in the Add data dialog click on Show options and check “LabelMap”. Option B: Convert your grayscale volume to labelmap in the Volumes module, Volume information section, Convert to label map row.

Then, in the Segmentations module, import the labelmap node to a Segmentation. The option should be under the “Export/import models and labelmaps” section.

---

_[View the full topic](https://discourse.slicer.org/t/segmentcomparison-for-nii-gz-image/8825)._
