function waveletDenoiseImage($image_path, float $threshold, float $softness)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->waveletDenoiseImage($threshold, $softness);
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}