mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Apply edge clamping a little more forcefully
This commit is contained in:
parent
82ea0cee5d
commit
11c729d370
@ -174,8 +174,8 @@ void density_est(float4 *pixbuf, float4 *outbuf,
|
|||||||
|
|
||||||
// If the gradient scale is smaller than the minimum scale, we're
|
// If the gradient scale is smaller than the minimum scale, we're
|
||||||
// probably on a strong edge; blur slightly.
|
// probably on a strong edge; blur slightly.
|
||||||
if (diag_mag > den * 2.0f) {
|
if (diag_mag > den * edge_clamp) {
|
||||||
scale = max(-9.0f, scale);
|
scale = -2.0f;
|
||||||
// Uncomment to see which pixels are being clamped
|
// Uncomment to see which pixels are being clamped
|
||||||
// de_g[si] = 1.0f;
|
// de_g[si] = 1.0f;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user