From 395476cff8fd5ac73f41fa0315baee8e55ab3b1c Mon Sep 17 00:00:00 2001 From: yoav freund Date: Fri, 2 Jul 2021 15:19:24 -0700 Subject: [PATCH] Update atlas.py --- neuroglancer/atlas.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/neuroglancer/atlas.py b/neuroglancer/atlas.py index 17cd80e..a531be9 100644 --- a/neuroglancer/atlas.py +++ b/neuroglancer/atlas.py @@ -18,11 +18,12 @@ def align_point_sets(src, dst, with_scaling=True): """ Analytically computes a transformation that minimizes the squared error between source and destination. + The transformation is restricted to rigid + uniform scaling. ------------------------------------------------------ - src is the dictionary of the brain we want to align - dst is the dictionary of the atlas structures + src is a numpy array of shape (struct_num X 3) where rows correspond to structures and columns to xyz. + dst is a numpy array of same shape as src. THe rows should correspond to the same sturcures as src. Defaults to scaling true, which means the transformation is rigid and a uniform scale. - returns the linear transformation r, and the translation vector t + returns the linear transformation r (3x3) , and the translation vector t (3,1) as numpy arrays. """ assert src.shape == dst.shape assert len(src.shape) == 2