Page 1 of 1

Save the resulting image from the overlap between a mask and the original image

Posted: Thu Jun 02, 2016 5:38 pm
by UmSenhorQualquer
It is possible to save the fusion image resulting from the overlap between a mask and the original image, in nii format?
How can we do it?


Thank you

Re: Save the resulting image from the overlap between a mask and the original image

Posted: Fri Jun 03, 2016 5:21 pm
by riviere
Hi,
Well, it is not possible to save a fusion image from Anatomist because a fusion image is not an image: it's a mix between two images, each with its colormap, and images resolutions and fields of view can differ. It is possible to make a (possibly resampled) image, but Anatomist does it on the fly only for the displayed slice, there is no "fusionned volume" under it. It should be possible to build it using the programming API of Anatomist, but you would get a RGB volume anyway (probably not what you expect).

It is possible to do it using commandlines (Aims commands) and/or python scripting, and/or BrainVisa processes. In a general case you would have to take into account images coordinates systems, coordinates transformations between them, resampling in a target space with a target resolution, and masking.

If you are in a "simple" case, with both images in the same field of view and resolution (voxels are directly superimposable), you can use the AimsMask command for instance (use AimsMask -h for help and options).

Denis