Skip to content

Instantly share code, notes, and snippets.

View studiosi's full-sized avatar
😍
loving the code

David studiosi

😍
loving the code
View GitHub Profile
@studiosi
studiosi / sil_threshold.h
Last active December 26, 2023 00:34
Single file library to extend stb_image and apply differents types of thresholds to grayscale images
#ifndef SIL_INCLUDE_THRESHOLD_H
#define SIL_INCLUDE_THRESHOLD_H
// No need to include the implementation, or double include the definitions
#ifndef STBI_INCLUDE_STB_IMAGE_H
#include "stb_image.h"
#endif
// API definition
typedef enum T_SIL_THRESHOLD_TYPE {
@studiosi
studiosi / sil_monochrome.h
Last active December 26, 2023 00:34
Single file library to extend stb_image and convert images to monochrome with different standards
#ifndef SIL_INCLUDE_MONOCHROME_H
#define SIL_INCLUDE_MONOCHROME_H
// No need to include the implementation, or double include the definitions
#ifndef STBI_INCLUDE_STB_IMAGE_H
#include "stb_image.h"
#endif
// API definition
typedef enum T_SIL_MONOCHROME_CONVERSION_TYPE {