# MatlabBridge assign new gray-level value

**URL:** <https://discourse.slicer.org/t/matlabbridge-assign-new-gray-level-value/4632>\
**Category:** Support\
**Created:** [November 5, 2018, 4:45am UTC](https://discourse.slicer.org/t/matlabbridge-assign-new-gray-level-value/4632 "2018-11-05T04:45:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TingtingYu](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@TingtingYu](https://discourse.slicer.org/u/TingtingYu)\
**Post date:** [November 5, 2018, 4:45am UTC](https://discourse.slicer.org/t/matlabbridge-assign-new-gray-level-value/4632/1 "2018-11-05T04:45:16Z")

</div>

Hi,

I am trying to use MatlabBridge to convert 16-bit CT image to 8-bit CT Image. The new gray-level value within ROI have been calculated. However, I am not sure how many member struct inputParams has. Which member can be used to assign new gray-level values?

Regards,  
Tingting
