| 42 | |
| 43 | public: |
| 44 | MatrixOut project(const MatrixIn& pts) { |
| 45 | return (pts.rowwise() - m_mean.transpose()) * m_basis; |
| 46 | } |
| 47 | |
| 48 | MatrixIn unproject(const MatrixOut& pts) { |
| 49 | return (m_basis * pts.transpose()).transpose().rowwise() + m_mean.transpose(); |