Classical Computer Vision: Image Segmentation with Mumford & Shah
The Mumford & Shah is another segmentation algorithm that is much more efficient than K-Means, that uses the following math equation to decide which pixels of an image should belong to which segment The idea here is not to go deep under the hood for this equation, because we're not trying to implement it, but to use it. So, lets get the example extracted from professor Aldo von Wangenheim (@UFSC/Brazil) for Mumford & Shah image segmentation: from ipywidgets import interact , interactive , interact_manual import cv2 , scipy from skimage import data from matplotlib import pyplot as plt # Import the M&S-equivalent Ambrosio Tortorelli Minimizer (we'll call it A&Tmin) # You have to download it before from https://github.com/jacobgil/Ambrosio-Tortorelli-Minimizer # or from my mirror (is NOT updated): https://github.com/awangenh/Ambrosio-Tortorelli-Minimizer from AmbrosioTor...