Re: Itk ERROR: All meshes should have the same number of edges and vertices

38 views
Skip to first unread message

Marcel Luethi

unread,
Feb 12, 2019, 2:34:40 PM2/12/19
to Venkatesh Kaduru, statismo
Hi Venkatesh Kaduru,

The error you report is thrown at this line in the code:

The only possibility that this error occurs is that one of the meshes in your directory does not have the same number of vertices or topology as the reference mesh. You may want to check again your data.

Best regards,

Marcel

On Tue, Feb 12, 2019 at 5:56 PM Venkatesh Kaduru <kadur...@gmail.com> wrote:
Hello Members,

I have got an error when building a statistical shape model, Building process through CLI follows:

C:\statismo\bin\Statismo-build\bin\Release>statismo-build-shape-model.exe -l C:\statismo\bin\Statismo-build\bin\data-list.txt -o C:\statismo\bin\Statismo-build\bin\shapemodel.h5
the data-list.txt file is having paths of each mesh file: 

for example: 
C:\statismo\bin\Statismo-build\bin\Obj\CSR0001A.mat.obj
C:\statismo\bin\Statismo-build\bin\Obj\CSR0002A.mat.obj
C:\statismo\bin\Statismo-build\bin\Obj\CSR0007A.mat.obj
C:\statismo\bin\Statismo-build\bin\Obj\CSR0008A.mat.obj
C:\statismo\bin\Statismo-build\bin\Obj\CSR0009A.mat.obj
....
....

"itk::ERROR: All meshes must have the same number of Edges & Vertices", please find the attached image file, also, shows the error message. 
I have 4072 mesh files, each mesh file having 6450 vertices and 12,895 faces. I guess I have the same number of vertices and faces in all the mesh files. It would be appreciated and helpful if someone answers about this.

Thanks,
Venkatesh Kaduru
Technical University Chemnitz
Germany.  

--
You received this message because you are subscribed to the Google Groups "statismo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to statismo-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcel Luethi

unread,
Feb 16, 2019, 3:22:55 AM2/16/19
to Venkatesh Kaduru, statismo
HI Venkatesh,

You are in the lucky situation, that you have a large dataset to learn the shape variations from. This is great and definitely worth the additional time it takes to build the model. Once you have built the model, you may however notice, that almost all variance is concentrated in the leading principal components. If this is the case, you can reduce the number of components in your model using  the tool statismo-reduce-model

Usually it is good enough to use a model which keeps around 99%  of the total variance.

Best regards,

Marcel


On Thu, Feb 14, 2019 at 3:41 PM Venkatesh Kaduru <kadur...@gmail.com> wrote:
Hello Mr. Marcel,

I would like to request you to provide me with some suggestions on the model fitting. I supposed to build the model with a data set contains 4000 mesh files, as the model generation ran nearly a complete day and finally it got killed due to the exceed of memory also the low configuration of my PC. I have generated the model with 500 meshes. So, my question is, when I fit the model with the newly scanned object/template what could be the scenarios. As my model has the maximum PC's (Principle components) so, while fitting will I get any performance issues and will it able to fit successfully, what would you advise or precautions and how will be the later output?

Thanks a lot,
Venkatesh Kaduru  

On Thu, Feb 14, 2019 at 10:00 AM Venkatesh Kaduru <kadur...@gmail.com> wrote:
Hi Marcel,

I have found the one file which is having less number of vertices as reference mesh. Thanks for the support. 

Thanks, 
Venkatesh Kaduru

Sent from my BlackBerry 10 smartphone.
From: Marcel Luethi
Sent: Mittwoch, 13. Februar 2019 20:22
To: Venkatesh Kaduru
Subject: Re: Itk ERROR: All meshes should have the same number of edges and vertices

HI Venkatesh Kaduru,

Unfortunately there is no log. The easiest way to find out what is happening is first to check all the files have the same file size. If not, you might have the problem. If this does not give any result, you could see if it helps if you do a binary search (i.e. take only half the file, see if it still occurs, and continue). If all this does not help you need to write a short test program, which only loads the mesh (using itkMeshFileReader) and prints out the number of vertices/edges.

Best regards,

Marcel

On Tue, Feb 12, 2019 at 11:00 PM Venkatesh Kaduru <kadur...@gmail.com> wrote:
Hi Marcel, 

Thanks for the quick response, I have seen the code snippet from where the error thrown. Is there any way to check the logs for this piece of code to check at which file the error is throwing? Or else I should write a script to check/read the each file for number of vertices by leaving topology aside. 

Thanks,
Venkatesh Kaduru

Sent from my BlackBerry 10 smartphone.
From: Marcel Luethi
Sent: Dienstag, 12. Februar 2019 20:34
To: Venkatesh Kaduru
Cc: statismo
Subject: Re: Itk ERROR: All meshes should have the same number of edges and vertices



--
Thanks & Regards,
Venkatesh Kaduru
Reply all
Reply to author
Forward
0 new messages