Hi Julian,

you are right a visualization of vector fields is possible but currently 
somewhat hidden.

You can find the needed code for vector field visualization in the 
MatchPointRegistration modul.

It is done by the mapper classes MITKRegistrationWrapperMapper2D and 
MITKRegistrationWrapperMapper3D.

Those classes visualize instances of mitk::MAPRegistrationWrapper.
mitk::MAPRegistrationWrapper is basically a wrapper around itk::Transforms with 
a lot of higher level functionality.
So if you have an itk::Transform (this would also work with an itk::Image with 
vectors as there is an itk transform wrapper for that), you could pack it into 
a MatchPoint registration instance.

The very heart of the glyph field generation can be found in mitk:: 
Generate3DDeformationGlyph(...) 
(../Modules/MatchPointRegistration/src/Rendering/mitkRegVisHelper.cpp). Here, 
based on a passed transform and a given geometry, the glyph field is 
constructed.

How you alter/change the visualization is demonstrated in the plugin 
org.mitk.ui.qt.matchpoint.visualizer.

Hope that helps a bit.

Best,
Ralf 

----------------------------------
Message: 2
Date: Thu, 8 Apr 2021 13:32:40 +0200
From: Julian Kuhm <julian.k...@med.uni-giessen.de>
To: mitk-users@lists.sourceforge.net
Subject: [mitk-users] mitk project vector field visualization
Message-ID: <de59da6a-f830-cf4f-7431-57c03046d...@med.uni-giessen.de>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi everyone,

When I look at your project site and specifically inspect the image
here: 
https://www.mitk.org/w/images/thumb/3/34/Projects%24Lung.png/225px-Projects%24Lung.png

I can see you are working on a project (dynamic analysis of respiratory
movement) to visualize lung motion with a quiver overlay. Is this functionality 
of depicting motion vector fields somewhere available? Do you offer the mapper 
for the visualization of the vectors?

Best regards,

Julian




------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------

End of mitk-users Digest, Vol 179, Issue 4
******************************************

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to