<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hey guys
<br>
<br>
I have some trouble displaying a 3D Image (multipaged tif) via VTK.
My Setup:
<br>
<br>
grayscale image (520x520x47)
<br>
Single slice (1 to 47) is an image (520x520)
<br>
the minimum of this 3d image is 865, the maximum 16288<br>
<br>
reading via ITK works great, I can even display 2D images using the
ImageToVTKImageFilter
<br>
<br>
Now the problem:
<br>
<br>
I tried to connect the ITK image with VTK to visualize the image. I
use the ImageToVTKImageFilter to connect ITK with VTK. Displaying 2D
images (a single slice of the whole image) works, but i dont know
how to display the 3D volume.
<br>
<br>
For reference, I tried to change these examples to work with the
connector type:
<br>
<a class="moz-txt-link-freetext"
href="http://itk.org/Wiki/ITK/Examples/ImageProcessing/MinimumMaximumImageCalculator">http://itk.org/Wiki/ITK/Examples/ImageProcessing/MinimumMaximumImageCalculator</a>
<br>
<a class="moz-txt-link-freetext"
href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImagePlaneWidget">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImagePlaneWidget</a><br>
<br>
Unfortunately, all I get is a empty render window.<br>
<br>
Here's my code: <br>
<a class="moz-txt-link-freetext" href="http://pastebin.com/p2YyUirp">http://pastebin.com/p2YyUirp</a><br>
<br>
If I remove <span style="color: rgb(0, 0, 0); font-family:
Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono',
'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: 21px;
orphans: auto; text-align: left; text-indent: 0px; text-transform:
none; white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important; float:
none; background-color: rgb(255, 255, 255);">planeWidget</span><span
class="sy2" style="color: rgb(0, 0, 64); font-family: Consolas,
Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">-</span><span class="sy1"
style="color: rgb(0, 0, 128); font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono',
'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">></span><span style="color:
rgb(0, 0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida
Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera
Sans Mono', monospace, serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 21px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">SetInputData</span><span
class="br0" style="color: rgb(0, 128, 0); font-family: Consolas,
Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">(</span><span style="color:
rgb(0, 0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida
Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera
Sans Mono', monospace, serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 21px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">con</span><span
class="sy2" style="color: rgb(0, 0, 64); font-family: Consolas,
Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">-</span><span class="sy1"
style="color: rgb(0, 0, 128); font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono',
'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">></span><span style="color:
rgb(0, 0, 0); font-family: Consolas, Menlo, Monaco, 'Lucida
Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera
Sans Mono', monospace, serif; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: 21px; orphans: auto; text-align: left; text-indent:
0px; text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">GetOutput</span><span
class="br0" style="color: rgb(0, 128, 0); font-family: Consolas,
Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans
Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size:
12px; font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">(</span><span class="br0"
style="color: rgb(0, 128, 0); font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono',
'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">)</span><span class="br0"
style="color: rgb(0, 128, 0); font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono',
'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">)</span><span class="sy4"
style="color: rgb(0, 128, 128); font-family: Consolas, Menlo,
Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono',
'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 21px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">;</span><br>
from line 36, line 50 throws errors, so that a single empty window
is displayed.<br>
<br>
I tried working with three image planes, but that did not change
that much:<br>
<a class="moz-txt-link-freetext" href="http://pastebin.com/Sz6Etfu4">http://pastebin.com/Sz6Etfu4</a><br>
<br>
I get the data, if I'm using the 3 planes, but I hoped, that there
will be some type of visible shape - compared to MATLAB's imshow for
3D images.<br>
<br>
I hope that you can help me.<br>
<br>
Regards<br>
Imre<br>
</body>
</html>