'How to color the whole image when only colors of few certain coordinates are given

I have markers on an object and gave certain colors to them individually(using some function) now I have to color the whole object by selecting each and every pixel of the object and interpolating it to the nearest four markers.This process is taking a lot of time. I want to know if there is any other way to color. i just want to colour the object in a way so that it depends on the color of the markersthe white things are the markersthe image i get after interpolating the markers colorsIn the first image the markers are all white but when i perform the operation they are given different colors

I want to know if there is a way to imagine colors between the markers



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source