3 ms·
> 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 h
by colejohnson66 10y ago
> 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?
- kragen 10y agoThe 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.
- hexane360 10y agoNo 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.
- tnone 10y agoIn fluid dynamic sims for example. Water level can be positive or negative. Grids of data can represent more than colors in images.
- colejohnson66 10y agoWell 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.