Python + Image Processing: Efficiently Assign Pixel Values to Nearest Predefined Value
I implemented an algorithm that uses opencv kmeans to quantize the unique brightness values present in a greyscale image. Quantizing the unique values helped avoid biases towards image backgrounds which are typically all the same value. However, I struggled to find a way to utilize this data to quantize a given input image. I implemented… Read More Python + Image Processing: Efficiently Assign Pixel Values to Nearest Predefined Value