vmtkcenterlines: No Scalar Field has been specified

75 views
Skip to first unread message

Konrad Werys

unread,
Oct 13, 2018, 2:16:08 PM10/13/18
to vmtk-users
Hi,

I would like to see a straightened vessel in vmtk. To do it I tried with the sample dataset following commands:

vmtklevelsetsegmentation -ifile Aorta_voi.mha -ofile Aorta_level_sets.vti
vmtkmarchingcubes -ifile Aorta_level_sets.vti -ofile Aorta_level_sets.vtp
vmtkcenterlines -ifile Aorta_level_sets.vtp --pipe vmtkcenterlinegeometry --pipe vmtkcenterlineattributes --pipe vmtkimagecurvedmpr -ifile Aorta_voi.mha

But, when I try to run the last line, I get the error message:

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

I have also saved the center-lines and display them and they look fine.

Please let me know what I am doing wrong.

Kind regards,
Konrad


Luca Antiga

unread,
Nov 12, 2018, 5:34:33 PM11/12/18
to vmtk-users
Hi Konrad,
assuming you still need this to work, I just pushed a fix. You'll have to build vmtk from scratch for the time being.
Best,

Luca

Mojtaba Masoudi

unread,
Feb 26, 2020, 11:24:58 AM2/26/20
to vmtk-users
I got the same error but in different script, my script is:

myargs = 'vmtkcenterlineresampling -length 0.01 -ifile centerline.vtp --pipe vmtkcenterlineattributes' \
' --pipe vmtkcenterlinegeometry --pipe vmtkimagecurvedmpr -ifile data.vti -size 1000 ' \
'-spacing 0.01 -ofile reformat.vti --pipe vmtkimageviewer '
mypype = pypes.PypeRun(myargs)


what is the problem?

Mojtaba Masoudi

unread,
Feb 26, 2020, 11:25:47 AM2/26/20
to vmtk-users
the error is :

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

Valentina Parra

unread,
May 14, 2020, 11:25:32 AM5/14/20
to vmtk-users
Hello.

I am having the same problem. I have also tried  using the data from the previous question https://groups.google.com/forum/#!searchin/vmtk-users/vmtkImageCurvedMPR%7Csort:date/vmtk-users/fugTpK2L_AY/jUhZXYNeCgAJ, however I am still having the same problem:

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

Have you found a way to solve the problem ? Am I missing something (I am using the same script) ?
Any clue will be very helpful.

Best,
Valentina
Reply all
Reply to author
Forward
0 new messages