Print

Print


Hi,

You just need to multiply your non-binary mask by the input image with fslmaths and then extract the non-zero mean from both this output (the result of the multiplication) and separately for the non-binary mask, then divide these two numbers to get the weighted average.

All the best,
	Mark


On 2 Mar 2011, at 18:28, Dixit, Sachin wrote:

> Dear FSL Experts
> I am using fslstats to extract the median or mean value from the non zero voxels of the input image. The binary mask I am using is the Gray Matter mask and input is the SFNR image of an individual. Is there a way in FSL that I could extract the weighted average rather than just the mean or median ?
>  
> Sachin
> 
> The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.