cmtk.mat2dof | R Documentation |

Use CMTK mat2dof to convert homogeneous affine matrix into CMTK registration

```
cmtk.mat2dof(m, f = NULL, centre = NULL, Transpose = TRUE, version = FALSE)
```

`m` |
Homogenous affine matrix (4x4) last row 0 0 0 1 etc |

`f` |
Output file (optional) |

`centre` |
Centre for rotation (optional 3-vector) |

`Transpose` |
the input matrix so that it is read in as it appears on disk |

`version` |
When TRUE, function returns CMTK version number of mat2dof tool |

If no output file is supplied, 5x3 params matrix will be returned directly. Otherwise a logical will be returned indicating success or failure at writing to disk.

Transpose is true by default since this results in an R matrix with the transpose in the fourth column being correctly interpreted by cmtk.

5x3 matrix of CMTK registration parameters or logical

Other cmtk-commandline:
`cmtk.dof2mat()`

Other cmtk-geometry:
`affmat2cmtkparams()`

,
`cmtk.dof2mat()`

,
`cmtkparams2affmat()`

nat documentation built on Aug. 25, 2023, 5:16 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.