<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
{font-family:"MS Mincho"}
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
@font-face
{font-family:"\@MS Mincho"}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
span.EmailStyle18
{font-family:"Calibri","sans-serif";
color:#1F497D}
.MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
{}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I have 3D MRI dataset and I resliced the data using vtkImageResliceMapper.</p>
<p class="MsoNormal">I find it difficult to figure out why the pixel intensity of resliced images is so different from the original.</p>
<p class="MsoNormal">In the attached file, the resliced image (image on the left) shows the mean value of 21935.5, and the original image (image on the right) shows the mean value of 1447.5.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The following is the excerpt of my java source code.</p>
<p class="MsoNormal">vtkExtendedImageResliceMapper extends vtkImageResliceMapper just to return ImageReslice, as there is no such public method.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">---- initialization</p>
<p class="MsoNormal"> vtkExtendedImageResliceMapper planeMapper = new vtkExtendedImageResliceMapper();</p>
<p class="MsoNormal"> planeMapper.SetInputData(imageData);</p>
<p class="MsoNormal"> planeMapper.SliceFacesCameraOn();</p>
<p class="MsoNormal"> planeMapper.SliceAtFocalPointOn();</p>
<p class="MsoNormal"> planeMapper.BorderOff();</p>
<p class="MsoNormal"> planeMapper.SetSlabTypeToMean();</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">---- after reslice</p>
<p class="MsoNormal"> // Get the image re-slice</p>
<p class="MsoNormal"> vtkImageReslice imageReslice = planeMapper.GetImageReslice();</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> // Get the image data</p>
<p class="MsoNormal"> vtkImageData reslicedImageData = imageReslice.GetOutput();</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> // Get the data array</p>
<p class="MsoNormal"> vtkDataArray dataArray = reslicedImageData.GetPointData().GetScalars();</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> // Get the data</p>
<p class="MsoNormal"> float[] image = null;</p>
<p class="MsoNormal"> if (dataArray instanceof vtkFloatArray) {</p>
<p class="MsoNormal"> vtkFloatArray floatArray = (vtkFloatArray) dataArray;</p>
<p class="MsoNormal"> image = floatArray.GetJavaArray();</p>
<p class="MsoNormal"> }</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">My environtment:</p>
<p class="MsoNormal">VTK 7.0.0</p>
<p class="MsoNormal">CMake 3.1.1</p>
<p class="MsoNormal">Visual Studio Professional 2013</p>
<p class="MsoNormal">Eclipse Luna 4.4.1 (for my java application)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I would appreciate any advice.</p>
<p class="MsoNormal">Thank you,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Kenji</p>
<p class="MsoNormal"><span style="color:#222222"> </span></p>
<p class="MsoNormal"><span style="color:black">“The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete
the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.</span><span style="color:#222222"></span></p>
<p class="MsoNormal"> </p>
</div>
Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified
that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy
of it from your computer system. If you have any questions concerning this message, please contact the sender.
</body>
</html>