Error computing Curved Multi-Planar Reformation (CMPR)

189 views
Skip to first unread message

carlos.alberto.bulant

unread,
Sep 10, 2020, 11:50:37 PM9/10/20
to vmtk-users
Hi all,
First of all, I would like to thank vmtk-developers for such a useful toolkit, I've been using it for several years now, and it is great! Allways from the command line, and recently from within python scripts.

I've trying to compute the Curved Multi-Planar Reformation (CMPR) of an image from a centerline, without success (from the command line nor my python script).

I get the folloing error when executing the vmtk.vtkvmtk.vtkvmtkCurvedMPRImageFilter (from my script) or vmtkimagecurvedmpr (from the terminal)

ERROR: In ../Common/DataModel/vtkImageData.cxx, line 1324
vtkImageData (0x202ede0): No Scalar Field has been specified - assuming 1 component!

I have been browsing the mailing list, and I found this thread. So I downloaded the data-sets and use the script indicated by Luca, but I get the same error.

I would appreciate any help.
Best regards,
Carlos

PS: I am running Ubuntu 20.04.1 LTS, with miniconda. My environment was created as follows:
conda install anaconda-client
conda update conda anaconda-client
conda config --set restore_free_channel true
conda create -n ccta-segmentation python=3.6
conda activate ccta-segmentation
conda install -c anaconda vtk=8.1.0
conda install -c vmtk vmtk  
conda install -c simpleitk simpleitk
conda install -c conda-forge scipy
conda install -c conda-forge scikit-learn



carlos.alberto.bulant

unread,
Sep 16, 2020, 7:43:17 PM9/16/20
to vmtk-users
Hello everybody,
Thanks to, Camila García, that pointed me in the right direction!
I have been doing some digging on the subject and seems that there are other users struggling with vtkvmtkCurvedMPRImageFilter.

Some previous emails in the group are: 

But the key here was this issue on the vmtk github.
As commented by Kohit, there is a missing scalars allocation for VTK_MAJOR_VERSION >7, near line 343 of the vtkVmtk/Misc/vtkvmtkCurvedMPRImageFilter.cxx file.

So adding the allocation on line 343 and re-compiling VMTK worked for me.
It would be nice if vmtk developers could made this fix available for the conda installation. But for now, I just created a new conda environment and compiled vmtk on it.

Best regards, and thank you again for the great work!
Carlos

lu yee

unread,
Nov 30, 2020, 12:51:32 AM11/30/20
to vmtk-users
Hi.I have little experience about how to complie vmtk development version. Can you tell me how to  create a new conda environment and compiled vmtk on it ?

Thank you in advance.

andra...@gmail.com

unread,
Dec 12, 2020, 12:51:09 PM12/12/20
to vmtk-...@googlegroups.com

Please post your question to the VMTK forum at

https://discourse.slicer.org/c/community/vmtk

 

Thank you,

Andras

--
You received this message because you are subscribed to the Google Groups "vmtk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vmtk-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vmtk-users/de16f64b-446e-4c04-9639-cd2aa5c92df6n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages