Hi,
I'm getting the following error on a few files:
Error using imregionalmax
Expected input number 1, I, to be non-NaN.
Error in imregionalmax (line 67)
validateattributes(varargin{1}, {'numeric','logical'}, {'real','nonsparse','nonnan'},...
This occurs during motion correction, specifically during non-stable registration. I can't find the issue, and I was wondering if you had some insight that may help. The matrix is of NaNs, and I'm not sure how this is being created. Thanks so much.