close-up

Lou Marvin Caraig

Software Development Engineer at source{d}

28 December 2018 - 213 days ago

Understanding image histograms with OpenCV

~ 17 mins read

In this post, I want to explore what is an image histogram, how it is useful to understand an image and how it can be calculated using OpenCV which is de facto the standard tool for computer vision. In this post, I'm going to use OpenCV 3 with Python 3.6. What is an image histogram? A histogram is a…

4 February 2017 - 905 days ago

Color quantization using k-means

~ 14 mins read

In this article, I'd like to talk about color quantization and how the k-means clustering algorithm can be used to perform it and how it performs compared to simpler methods. The snippets presented here are written in Python and come from this project. What is color quantization? Color quantization…