I am using the following code from the documentation to generate colours from an image.
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of