/* SPDX-License-Identifier: GPL-3.0 * VisHash - An easy way to visualise hashes * * image.h * * COPYRIGHT NOTICE * Copyright (C) 2025 0x4248 and contributors * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the license is not changed. * * This software is free and open source. Licensed under the GNU general * public license version 3.0 as published by the Free Software Foundation. */ #include #include #include #include #include "const.h" std::vector> heatmap(const std::vector &digest); std::vector> blur(const std::vector>& grid); int apply_contrast(int v, int maxv, double gamma = 1.8); char level_to_char(int level, int maxLevel);