Hi,

I try to apply a transferfunction. I want to map my gray value image to colors. 
I tried:

        vtkLookupTable *vtkLUT = vtkLookupTable::New();
        vtkLUT->SetTableRange(image->GetScalarValueMin(), 
image->GetScalarValueMax());
        vtkLUT->SetHueRange(0.5,0.0);
        vtkLUT->SetNumberOfColors(64);
        vtkLUT->Build();

        mitk::LookupTable::Pointer mitkLUT = mitk::LookupTable::New();
        mitkLUT->SetVtkLookupTable(vtkLUT);
        mitkLUT->ChangeOpacityForAll(0.5);
        mitkLUT->Update();

        mitk::LookupTableProperty::Pointer mitkLUTProperty = 
mitk::LookupTableProperty::New(mitkLUT);

       activationNode->SetProperty("LookupTable", mitkLUTProperty);
       activationNode->SetData(image);
       activationNode->Update();

But all I see is still the gray value image. Can anyone tell me what's wrong?

Regards,
Claudia 

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to