Skip to content

Commit

Permalink
Fix bug for ‘mean’ case
Browse files Browse the repository at this point in the history
  • Loading branch information
petercorke committed Apr 9, 2017
1 parent 76ca140 commit c1c3df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipaste.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@
case 'mean'
old = out(top:top+ph-1,left:left+pw-1,:);
k = ~isnan(pattern);
old(k) = 0.5 * (old + pattern);
old(k) = 0.5 * (old(k) + pattern(k));
out(top:top+ph-1,left:left+pw-1,:) = old;
end

0 comments on commit c1c3df1

Please sign in to comment.