Hi,

Editing lookup tables in the application is only possible for vtkUnstrucutredGrid objects right now. I added bug http://bugs.mitk.org/show_bug.cgi?id=12874 which is about creating a generic way to do that.

Look-up tables embedded in the VTK file are completely ignored by MITK (for example if you edited the default look-up table in paraview and saved the data again). And unfortunately a default look-up table is only created by the 2D mapper. The 3D mapper will not display the scalars unless you create a vtkLookupTable instance via code yourself and set it as the "LookupTable" property to the data node.

I summarized these issues in bug http://bugs.mitk.org/show_bug.cgi?id=12873

So if you code in MITK you essentially have to create the vtkLookupTable yourself and set it as property. You can save the loaded data nodes with their properties by saving them in a MITK Scene file. However, that cannot be read by ParaView. To be able to read your custom look-up table in ParaView, you either have to use a vtkDataWriter sub-class directly yourself (and set the look-up table information) or write a "ParaView Color Map" XML file containing your look-up table definition.

Best,
Sascha

On 07/23/2012 09:15 PM, Hila Hiler wrote:
But you can't manualy edit the color map (exaggerate with specific colors) like Paraview let you in RT (it enables you editing the colors and observing the outcome by the preview)

So actually the question is how I can calculate the scalars by MITK (coding by itk,vtk etc) and use Paraview in order to complete the process that MITK can't (in terms of editing colors)...


On Mon, Jul 23, 2012 at 8:52 PM, Clarkson, Matt <[email protected] <mailto:[email protected]>> wrote:

    Hi Hila,

    Have you managed to see any scalars in MITK?
    This can be achieved by setting the property "scalar visibility" = ON.

    Then looking through the code, if you have scalars associated with
    each point, the choice of colour map will affect how they are
    rendered.
    You would set the "LookupTable" property, which is
    a mitkLookupTableProperty containing a VTK lookup table.
    By setting the min and max values of the range of data displayed
    you can have a similar effect to Window/Level for an image.

    Hope that helps.

    Matt



    On 23 Jul 2012, at 14:13, Hila Hiler wrote:

    Hi all,

    my question is very basic. I have a polydata with scalars which I
    calculated by MITK.
    I wasn't satisfied with the colors, so I edited the scalars by
    Paraview.
    Now, in which extension or way should I save the new poly data
    with the updated scalars?

    I tried most of the extensions, but no one presented the updated
    scalars in MITK.

    Please help me ...



    ---------- Forwarded message ----------
    From: *Hila Hiler* <[email protected] <mailto:[email protected]>>
    Date: Sun, Jul 22, 2012 at 10:43 AM
    Subject: Saving scalars of polydata
    To: "<[email protected] <mailto:[email protected]>>"
    <[email protected] <mailto:[email protected]>>,
    [email protected] <mailto:[email protected]>,
    [email protected]
    <mailto:[email protected]>


    Hi All Users,

    I edited the scalars (colors) of my poly data via Paraview.
    In which format/way should I save it in order to see the surface
    with the edited colors in MITK?

    BR,
    Hila

    
------------------------------------------------------------------------------
    Live Security Virtual Conference
    Exclusive live event will cover all the ways today's security and
    threat landscape has changed and how IT managers can respond.
    Discussions
    will include endpoint security, mobile security and the latest in
    malware
    threats.
    
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
    mitk-users mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/mitk-users



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to