<div dir="ltr"><div><div>To increase brightness, you simply increase the brightness of the color you are using.  (Increase the RGB components).  To increase contrast, you should use a brighter value at one end of the color scale and a darker one at the other.  However, due to the blending that happens with transparency, volume rendering is going to lose a lot of the contrast unless you remove the transparency.<br>
<br></div>You may want to switch to use HSV colors.  If you want to use greyscale, set the saturation (S) component to 0, and then the brightness is controlled by the value (V) component.<br><br></div><div>I hope this helps,<br>
<br></div><div>Shawn<br></div><div><br></div>Please reply to all (or at least vtkusers) so that others have the opportunity to help too.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 9:42 AM, ljp19890525 <span dir="ltr">&lt;<a href="mailto:ljp19890525@163.com" target="_blank">ljp19890525@163.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>





<div style="MARGIN:0px">
<table style="PADDING-BOTTOM:10px;PADDING-LEFT:10px;PADDING-RIGHT:10px;PADDING-TOP:10px" background="cid:_Foxmail.0@27907FB3-9015-432F-ACFF-7759E01C7029" border="0" cellpadding="0" cellspacing="0" height="100%" width="99.99%">

  <tbody>
  <tr>
    <td style="LINE-HEIGHT:160%;WIDTH:100%;min-height:100%;FONT-SIZE:10.5pt" valign="top">
      <div>I have set the RGB  components  of 
      vtkColorTransferFunction  to be the same,So it looks like grey 
      images. I want to enhance the brightness and contrast. So What 
      should I do next?</div>
      <div>Thanks a lot!</div>
      <div>
      <hr style="WIDTH:210px;min-height:1px" align="left" color="#b5c4df" size="1">
      </div>
      <div><span>ljp19890525</span></div>
      <div> </div>
      <div style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0cm;PADDING-LEFT:0cm;PADDING-RIGHT:0cm;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
      <div style="padding-right:8px;padding-left:8px;padding-top:8px;font-size:12px;background:#efefef;padding-bottom:8px">
      <div><b>From:</b> <a href="mailto:swaldon@cs.unc.edu" target="_blank">Shawn 
      Waldon</a></div>
      <div><b>Date:</b> <a href="tel:2013-06-06%C2%A021" value="+12013060621" target="_blank">2013-06-06 21</a>:29</div>
      <div><b>To:</b> <a href="mailto:ljp19890525@163.com" target="_blank">ljp19890525</a></div>
      <div><b>CC:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a></div>
      <div><b>Subject:</b> Re: [vtkusers] How to adjust the grey level for 
      Volume Rendering</div></div></div><div><div class="h5">
      <div>
      <div>
      <div dir="ltr">
      <div>
      <div>
      <div>
      <div>Which of these do you mean by &quot;grey range&quot;:<br><br></div>The color 
      map and translucency mapping?<br><br></div>Then try looking at: <br><a href="http://www.cmake.org/Wiki/VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper" target="_blank">http://www.cmake.org/Wiki/VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper</a><br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkColorTransferFunction.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkColorTransferFunction.html</a><br><br></div>The 
      background color:<br></div>Use the <a href="http://www.vtk.org/doc/nightly/html/classvtkViewport.html#a85eaf3ee2b0e49423efbaa41de17112d" target="_blank">setBackground()</a> 
      function on your vtkRenderer.<br>
      <div>
      <div><br></div>
      <div>I hope this helps,<br></div>
      <div>Shawn<br></div></div>
      <div class="gmail_extra"><br><br>
      <div class="gmail_quote">On Thu, Jun 6, 2013 at 9:14 AM, ljp19890525 <span dir="ltr">&lt;<a href="mailto:ljp19890525@163.com" target="_blank">ljp19890525@163.com</a>&gt;</span> wrote:<br>
      <blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><u></u>
        <div style="MARGIN:0px">
        <table style="PADDING-BOTTOM:10px;PADDING-LEFT:10px;PADDING-RIGHT:10px;PADDING-TOP:10px" background="cid:_Foxmail.1@13105427-F298-4246-ACAE-3AE4E7ADEA50" border="0" cellpadding="0" cellspacing="0" height="100%" width="99.99%">

          <tbody>
          <tr>
            <td style="LINE-HEIGHT:160%;MIN-HEIGHT:100%;WIDTH:100%;FONT-SIZE:10.5pt" valign="top">
              <div>Hi all,</div>
              <div>I have  done the Volume Rendering,and How to adjust 
              the grey range  for my 
              Volume Rendering?  What should I do next?</div>
              <div>heartfelt gratefulness!</div>
              <hr style="MIN-HEIGHT:1px;WIDTH:210px" align="left" color="#b5c4df" size="1">
              <span><font color="#888888">
              <div><span>ljp19890525</span></div>
              <div></div></font></span></td></tr></tbody></table></div><br>_______________________________________________<br>Powered 
        by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source 
        projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please 
        keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this 
        link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br></blockquote></div><br></div></div></div></div>
      <div></div></div></div></td></tr></tbody></table></div>
</blockquote></div><br></div>