Explanation of principal axis and principal moments

Dear all,

I am writing a blog post for biologists about different measurements including the ones provided by simpleITK and have problems to understand the measurements for principal axis and principal moments. I know that they are somehow used to compute a matrix, so are they maybe used to compute another measurement?

If so, could you please point me to these measurements and the formulas needed to compute them?

My aim is to explain these measurements in a way that it easy to understand.

Thank you in advance!

Best,
Mara

Principal moments and principal axis code seems to be here:

Some principal moments calculation is also here.

1 Like

Hi @dzenanz,

Thanks for the hint. It would be super cool if you or somebody else could explain this code to me as I have a hard time understanding it. I am interested in:

  • What are principal moments and axis?
  • When are these measurements of interest?
  • Are they maybe used to compute other measurement?

Best,
Mara

Hi @marabuuu, who is interested in writing the blog post? I suggest you ask ChatGPT those questions, I am sure it can guide you!

Best,
Pablo

There are two or three papers in the Insight Journal which describe the original implementation here is one of them:
https://www.insight-journal.org/browse/publication/176

I can’t seem to find the others at the moment.

Here is some additional code documentation about the computation:

There are a couple aspects of what is implemented in ITK that makes it more complicated than basic index based moment calculations. First the computation take into considerations the image’s geometry which includes the pixel spaces and the direction cosine matrix. Second, it is optimized for the run-length encoding that the LabelObject used to store each label.

If you want to explain the computation is an easy way, the above optimization and spacial awareness should be omitted. And the wikipedia use for the standard index based computations as a reference.

4 Likes