validate_annotation_symmetry#

brainglobe_atlasapi.atlas_generation.validate_atlases.validate_annotation_symmetry(atlas: BrainGlobeAtlas)[source]#

Validate that equivalent regions in left and right hemispheres have the same annotation value.

This is done by comparing annotation values at two pixels equidistant from the mid-sagittal plane along the central horizontal axis, near the center of the image.

Parameters:

atlas (BrainGlobeAtlas) – The BrainGlobeAtlas object to validate.

Returns:

True if the selected annotation labels across the mid-sagittal plane are symmetric.

Return type:

bool

Raises:

AssertionError – If the annotation labels at the chosen symmetric points are different.