This probably simple question but it puzzled me for a few days
I have been trying to use patient specific data in my model and after obtain landmark co-ornidates which from primary test by substitute into Scaling topic tutorial 3 (just one bone morphing). I receive the error say
" ‘Points1’ : Index [1] out of range for ‘AnyFloat[1][3]’"
what could be the problem
I have following code;
…
AnyInputFile LL =
{
FileName = “PatientData/H”+Main.PatientData.PatientName+"_left_N.txt";
};
// trochanter major
AnyFloat GT = Scale * {
{-CTResolutionX * LL.Data[1][1], CTResolutionY * LL.Data[0][1], CTResolutionZ * LL.Data[2][1]}
};
// trochanter minor
AnyFloat LT = Scale * {
{-CTResolutionX * LL.Data[1][2], CTResolutionY * LL.Data[0][2], CTResolutionZ * LL.Data[2][2]}
};
// M. Gastrocnemius lateralis and medialis
AnyFloat GASTRL = Scale * {
{-CTResolutionX * LL.Data[1][3], CTResolutionY * LL.Data[0][3], CTResolutionZ * LL.Data[2][3]}
};
AnyFloat GASTRM = Scale * {{-CTResolutionX * LL.Data[1][4], CTResolutionY * LL.Data[0][4], CTResolutionZ * LL.Data[2][4]}
};
// Epicondyles
AnyFloat EPIL= Scale * {{-CTResolutionX * LL.Data[1][5], CTResolutionY * LL.Data[0][5], CTResolutionZ * LL.Data[2][5]}
};
AnyFloat EPIM = Scale * {{-CTResolutionX * LL.Data[1][6], CTResolutionY * LL.Data[0][6], CTResolutionZ * LL.Data[2][6]} };
…
AnyFunTransform3DLin2 GeometryTransformLin =
{
// Target points from patient specific data
Points1 =
{
// trochanter major
{.GT[0], .GT[1], .GT[2]},
// trochanter minor
{.LT[0], .LT[1], .LT[2]},
// M. Gastrocnemius lateralis and medialis
{.GASTRL[0], .GASTRL[1], .GASTRL[2]},
{.GASTRM[0], .GASTRM[1], .GASTRM[2]},
// Epicondyles lateralis and medialis
{.EPIL[0], .EPIL[1], .EPIL[2]},
{.EPIM[0], .EPIM[1], .EPIM[2]}
};
Thank you in advance for helping me out