<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm attaching my code. &nbsp;The rescale intensity filter worked great to get the image data in the right right range. &nbsp;But I'm still having a problem when I try to add the regions which will be labeled with color. &nbsp;I move the data into the intensity range 100-200, and then use the add image filter to add the labeled image on top, so that I can use a piecewise colormap in VTK to apply colors to these values. &nbsp;I think the add images may be where the problem is. &nbsp;What I would rather do&nbsp;is mask the image with the labels so that the pixels in the image were replaced with the label value for all non-zero labels. &nbsp;Is there anything like this implemented, or would I need to go through pixel by pixel and change the values? &nbsp;I've only seen binary mask filters.<div><br></div><div>Thanks,</div><div>Sara</div><div><br></div><div></div></body></html>