<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1462879815392_4423" abp="4669"> Hi vtk users.</div><div id="yui_3_16_0_ym19_1_1462879815392_4367" dir="ltr" abp="4669">I have made a DICOM viewer, using vtkDICOMReader, and vtkImageReslice, and </div><div id="yui_3_16_0_ym19_1_1462879815392_4369" dir="ltr" abp="4676">vtkImageMapToColors to add as vtkImageActor. In order to have the original window/level, I didn't setup any vtkLookupTable on vtkImageMapToColors ... and seem to go well, but on runtime, I get a ugly warning:</div><div id="yui_3_16_0_ym19_1_1462879815392_4424" dir="ltr" abp="4677"><br></div><div id="yui_3_16_0_ym19_1_1462879815392_4339" abp="4675">No LookupTable was set but input data is not VTK_UNSIGNED_CHAR, therefore input can't be passed through!</div><div id="yui_3_16_0_ym19_1_1462879815392_4425" abp="4675"><br></div><div id="yui_3_16_0_ym19_1_1462879815392_4426" dir="ltr" abp="4675">My question is, it is OK to give up of lookup table ? And how to setup VTK_UNSIGNED_CHAR at my input image data ?</div><div dir="ltr" abp="4675"><br></div><div id="yui_3_16_0_ym19_1_1462879815392_4516" dir="ltr" abp="4675">I have tried this:</div><div dir="ltr" abp="4675"><br></div><div id="yui_3_16_0_ym19_1_1462879815392_4518">m_pDICOMReader->GetOutput()->AllocateScalars(VTK_UNSIGNED_CHAR, 3);</div><div id="yui_3_16_0_ym19_1_1462879815392_4473" dir="ltr" abp="4675"><br></div><div dir="ltr" abp="4675">Not working .... can you help me, please ?</div><div id="yui_3_16_0_ym19_1_1462879815392_4536" dir="ltr" abp="4675"><br></div><div id="yui_3_16_0_ym19_1_1462879815392_4537" dir="ltr" abp="4675">Flaviu.</div><div id="yui_3_16_0_ym19_1_1462879815392_4427" dir="ltr" abp="4673"><br></div><div id="yui_3_16_0_ym19_1_1462879815392_4472" dir="ltr" abp="4673"><br></div><div id="yui_3_16_0_ym19_1_1462879815392_4356" dir="ltr" abp="4674"><br></div></div></body></html>