Add contrast limiting adaptive histogram equalization (CLAHE) operator (#2726)

This commit is contained in:
Brad Parham
2021-05-23 18:36:04 +02:00
committed by GitHub
parent b69a54fc75
commit 4b6b6189bf
19 changed files with 245 additions and 6 deletions

View File

@@ -92,6 +92,13 @@ namespace sharp {
return image;
}
/*
* Contrast limiting adapative histogram equalization (CLAHE)
*/
VImage Clahe(VImage image, int const width, int const height, int const maxSlope) {
return image.hist_local(width, height, VImage::option()->set("max_slope", maxSlope));
}
/*
* Gamma encoding/decoding
*/