open-vv / vv

A Fast And Simple 4D Image Viewer
Other
73 stars 23 forks source link

viewing in x-t plane. (or y-t, or z-t) #14

Open tbaudier opened 7 years ago

tbaudier commented 7 years ago

Hi Developers, thanks for this great tool. I have a feature request: visualisation in the x-t plane (or y-t, or z-t). In such a plane you can see the motion over time at once, by observing how straight the edges are. This article contains some examples: http://www.bigr.nl/files/publications/613_Metz2010MEDIA.pdf I hope I explain it clear enough. Perhaps it’s already possible, but I didn’t find it. Kind regards, Stefan

tbaudier commented 7 years ago

It depends on your image dimensionality. If it’s 2D+t, you can always open it as a 3D image using the 'File’ menu options. If it’s a 4D image (which is what you suggest with zt slice), it’s actually not easy because a sequence is a list of images since VTK does not manage 4D images. We could add a tool to rearrange data by flipping two axes (at opening or at some point) but we’ll have to reflect on the best way to do that...

In the mean time, you can always do it command line by activating the cmake option CLITK_BUILD_TOOLS. There is a tool called clitkAffineTransfo... I tried to create the following matrix.txt file: 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1

Then call: clitkAffineTransform --transform_grid --interp 0 -m matrix.txt -i input.mha -o output.mha

Opening output.mha contains what you want...