Are you checking the actual values of the image file directly or are you getting values from the viewer within SPM? If the latter, the default is that it interpolates images on display, so things will blur at the 0/1 edges of the image, but the underlying values should be binary if you used i1 > 100.
-Mike
________________________________________
From: SPM (Statistical Parametric Mapping) <[log in to unmask]> on behalf of Qiliang He <[log in to unmask]>
Sent: Tuesday, September 11, 2018 11:09:07 AM
To: [log in to unmask]
Subject: [SPM] Creating ROI mask by Image Calculation
Hello,
I have been trying to use image calculation in SPM to create a new ROI mask using i1 > 100, with i1 as the source image. The resulting mask, however, is NOT 0 or 1, but rather a continuum between 0 and 1 (e.g., 0.365).
Any knows how to output the mask as either 0 and 1? Thanks!
Qiliang
**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues
|