pysdic.SDICAnalysis.check_consistency#

SDICAnalysis.check_consistency()[source]#

Check that the transformations of the cameras of the analysis are independent of each other.

The transformations are identified by (kind, index) (see get_transformation()), each one owning its own parameters. Two rules are checked:

  1. The sets of the distinct extrinsics \(\mathcal{E}\), distortions \(\mathcal{D}\) and intrinsics \(\mathcal{I}\) (objects compared by identity) are disjoint: an object cannot be used in two roles. The same object can be used by several cameras in the same role (it is one entry).

  2. The leaf transformations of all the entries of \(\mathcal{E} \cup \mathcal{D} \cup \mathcal{I}\) are all distinct. The leaves are found recursively: the transformations of a pysdic.ComposedTransformation, the transformation reparametrized by a pysdic.ReparametrizedTransformation, or the transformation itself otherwise. A leaf used twice, in two entries or twice in the same entry, would couple parameters without declaring them as one unknown (and would not be restored as one object after a save).

Note

This check is done at the creation of the analysis: since its views cannot change, the analysis always remains consistent.

Raises:

ValueError – If an object is used in two roles, or if a leaf transformation is used twice.

Return type:

None