Hi everyone,<br><br>I just wanted to create a new post for my ongoing problem and wondering if someone can help me here.<br><br>I need to use the vtkImageMapToWindowLevelColors filter and I am trying to create a look up table
<br><br>I am trying to create a LUT so that I can use it with this filter. My image has intensities between 0 and 20000 and it is a grayscale medical image.<br><br>Now, I am playing around with this vtkLookupTable and am unable to create one that I can use with the vtkImageBlendFilter.
<br><br>So, if I create the table as follows:<br><br>vtkLookupTable * lut = vtkLookupTable::New();<br>lut->SetTableRange (0, 20000);<br>lut->SetSaturationRange (0, 0);<br>lut->SetHueRange (0, 0);<br>lut->SetValueRange (0, 1);
<br>lut->Build(); //effective built<br><br>and then use the vtkImageMapToWindowLevelColors filter<br><br>iwlc->SetLookupTable(lut);<br>iwlc->SetInput(myImageData);<br><br>Now when I pipe the output of this filter to the vtkImageBlend filter, I get the following error:
<br><br>vtkImageBlend (0xa80e80): input has too many components, can't blend RGB data into greyscale data<br><br>I would be really grateful if someone could help me with this. <br><br>Thanks,<br>Luca<br><br>