rd">if</span> isfield(params,<span class="string">'exclusionMask'</span>)
0032   <span class="keyword">if</span> ~isempty(params.exclusionMask)
0033     <span class="keyword">switch</span> class(params.exclusionMask)
0034       <span class="keyword">case</span> <span class="string">'struct'</span>
0035         exclusionIdx = (imresize(params.exclusionMask.data,siz,<span class="string">'nearest'</span>) ~= 0);
0036       <span class="keyword">case</span> {<span class="string">'double'</span>,<span class="str