IndexError: index 3 is out of bounds for dimension 1 with size 2
Zicheng Zhu Jul 30, 2021, 8:13:15 PM (2 days ago) to Deformetrica Hello,
I tried to run the examples/atlas/landmark/3d/brain_structures
command: "deformetrica estimate model.xml data_set.xml -p optimization_parameters.xml"
problem:
self.centers, self.normals = SurfaceMesh._get_centers_and_normals(
File "/Users/Ricky/opt/anaconda3/lib/python3.8/site-packages/deformetrica/core/observations/deformable_objects/landmarks/surface_mesh.py", line 61, in _get_centers_and_normals
c = points[triangles[:, 3]]
IndexError: index 3 is out of bounds for dimension 1 with size 3.
When I run 2d example, it was fine.
data_set.xml:
Data/mc115L0214.vtk Data/tpm15L0214.vtk Data/mc115L0222.vtk Data/tpm15L0222.vtkmodel.xml:
DeterministicAtlas 2<template>
<object id="NR-00-1-AP">
<deformable-object-type>SurfaceMesh</deformable-object-type>
<attachment-type>Varifold</attachment-type>
<noise-std>1</noise-std>
<kernel-width>3</kernel-width>
<kernel-type>keops</kernel-type>
<filename>Data/FM_template-AP.vtk</filename>
</object>
<object id="NR-00-1-AP">
<deformable-object-type>SurfaceMesh</deformable-object-type>
<attachment-type>Varifold</attachment-type>
<noise-std>1</noise-std>
<kernel-width>3</kernel-width>
<kernel-type>keops</kernel-type>
<filename>Data/TPM_template-AP.vtk</filename>
</object>
</template>
<deformation-parameters>
<kernel-width>4</kernel-width>
<kernel-type>keops</kernel-type>
<number-of-timepoints>10</number-of-timepoints>
</deformation-parameters>
optimization_parameters:
GradientAscent