I wonder if there is a simple way to determine if a transform node is identity or not. The reason why it is not trivial is that such a node can contain a linear transform in which case it is simple, but can also contain various types of deformable transforms, in which case it is not trivial.
So for example if there is a method already existing for this, then I’d appreciate if someone could point it out.
An idea that I have for checking it for deformable transforms is seeing whether the transform and its inverse are the same, but it might take too long for a simple check (in my case it is for determining whether a button should be enabled or not).