Dear Charlotte,
This is deceptively calling the contour() function in MATLAB:
https://github.com/spm/spm12/blob/r7771/spm_orthviews/spm_ov_contour.m#L128
https://www.mathworks.com/help/matlab/ref/contour.html
The algorithm it implements is called marching squares:
https://en.wikipedia.org/wiki/Marching_squares
You will find an implementation for triangular meshes in
spm_mesh_contour.m and spm_mesh_isoline.m
Best regards,
Guillaume.
On 29/04/2020 07:42, charlotte s ørensen wrote:
> Dear SPM experts
>
> I want to look at the difference between 2 made field maps. I open them by clicking on the "Check Reg". Then opened I can right click the image and overlay countour on the images. I was wondering how this function works? I am using it but would like to know how it works.
>
> Best regards,
> Charlotte,
> Master student in Neuroscience and Neuroimaging
>
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|