<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:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:#000066;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:#000066;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:#000066;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:#000066;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</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 bgcolor=white lang=EN-CA link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>one more thing&#8230;have you tried to configure
the widget&#8217;s<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=FR-CA
style='font-size:10.0pt;font-family:Arial;color:navy'>internal
vtkImageMapToColors?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=FR-CA
style='font-size:10.0pt;font-family:Arial;color:navy'>vtkImageMapToColors* map
= </span></font><span lang=FR-CA>planeWidgetX-&gt;GetColorMap();<o:p></o:p></span></p>

<p class=MsoNormal><font size=3 color="#000066" face="Times New Roman"><span
lang=FR-CA style='font-size:12.0pt'>map-&gt;SetOutputFormatToLuminance()<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color="#000066" face="Times New Roman"><span
lang=FR-CA style='font-size:12.0pt'>etc.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color="#000066" face="Times New Roman"><span
lang=FR-CA style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 color="#000066" face="Times New Roman"><span
lang=FR-CA style='font-size:12.0pt'>Dean</span></font><font size=2 color=navy
face=Arial><span lang=FR-CA style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=FR-CA
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color="#000066"
face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color="#000066"
face="Times New Roman"><span style='font-size:12.0pt'>The bitmaps are RGB
images, but converting to grayscale doesn't change anything. I tried PNG images
and I got the same result. I tried a few different values for opacity after I
last posted to the list and it did have an effect... values smaller than 1.0 made
it even more transparent. I attached an image of what I'm getting with opacity
of 1.0. The ipwProp is setup as below:<br>
<br>
vtkProperty* ipwProp = vtkProperty::New(); <br>
&nbsp;ipwProp-&gt;SetOpacity(1.0); <br>
&nbsp;ipwProp-&gt;ShadingOff();<br>
<br>
&nbsp;planeWidgetX = vtkImagePlaneWidget::New(); <br>
&nbsp;&nbsp; planeWidgetX-&gt;SetInteractor( vtkWindow); <br>
&nbsp;&nbsp; planeWidgetX-&gt;SetKeyPressActivationValue('x'); <br>
&nbsp;&nbsp; planeWidgetX-&gt;SetPicker(picker); <br>
&nbsp;&nbsp; planeWidgetX-&gt;RestrictPlaneToVolumeOn(); <br>
&nbsp;&nbsp; planeWidgetX-&gt;GetTexturePlaneProperty()-&gt;SetOpacity(1.0); <br>
&nbsp;&nbsp; planeWidgetX-&gt;GetPlaneProperty()-&gt;SetColor(1,0,0); <br>
&nbsp;&nbsp; planeWidgetX-&gt;SetTexturePlaneProperty(ipwProp); <br>
&nbsp;&nbsp; planeWidgetX-&gt;TextureInterpolateOn(); <br>
&nbsp;&nbsp; planeWidgetX-&gt;SetResliceInterpolateToLinear(); <br>
&nbsp;&nbsp; planeWidgetX-&gt;SetInput(v16-&gt;GetOutput()); <br>
&nbsp;&nbsp; planeWidgetX-&gt;SetPlaneOrientationToXAxes(); <br>
&nbsp;&nbsp; planeWidgetX-&gt;SetSliceIndex(32); <br>
&nbsp;&nbsp; planeWidgetX-&gt;DisplayTextOn(); <br>
&nbsp;&nbsp; planeWidgetX-&gt;On(); <br>
&nbsp;&nbsp; planeWidgetX-&gt;InteractionOn(); <br>
<br>
I'm wondering if I need to convert the output of the image reader into a
different vtk format?<br>
-Greg<br>
<br>
<br>
<br>
Dean Inglis wrote: <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face=Arial><span style='font-size:10.0pt;font-family:Arial'><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceType"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceName"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PostalCode"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"><u1:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="address"></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType>hi
Greg,<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face=Arial><span style='font-size:10.0pt;font-family:Arial'><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face=Arial><span style='font-size:10.0pt;font-family:Arial'>are your bitmaps
multi- or single component images?<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face=Arial><span style='font-size:10.0pt;font-family:Arial'>How is ipwProp set
up? &nbsp;Does it have its opacity set<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face=Arial><span style='font-size:10.0pt;font-family:Arial'>to some value other
than 1?<u1:p></u1:p></span></font><o:p></o:p></p>

<pre style='margin-left:36.0pt'><font size=2 color="#000066" face="Courier New"><span
style='font-size:10.0pt'>planeWidgetX-&gt;SetTexturePlaneProperty(ipwProp);<u1:p></u1:p><o:p></o:p></span></font></pre>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face=Arial><span style='font-size:10.0pt;font-family:Arial'><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Dean<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face=Arial><span style='font-size:10.0pt;font-family:Arial'><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>Dean
Inglis, PhD<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>~~~~
Center for Appendicular ~~~~~<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>Magnetic
Resonance Imaging Studies<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>610
- <st1:Street u2:st="on"><st1:address u2:st="on"><st1:Street w:st="on"><st1:address
 w:st="on">25 Charlton Ave. E.</st1:address></st1:Street><u1:p></u1:p></st1:address></st1:Street></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><st1:place u2:st="on"><st1:City u2:st="on"><st1:place
w:st="on"><st1:City w:st="on"><font size=2 color="#000066" face="Courier New"><span
  style='font-size:10.0pt;font-family:"Courier New"'>Hamilton</span></font></st1:City><font
 size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'></st1:City>,
 <st1:State u2:st="on"><st1:State w:st="on">Ontario</st1:State></st1:State>, <st1:PostalCode u2:st="on"><st1:PostalCode
 w:st="on">L8N 1Y2</st1:PostalCode></st1:PostalCode></span></font></st1:place></st1:place><o:p></o:p></p>

<u1:p></u1:p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>fax:
(905) 521-1297<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>Assistant
Professor (Adjunct)<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>Department
of Civil Engineering<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><st1:place u2:st="on"><st1:PlaceName u2:st="on"><st1:place
w:st="on"><st1:PlaceName w:st="on"><font size=2 color="#000066"
  face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>McMaster</span></font></st1:PlaceName><font
 size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'></st1:PlaceName>
 <st1:PlaceType u2:st="on"><st1:PlaceType w:st="on">University</st1:PlaceType></st1:PlaceType></span></font></st1:place></st1:place><o:p></o:p></p>

<u1:p></u1:p>

<p class=MsoNormal style='margin-left:36.0pt'><st1:place u2:st="on"><st1:City u2:st="on"><st1:place
w:st="on"><st1:City w:st="on"><font size=2 color="#000066" face="Courier New"><span
  style='font-size:10.0pt;font-family:"Courier New"'>Hamilton</span></font></st1:City><font
 size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'></st1:City>,
 <st1:State u2:st="on"><st1:State w:st="on">Ontario</st1:State></st1:State></span></font></st1:place></st1:place><o:p></o:p></p>

<u1:p></u1:p>

<p class=MsoAutoSig style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></font><u1:p></u1:p><o:p></o:p></p>

<p style='margin-left:36.0pt'><font size=2 color="#000066" face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Software Demos:<u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoAutoSig style='margin-left:36.0pt'><font size=2 color="#000066"
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><a
href="http://www.youtube.com/watch?v=_zYNtHC9-0s" moz-do-not-send=true>http://www.youtube.com/watch?v=_zYNtHC9-0s</a><u1:p></u1:p></span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color="#000066"
face="Times New Roman"><span style='font-size:12.0pt'><u1:p>&nbsp;</u1:p><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:36.0pt'><font size=3 color="#000066"
face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>