Bitmap/Histogram: Difference between revisions
Content added Content deleted
(Updated D entry) |
|||
Line 253: | Line 253: | ||
Color findSingleChannelMedian(Color)(in Image!Color img) |
Color findSingleChannelMedian(Color)(in Image!Color img) |
||
nothrow if (Color.tupleof.length == 1) // Hack. |
pure nothrow @nogc if (Color.tupleof.length == 1) // Hack. |
||
in { |
in { |
||
assert(img !is null); |
assert(img !is null); |
||
Line 282: | Line 282: | ||
Image!Color binarizeInPlace(Color)(Image!Color img, |
Image!Color binarizeInPlace(Color)(Image!Color img, |
||
in Color thresh) |
in Color thresh) |
||
nothrow in { |
pure nothrow @nogc in { |
||
assert(img !is null); |
assert(img !is null); |
||
} body { |
} body { |