Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
digiKam
Commits
93fc92b2
Commit
93fc92b2
authored
Jan 06, 2013
by
Gilles Caulier
🗼
Browse files
patch from Sayantan Datta about softness parameter stayed constant
CCMAIL: kenzo.zombie@gmail.com
parent
b91b8e5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/dimg/filters/nr/nrestimate.cpp
View file @
93fc92b2
...
...
@@ -469,8 +469,8 @@ void NREstimate::startAnalyse()
if
(
L
>
9
)
L
=
9
;
Cr
=
datasd
[
2
]
/
2
;
Cb
=
datasd
[
1
]
/
2
;
Cr
=
datasd
[
2
]
*
0.8
;
Cb
=
datasd
[
1
]
*
0.8
;
if
(
Cr
>
7
)
Cr
=
7
;
...
...
@@ -481,6 +481,15 @@ void NREstimate::startAnalyse()
L
=
floorf
(
L
*
100
)
/
100
;
Cb
=
floorf
(
Cb
*
100
)
/
100
;
Cr
=
floorf
(
Cr
*
100
)
/
100
;
if
(
L
>
9
)
LSoft
=
CrSoft
=
CbSoft
=
0.8
;
else
if
(
L
>
3
)
LSoft
=
CrSoft
=
CbSoft
=
0.7
;
else
LSoft
=
CrSoft
=
CbSoft
=
0.6
;
}
d
->
prm
.
thresholds
[
0
]
=
L
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment