8월, 2020의 게시물 표시

Optimal Linear Transformation

In shape matching problem between 3D point sets , Optimal Linear Transformation  between point sets plays an important role. I'll follow notations in [1] as far as I can. Problem Let there be two 3D point sets, $p_i = [x_i, y_i, z_i]^t, p^{'}_i = [x^{'}_i, y^{'}_i, z^{'}_i]^t, i= 1,2,\cdots, N$. We want to find matrix $X$ that minimizes $$ \begin{align} \sum_{i = 1}^{N} \| p^{'}_i - Xp_i \|^2 = \sum_{i = 1}^{N} \{ \| p^{'}_i \|^2 - 2 p^{'}_i \cdot (X p_i) + \| Xp_i \|^2 \} \tag{1} \\ \end{align} $$ Solution We can easily find minimum of (1) by completing the square. First, from the fact that for some arbitrary column vector $k$, $ \| k \|^2 = k \cdot k  = tr(kk^T) $, (1) can be rewritten as (2), $$ \begin{align} \sum_{i = 1}^{N} tr( p^{'}_i (p^{'}_i)^T - 2 p^{'}_i (p_i)^T X^T + Xp_i (p_i)^T X^T ) = tr(A_{p^{'}} - 2MX^T + XA_p X^T ) \tag{2} \\ \end{align} $$ where sum of outer products is defined as follows : $$ A_p

Prioritized checklist for when configuring public key authentication on SSH server (unix, synology)

Let's say that you want to access to SSH server as below: [user]@[server_address] 1. Does public key of client is appended to server's '/home/user/.ssh/authorized_keys' file? - In synology, location of user's home directory could be different to ordinary unix. 2. Check server's ssh daemon setting. - Make sure to uncomment : PubkeyAuthentication yes -  Make sure to uncomment :  AuthorizedKeyFiles .ssh/authorized_keys -  Make sure to uncomment :  ChallengeResponseAuthentication no 2. Ownership(user, group both) of '.ssh' directory and descendants. - In unix, [user]:[user] - In synology, [user]:users 3. Permission of '.ssh/authorized_keys' : 0644 4. Permission of '.ssh' directory : 0700