Hi,
A maximum value (positive or negative) amongst the non-zero voxels can easily be found using fslstats with -P 100.
If you only have zero values and negative values, then the most negative value (minimum value) can be found with fslstats and -P 0.
All the best,
Mark
On 12 Mar 2014, at 04:05, Michael Spilka <[log in to unmask]> wrote:
> Hello FSLers,
>
> Does anyone know of a way to extract the maximum non-zero voxel from an image (e.g., using fslstats)? I have non-binary ROI masks that I am interrogating, and using the fslstats -x option outputs a zero when my maximum image intensity has a negative value.
>
> Many thanks,
>
> Michael
|