<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm attaching my code. The rescale intensity filter worked great to get the image data in the right right range. But I'm still having a problem when I try to add the regions which will be labeled with color. 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. I think the add images may be where the problem is. What I would rather do 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. Is there anything like this implemented, or would I need to go through pixel by pixel and change the values? I've only seen binary mask filters.<div><br></div><div>Thanks,</div><div>Sara</div><div><br></div><div></div></body></html>