Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -11,7 +11,7 @@ Image!Color convolve(Color)(in Image!Color im,
in ConvolutionFilter filter)
pure nothrow in {
assert(im !is null);
assert(!isnan(filter.divisor) && !isnan(filter.offset_));
assert(!filter.divisor.isNaN && !filter.offset_.isNaN);
assert(filter.divisor != 0);
assert(filter.kernel.length > 0 && filter.kernel[0].length > 0);
foreach (const row; filter.kernel) // Is rectangular.