Thank you again!
Do you know how to find the list of available callbacks? Is checking out spm_orthviews the most effective way?
Best
Luca
________________________________________
Da: SPM (Statistical Parametric Mapping) <[log in to unmask]> per conto di Volkmar Glauche <[log in to unmask]>
Inviato: giovedě 25 giugno 2020 14:08
A: [log in to unmask]
Oggetto: Re: [SPM] R: [SPM] How to quality check a massive amount of segmentations?
Glad to help you! Actually, one can do similar things with almost all
actions in CheckReg (position crosshairs, zoom, intensity windowing).
Either there is a callback implemented in spm_orthviews itself, or in
one of the plugin extensions.
Best,
Volkmar
Am Donnerstag, den 25.06.2020, 11:04 +0000 schrieb PRESOTTO LUCA:
> Thank you very much!
> I did something like that in the past but it couldn't do the contour
> thing. This should really be like 90% of what I need.
>
> Best Regards,
> Luca
>
> ________________________________________
> Da: SPM (Statistical Parametric Mapping) <[log in to unmask]> per
> conto di Volkmar Glauche <[log in to unmask]>
> Inviato: giovedě 25 giugno 2020 11:04
> A: [log in to unmask]
> Oggetto: Re: [SPM] How to quality check a massive amount of
> segmentations?
>
> Dear Luca,
> you should be able to create a loop that does most of this - display
> the images and overlay contours. Some of the contour option settings
> seem to be available via context menu only, though. You may want to
> check the code of spm_ov_contour.m as a reference.
>
> The following code snippet should get you started:
>
> % Get the images
> imgs = spm_select;
> % Display them
> spm_check_registration(imgs);
> % Display contour of 2nd image onto 1st
> spm_orthviews('contour','display',2,1)
>
> To make MATLAB stop in a loop after displaying a subject, you could
> use uiwait() and a non-modal dialog box. With a little effort, you
> could even program a callback for this box that saves the current
> loop index either as 'good' or 'bad' to help you remember subjects
> which need to be reviewed more carefully. I have used such a
> construct already, but I didn't keep the code.
> Hope this helps,
> Volkmar
>
>
> Rispetta l’ambiente: non stampare questa mail se non č necessario.
> Respect the environment: print this email only if necessary.
|