validate_two_images_same_dimensions ========================================================= .. py:function:: petpal.utils.image_io.validate_two_images_same_dimensions(image_1: nibabel.nifti1.Nifti1Image, image_2: nibabel.nifti1.Nifti1Image, check_4d: bool = False) Check the dimensions of two Nifti1Image objects and verify they have the same shape. :param image_1: The first image of the two to check image size. :type image_1: nibabel.nifti1.Nifti1Image :param image_2: The second image of the two to check image size. :type image_2: nibabel.nifti1.Nifti1Image :param check_4d: If true, checks all dimensions including validating the number of frames. If false, only checks first three dimensions. Default False. :type check_4d: bool :raises ValueError: If images do not have the same dimensions.