Hello Charlie,
One thing you could do is to define your own lookup table for your data node.
This code called from your view should do that:
vtkLookupTable* lut = vtkLookupTable::New();
lut->SetTableRange(min, max);
lut->SetNumberOfColors(1024);
lut->SetHueRange(0.4,0.0);
lut->Build();
mitk::LookupTable::Pointer mitkLut = mitk::LookupTable::New();
mitkLut->SetVtkLookupTable(lut);
mitk::LookupTableProperty::Pointer mitkLutProp =
mitk::LookupTableProperty::New(mitkLut);
mitk::DataNode::Pointer node = mitk::DataNode::New();
node ->SetProperty( "LookupTable", mitkLutProp);
node ->SetBoolProperty("use color", false);
node ->SetBoolProperty("scalar visibility", true);
node ->SetFloatProperty("ScalarsRangeMaximum", max);
node ->SetFloatProperty("ScalarsRangeMinimum", min);
node ->SetData(myData);
node ->SetName("myDataName");
node ->Update();
this->GetDataStorage()->Add(node);
The lookup table needs to be adapted to your needs. The VTK documentation holds
some good examples for different kinds of lut's.
Best regards
Sven
-----Ursprüngliche Nachricht-----
Von: Debus, Charlotte [mailto:[email protected]]
Gesendet: Freitag, 16. August 2013 10:06
An: [email protected]
Betreff: [mitk-users] PET Data in MITK
Hey everyone,
I was trying to load some Patient PET data in MITK. It works fine with dicom
files, however the display of the intensity is rather bad. It seems to me, the
problem is the Look-Up Table for the data points, as they are interpreted as HU
values/Grey values. Is there already a solution for that, or a way that i can
easily change that. It would be very helpful.
Cheers Charlie
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users