Hi Claudia and Caspar,
 
indeed it doesn´t work although I used the commands recommended by Caspar. 
Therefore I would be glad if the bug can be fixed.
 
Regards,
Sandra  


Dipl.-Inf. (FH) Sandra Scherer, Master en Multimédia
Fraunhofer Institut für Werkzeugmaschinen und Umformtechnik
Akustik und Diagnostik
Hauptabteilung Mechatronik und Leichtbau
Nöthnitzer Str. 44
01187 Dresden 

Telefon: +49 (0)351 / 4772 2340
Telefax: +49 (0)351 / 4772 2303
http://www.iwu.fraunhofer.de/ 


 

________________________________

Von: Claudia Hänel [mailto:[email protected]] 
Gesendet: Dienstag, 10. Mai 2011 15:47
An: Goch, Caspar Jonas
Cc: Scherer, Sandra; [email protected]
Betreff: Re: [mitk-users] Using Lookup Table


Hi,

does it now work for you? There's a reported bug: 
http://bugs.mitk.org/show_bug.cgi?id=5862
I would be glad if it is fixed. But so far the mitk::LookupTable won't work for 
me either. If you're interested I can send you a workaround with VTK and ITK.

Regards,
Claudia

Zitat von "Goch, Caspar Jonas" <[email protected]>:

> Hi Sandra,
>
> you need to set the "use color" property to false. Additionally you 
> should get a vtk error, as your number of table values and the actual 
> number of colors in your table is mismatched.
>
> If you add
>
> nodeIntima->SetBoolProperty("use color", false);
>
> and
>
> vtkLUT->SetNumberOfTableValues( 3 );
>
> it should work.
>
> Hope this helps.
>
> Regards,
> Caspar
>
> -----Ursprüngliche Nachricht-----
> Von: Scherer, Sandra [mailto:[email protected]]
> Gesendet: Montag, 2. Mai 2011 16:40
> An: [email protected]
> Betreff: [mitk-users] Using Lookup Table
>
> Hi all,
>
> I try to use a defined lookup table for one special node with the
> following code:
>
> vtkLookupTable *vtkLUT = vtkLookupTable::New();
>     vtkLUT->SetNumberOfTableValues( 2 );
>     vtkLUT->SetRange(0.0, 1.0);
>     vtkLUT->SetTableValue( 0, 1.0, 0.0, 0.0, 1);
>     vtkLUT->SetTableValue( 1, 0.0, 1.0, 0.0, 1 );
>     vtkLUT->SetTableValue( 2, 0.0, 0.0, 1.0, 1 );
>     vtkLUT->Build();
>
> mitk::LookupTable::Pointer mitkLookupTable = mitk::LookupTable::New();
> mitkLookupTable->SetVtkLookupTable(vtkLUT);
> mitk::LookupTableProperty::Pointer LookupTableProp =
> mitk::LookupTableProperty::New( mitkLookupTable );
>
> nodeIntima->SetProperty( "LookupTable", LookupTableProp );
> nodeIntima->Update();
>
> Unfortunately not the defined colors are used. There are colors...has
> mitk Lookup Table defined default colors?
>
> Maybe one can help me.
>
> Thanks.
>
> Regards,
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users
>

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to