<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I have a question about the use of the vtkImageReslice mapper.<br>
<br>
In setting up a VTK pipeline for displaying CT image slices we used
previously a vtkImageReslice followed by a vtkImageMapToColors. We
have recently switched to using a vtkImageResliceMapper instead of
the two previous classes, but we are experiencing an issue.<br>
<br>
When using vtkImageReslice the method SetBackgroundLevel() was
called with a value of -1000 which mapped pixels falling outside the
sampled CT volume to a black pixel on screen, given the LUT in use.<br>
<br>
In vtkImageResliceMapper the conversion from CT scalar values to
screen colors is performed internally and we have tried playing with
BackgroundOn() and with SetBackingColor of a vtkImagePorperty is
passed to the vtkImageResliceMapper, but we are not able to get rid
of a thin gray border that at times shows around the image as shown
in the screenshot below ....<br>
<br>
<img src="cid:part1.D719FF66.B8CB4432@ne-scientific.com" alt=""><br>
<br>
Additionally, when the slicing plane is set at the very beginning of
the volume or at the very end, the output is a slice which is
completely gray.<br>
<br>
I suspect that pixel values for sampling locations that fall outside
of the CT image volume are set to a default value which results in
the gray pixels.<br>
<br>
Can anyone please advise on how to control such value - so that gray
borders could be eliminated?<br>
<br>
Thanks in advance for any suggestion,<br>
<br>
Best Regards,<br>
<br>
Andrea<br>
</body>
</html>