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

It's probably worth mentioning that there are a lot of ways to implement convolution with a kernel, and the kernel can be of any size, not just 3×3. The explanation here shows how to implement the output-side algorithm nonrecursively; http://www.dspguide.com/ch6/3.htm gives this for the one-dimensional case. But you can implement it on the input side instead (iterating over the input samples instead of the output samples), there are kernels that have a much more efficient recursive implementation (including zero-phase kernels using time-reversal), you can implement very large kernels if you can afford to do the convolution in the frequency domain, and there's a whole class of kernels that have efficient sparse filter cascade representations, including large Gaussians.

(To say nothing of convolutions over other rings.)

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.

Re:Image Kernels explained visually by bpchaps on Monday August 08, 2016 @06:43PM (#12251331)
(Can't comment on much else, but just wanted to say thanks for the link. I just got an SDR and the link you sent looks incredibly useful for learning. Thanks!)
Re:Image Kernels explained visually by pthreads on Monday August 08, 2016 @09:20PM (#12251930)
Thanks for the DSP link. The book looks interesting.