News for hackers. Stuff that matters.
Re:Image Kernels explained visually by colejohnson66 on Monday August 08, 2016 @09:54PM (#12252052)
> This is super cool but it's unfortunate that it clamps negative result values to black.

Curious: What would a negative pixel look like? What use would that have?

Re:Image Kernels explained visually by kragen on Monday August 08, 2016 @11:51PM (#12252506)
The standard thing to do in these cases is to make zero be a medium gray, so that you can see negative output as well as positive. If you use one of the edge-detection filters, you'll see what I mean.
Re:Image Kernels explained visually by tnone on Monday August 08, 2016 @10:16PM (#12252145)
In fluid dynamic sims for example. Water level can be positive or negative. Grids of data can represent more than colors in images.
Re:Image Kernels explained visually by colejohnson66 on Monday August 08, 2016 @10:42PM (#12252225)
Well yeah. That has use, but when one mentions claiming negative results to black, I assumed that was for pictures. Obviously negative values mean something in other places, but I assumed we were talking about pictures.
Re:Image Kernels explained visually by hexane360 on Monday August 08, 2016 @10:10PM (#12252123)
No experience with this stuff, but it feels like you could do an abs(kernel) to extract some meaning from the negative value.

Applying this to the "outline" kernel, it seems like white bordered by black would show up just as white as black bordered by white, with homogeneous kernels still showing up black.