def _initialize_parameters(self, pinholes: Iterable[PinholeCamera]) -> "PinholeCamerasList":
        r"""Initialise the class attributes given a cameras list."""
        if not isinstance(pinholes, (list, tuple)):
            raise TypeError(f"pinhole must of type list or tuple. Got {type(pinholes)}")
        height, width = [], []
        intrinsics, extrinsics = [], []
        for pinhole in pinholes:
            if not isinstance(pinhole, PinholeCamera):
                raise TypeError(f"Argument pinhole must be from type PinholeCamera. Got {type(pinhole)}")
            height.append(pinhole.height)
            width.append(pinhole.width)
            intrinsics.append(pinhole.intrinsics)
            extrinsics.append(pinhole.extrinsics)
        # concatenate and set members. We will assume BxNx4x4
        self.height: Tensor = stack(height, dim=1)
        self.width: Tensor = stack(width, dim=1)
        self._intrinsics: Tensor = stack(intrinsics, dim=1)
        self._extrinsics: Tensor = stack(extrinsics, dim=1)
        return self
Initialise the class attributes given a cameras list.
kornia/geometry/camera/pinhole.py