<div dir="ltr">I&#39;m sorry. I think you missed my point. If you provide a complete, cut-able, compilable and runnable example that illustrates your problem, then it makes it easy for us to reproduce and possibly solve your problem.<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 25, 2013 at 4:27 PM, chasank <span dir="ltr">&lt;<a href="mailto:chasank@gmail.com" target="_blank">chasank@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Include files;<br>
<br>
#include &lt;iostream&gt;<br>
#include &lt;sstream&gt;<br>
<br>
#include &lt;itkImage.h&gt;<br>
#include &lt;itkImageFileReader.h&gt;<br>
#include &lt;itkNiftiImageIO.h&gt;<br>
#include &lt;itkImageToVTKImageFilter.h&gt;<br>
<br>
#include &lt;vtkImageData.h&gt;<br>
#include &lt;vtkSmartPointer.h&gt;<br>
#include &lt;vtkLookupTable.h&gt;<br>
#include &lt;vtkScalarBarActor.h&gt;<br>
#include &lt;vtkRenderer.h&gt;<br>
#include &lt;vtkRenderWindow.h&gt;<br>
#include &lt;vtkRenderWindowInteractor.h&gt;<br>
#include &lt;vtkInteractorStyleImage.h&gt;<br>
#include &lt;vtkImageResliceMapper.h&gt;<br>
#include &lt;vtkImageProperty.h&gt;<br>
#include &lt;vtkMatrix4x4.h&gt;<br>
#include &lt;vtkImageSlice.h&gt;<br>
#include &lt;vtkCamera.h&gt;<br>
#include &lt;vtkCommand.h&gt;<br>
#include &lt;vtkTextProperty.h&gt;<br>
<br>
The grayscale file is a binary file for lookup table. It is not important,<br>
lookup table is built is identical with;<br>
<div class="im"><br>
table = vtkSmartPointer&lt; vtkLookupTable &gt;::New();<br>
</div>table-&gt;SetValueRange(0.0, 1.0);<br>
table-&gt;SetRampToLinear();<br>
table-&gt;SetScaleToLinear();<br>
table-&gt;Build();<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK6-0-label-size-problem-of-vtkScalarBarActor-tp5721585p5721602.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK6-0-label-size-problem-of-vtkScalarBarActor-tp5721585p5721602.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>