# SetLabelModeToLabelIds get all "zero values"

**URL:** <https://discourse.vtk.org/t/setlabelmodetolabelids-get-all-zero-values/8968>\
**Category:** Development\
**Created:** [July 18, 2022, 8:44am UTC](https://discourse.vtk.org/t/setlabelmodetolabelids-get-all-zero-values/8968 "2022-07-18T08:44:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuNie](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/a5b964/32.png) [@YuNie](https://discourse.vtk.org/u/YuNie)\
**Post date:** [July 18, 2022, 8:44am UTC](https://discourse.vtk.org/t/setlabelmodetolabelids-get-all-zero-values/8968/1 "2022-07-18T08:44:42Z")

</div>

I was trying to show the label contour id using vtkLabeledDataMapper. when i set the mapper label mode to label id using “SetLabelModeToLabelIds”. I got all ids labeled “zero”. How can I solve this？

 ![Snipaste_2022-07-18_16-42-19](https://discourse.vtk.org/uploads/default/original/2X/5/5b0ef1c45a53bb066e69e02d947cc194284ecc41.jpeg)
