<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Scott,<BR>
<BR>
try the attached file and let me know if it works.<BR>
<BR>
Notice that I use my own customized DICOM reader, which does not invert the rows, hence the world x and y coordinate increases from lower left corner to upper right corner on the screen.<BR><BR>Xiaofeng<BR><BR><BR> <BR>
<HR id=stopSpelling>
Date: Tue, 11 May 2010 12:01:15 -0500<BR>From: Scott.Johnson@neuwave.com<BR>To: vtkusers@vtk.org<BR>Subject: [vtkusers] Reslicing issues (Continued)<BR><BR>
<STYLE>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate
{margin-bottom:.0001pt;font-size:8.0pt;font-family:'Tahoma','sans-serif';}
.ExternalClass span.ecxEmailStyle17
{font-family:'Calibri','sans-serif';color:windowtext;}
.ExternalClass span.ecxBalloonTextChar
{font-family:'Tahoma','sans-serif';}
.ExternalClass .ecxMsoChpDefault
{;}
@page Section1
{size:8.5in 11.0in;}
.ExternalClass div.ecxSection1
{page:Section1;}
</STYLE>
<DIV class=ecxSection1>
<P class=ecxMsoNormal>Hi Folks,</P>
<P class=ecxMsoNormal> </P>
<P class=ecxMsoNormal>I officially throw myself on the mercy of the VTK Gods.</P>
<P class=ecxMsoNormal> </P>
<P class=ecxMsoNormal>My platform is VTK 5.4.2 on Windows XP.</P>
<P class=ecxMsoNormal> </P>
<P class=ecxMsoNormal>I’ve been working on this reslice issue off and on for awhile now and am officially stumped. I’ve worked up a piece of code which could eventually be turned into an example for the examples list if desired. I’ll attach the code and a CMakeLists.txt file. If the image data I’ve been using is needed I’ll need somewhere to put it. (It’s 22 MB zipped and not suitable to attach to an email.)</P>
<P class=ecxMsoNormal> </P>
<P class=ecxMsoNormal>The application is attempting to display resliced image data and an intersection with a polygonal shape. The Axial view works fine, but the other views don’t show the sliced sphere in the proper location. They do show up on the proper slice, but not in the proper XY location in the viewport. I seem to be running into a fundamental problem when converting between the original image coordinate system and the resliced coordinate system.</P>
<P class=ecxMsoNormal> </P>
<P class=ecxMsoNormal>The attached code is annotated with ‘PROBLEM’ in the comments which is outlining the problems I’ve been running into. I’ll chalk this up to a learning experience which builds character.</P>
<P class=ecxMsoNormal> </P>
<P class=ecxMsoNormal>Any help is appreciated. Thanks</P>
<P class=ecxMsoNormal> </P>
<P class=ecxMsoNormal> -- Scott</P>
<P class=ecxMsoNormal> </P></DIV>                                            <br /><hr />Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2' target='_new'>See how.</a></body>
</html>