Hello,<br>I have the following piece of code:<br><br>m_imagedata = vtkImageData::New()<br>m_actor = vtkImageActor::New();<br>m_colormapper = vtkImageMapToColors::New();<br><br>... setting up pipeline <br><br><br>vtkLookupTable* l_lut = vtkLookupTable::New();<br>
double* l_range = m_imagedata->GetScalarRange();<br> l_lut->SetHueRange(0.9, 0.0);<br> l_lut->SetSaturationRange(0.0, 0.7);<br>
l_lut->SetValueRange(0.0,0.8);<br> l_lut->SetTableRange(l_range[0<div id="1erd" class="ArwC7c ckChnd">], l_range[1]);<br> l_lut->SetNumberOfColors(256);<br> l_lut->Build();<br> m_imagedata->Update();<br>
m_colormapper->SetInput(m_imagedata);<br>
m_colormapper->SetLookupTable(l_lut);<br> m_colormapper->SetOutputFormatToRGBA();<br> m_colormapper->Update();<br> l_lut->Delete();<br><br><br>Here, the origin of the image data (set by SetOrigin())) is NOT 0,0,0<br>
but the image is displayed (otherwise correctly) as if the origin is 0,0,0 .<br><br>What could be the cause for this or is this expected behavoir ?<br><br>Kind regards, Oliver</div>