Mrcalc -and errors

Hello,

I’m quite a new user so please bear with me if this question is facile.

I’m trying to use mrcalc with the “-and” functionality but mrcalc states that the functionality doesn’t exist, yet it is shown as available in the latest documentation. My application is for lesion painting in MS patients and I want to find where my lesion image is > 1 and the segmented GM image from FAST is > 0 (ie probably mis-assigned voxels) so I can create a file with the mis-assigned voxel in.

I try:

mrcalc lesion.nii.gz segm_pve_2.ni.gz -and output.nii.gz

or

mrcalc lesion.nii.gz -and segm_pve_2.ni.gz output.nii.gz

and both times I receive:

[ERROR] unknown option “-and”

mrcalc -v returns:
== mrcalc 3.0_RC3_latest-75-g598ce7f3-dirty ==
64 bit release version, built Feb 27 2020, using Eigen 3.3.4
Author(s): J-Donald Tournier (jdtournier@gmail.com)
Copyright © 2008-2018 the MRtrix3 contributors.

Does mrcalc do this now? Is it a problem with the version / build I am using?

Your suggestions / comments would be much appreciated.

Kind regards

Peter

My apologies. This should have “mrcalc -and errors” as title

Yes, it does, as of version 3.0.0 – but not earlier versions unfortunately, this option doesn’t exist in 3.0_RC3.

Thank you, that’s very helpful to know which updated version should do this. Best regards, Peter