<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Batang;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@Batang";
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@Malgun Gothic";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Arial","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Hi Yusuf ÖZBEK,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Thank you for your help! Under your suggestion, I solved my problem.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'>Xiaopeng Yang<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'>发件人</span></b><b><span style='font-size:10.0pt;font-family:SimSun'>:</span></b><span style='font-size:10.0pt;font-family:SimSun'> Yusuf OEZBEK [mailto:nasil122002@yahoo.de] <br><b><span lang=ZH-CN>发送时间</span>:</b> 2010</span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>년</span><span style='font-size:10.0pt;font-family:SimSun'> 12</span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>월</span><span style='font-size:10.0pt;font-family:SimSun'> 16</span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>일</span><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'> </span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>목요일</span><span lang=ZH-CN style='font-size:10.0pt;font-family:SimSun'> </span><span lang=ZH-CN style='font-size:10.0pt;font-family:"Batang","serif"'>오전</span><span style='font-size:10.0pt;font-family:SimSun'> 6:15<br><b><span lang=ZH-CN>收件人</span>:</b> ITK Mailinglist<br><b><span lang=ZH-CN>抄送</span>:</b> Xiaopeng Yang<br><b><span lang=ZH-CN>主题</span>:</b> RE: [Insight-users] 2D CT image visualization problem<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p><o:p>&nbsp;</o:p></p><p>Hello Yang,<o:p></o:p></p><p><o:p>&nbsp;</o:p></p><p><o:p>&nbsp;</o:p></p><p>I send you a example. Look at vtkLookupTable (SetTableRange()) for the change of threshold or Hounsfield units.&nbsp;<o:p></o:p></p><p><o:p>&nbsp;</o:p></p><p><o:p>&nbsp;</o:p></p><p>//Display 2D-CT-Data (Axial)<o:p></o:p></p><p><o:p>&nbsp;</o:p></p><p>this-&gt;displayImageAxial-&gt;show(); &nbsp;//FLTK Box<br>this-&gt;displayImageAxial-&gt;redraw();<o:p></o:p></p><p><o:p>&nbsp;</o:p></p><p style='margin-bottom:12.0pt'>vtkInteractorStyleTrackballCamera* modeAxial = vtkInteractorStyleTrackballCamera::New();<br><br>vtkRenderer* rendererAxial = vtkRenderer::New();<br><br>renderWindowAxial* renderWindowAxial = vtkRenderWindow::New();<br>renderWindowAxial-&gt;AddRenderer(rendererAxial);<br><br>displayImageAxial-&gt;SetRenderWindow(renderWindowAxial);<br>displayImageAxial-&gt;SetInteractorStyle(modeAxial);<br>displayImageAxial-&gt;Initialize();<br><br><br>vtkLookupTable* hueLut = vtkLookupTable::New();<br>&nbsp; hueLut-&gt;SetTableRange (-250,1200); // -250= L &nbsp;1200= W &nbsp;(<a href="http://en.wikipedia.org/wiki/Hounsfield_scale" target="_blank">http://en.wikipedia.org/wiki/Hounsfield_scale</a>)<br>hueLut-&gt;SetSaturationRange (0, 0);<br>hueLut-&gt;SetHueRange (0, 0);<br>hueLut-&gt;SetValueRange (0, 2);<br>hueLut-&gt;Build(); //effective built<br><br>vtkImageMapToColors *colorsAxial = vtkImageMapToColors::New();<br>colorsAxial-&gt;SetInput(reader2D-&gt;GetOutput());<br>colorsAxial-&gt;SetLookupTable(hueLut);<br><br>vtkImageActor* actorAxial = vtkImageActor::New();<br>actorAxial-&gt;SetInput(colorsAxial-&gt;GetOutput());<br>actorAxial-&gt;SetOpacity(1.0);<br>actorAxial-&gt;SetDisplayExtent(0,reader2D-&gt;GetWidth()-1 , 0,reader2D-&gt;GetHeight()-1, numberOfFilesOnSelectedFolder/2,numberOfFilesOnSelectedFolder/2); //0,511, 0,511, 100, 100<br>&nbsp;<br><br>vtkCamera* cameraAxial = vtkCamera::New();<br>cameraAxial-&gt;SetViewUp(0, 0, -1);<br>cameraAxial-&gt;SetPosition(0, 1, 0);<br>cameraAxial-&gt;SetFocalPoint(0, 0, 0);<br>cameraAxial-&gt;ComputeViewPlaneNormal(); <br>cameraAxial-&gt;Roll(90);<br>cameraAxial-&gt;Azimuth(90);<br>cameraAxial-&gt;Roll(-90);<br><br>&nbsp;<br>rendererAxial-&gt;AddActor(actorAxial);<br>rendererAxial-&gt;SetActiveCamera(cameraAxial);<br>rendererAxial-&gt;ResetCamera();<br>cameraAxial-&gt;Dolly(1.0);<br>rendererAxial-&gt;ResetCameraClippingRange();<o:p></o:p></p><p><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><p class=MsoNormal>Mit freundlichen Grüßen<br>Yusuf ÖZBEK<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><o:p>&nbsp;</o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><hr size=1 width="100%" align=center></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Xiaopeng Yang &lt;yxp233@postech.ac.kr&gt;<br><b>An:</b> vtkusers@vtk.org; insight-users@itk.org<br><b>Gesendet:</b> Mittwoch, den 15. Dezember 2010, 13:04:51 Uhr<br><b>Betreff:</b> [Insight-users] 2D CT image visualization problem</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p><div><p class=MsoNormal>Hello everyone,<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>I applied VTKimageViewer2 to visualize 2D CT images. And I succeeded. Furthermore, I would like to only show the pixels within a given gray scale threshold interval. But I have no idea how to do it. I would appreciate any help.<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>Thank you very much,<o:p></o:p></p><p class=MsoNormal>Xiaopeng<o:p></o:p></p></div></div></div></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p></div></body></html>