April 2020
Intermediate to advanced
438 pages
12h 2m
English
Go through the following steps to implement the image color quantization with SOM:
def segment_with_SOM(image, nx, ny, sigma=1., n=500): pixels = np.reshape(image, (image.shape[0]*image.shape[1], 3)) # SOM initialization and training som = MiniSom(x=nx, y=ny, input_len=3, sigma=sigma, \ learning_rate=0.2) ...
Read now
Unlock full access