summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/hard-drive.svg
blob: 8e90fa1bc7230f3ad213229e1a38bd4bb6fb35d4 (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-hard-drive"><line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line></svg>
#include "libcamera/internal/log.h" #include "../noise_status.h" #include "../sdn_status.h" #include "sdn.hpp" using namespace RPiController; using namespace libcamera; LOG_DEFINE_CATEGORY(RPiSdn) // Calculate settings for the spatial denoise block using the noise profile in // the image metadata. #define NAME "rpi.sdn" Sdn::Sdn(Controller *controller) : Algorithm(controller) { } char const *Sdn::Name() const { return NAME; } void Sdn::Read(boost::property_tree::ptree const &params) { deviation_ = params.get<double>("deviation", 3.2); strength_ = params.get<double>("strength", 0.75); } void Sdn::Initialise() {} void Sdn::Prepare(Metadata *image_metadata) { struct NoiseStatus noise_status = {}; noise_status.noise_slope = 3.0; // in case no metadata if (image_metadata->Get("noise.status", noise_status) != 0) LOG(RPiSdn, Warning) << "no noise profile found"; LOG(RPiSdn, Debug) << "Noise profile: constant " << noise_status.noise_constant << " slope " << noise_status.noise_slope; struct SdnStatus status;