summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/rpi/sharpen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/raspberrypi/controller/rpi/sharpen.cpp')
-rw-r--r--src/ipa/raspberrypi/controller/rpi/sharpen.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ipa/raspberrypi/controller/rpi/sharpen.cpp b/src/ipa/raspberrypi/controller/rpi/sharpen.cpp
index 086952fd..4c2fdb3e 100644
--- a/src/ipa/raspberrypi/controller/rpi/sharpen.cpp
+++ b/src/ipa/raspberrypi/controller/rpi/sharpen.cpp
@@ -44,13 +44,12 @@ void Sharpen::Read(boost::property_tree::ptree const &params)
void Sharpen::Prepare(Metadata *image_metadata)
{
- double mode_factor = mode_factor_;
struct SharpenStatus status;
// Binned modes seem to need the sharpening toned down with this
// pipeline.
- status.threshold = threshold_ * mode_factor;
- status.strength = strength_ / mode_factor;
- status.limit = limit_ / mode_factor;
+ status.threshold = threshold_ * mode_factor_;
+ status.strength = strength_ / mode_factor_;
+ status.limit = limit_ / mode_factor_;
image_metadata->Set("sharpen.status", status);
}