History of AFNI updates  

|
September 02, 2015 03:25AM
Hi AFNI experts,

I am trying to calculate an average value within a mask using 3dROIstats. So, before doing that, I need a mask.

To create a mask, I usually binarized an image using "Clusterize" option. But in this case, I get a mask filled with values ranging, for example, from 0 to 5. But I would like to get a mask filled only with 0/1, so that I can simply run 3dROIstats to calculate an average.

I did this before and was able to create a mask filled only with 0/1 but I can't recall how to do that. If I have a mask filled with values ranging 0-5, I would get 5 different average values after running 3dROIstats and I don't need separate averaged value.

Is there any way to change 2-5 values in the mask to 1 ? Is "DrawData" the only way to do that? I don't prefer "DrawData" option because it's such a hassle and inefficient way.

Please let me know if someone know how to solve this issue. I will really appreciate it!

Thank you!
Subject Author Posted

Creating a mask filled only with 1/0

ssyong715 September 02, 2015 03:25AM

Adding a question

ssyong715 September 02, 2015 03:53AM

Re: Creating a mask filled only with 1/0

ptaylor September 02, 2015 04:28AM

Re: Creating a mask filled only with 1/0

ssyong715 September 02, 2015 01:56PM

Re: Creating a mask filled only with 1/0

Kirk January 26, 2018 10:55AM

Re: Creating a mask filled only with 1/0

Kirk January 26, 2018 11:01AM

Re: Creating a mask filled only with 1/0

ptaylor January 26, 2018 11:47AM