Skip to main content

hemispheres.mirror_xyz_to_hemisphere

hemispheres.mirror_xyz_to_hemisphere(xyz, sign=-1.0, midline_x=MIDLINE_X)

A copy of xyz ([..., 3]) with every position folded onto one hemisphere by reflection about the atlas midline: the left one (sign < 0) or the right one.

midline_x is in the units of xyz: metres by default, MIDLINE_X * 1e6 for µm.