Hi, I'm back from a short vacation.
The paper I think you are taking as a starting point, https://arxiv.org/abs/1206.3057 , clarifies the main problem I'm referring to right at the beginning:
Given two sets C and S of equal mass in ℝd, transport each mass unit of C to a mass unit of S at minimal cost. More formally, given two measures μ and ν, find a map f satisfying μ(f−1(⋅))=ν(⋅) that minimizes ∫d(z,f(z))𝑑μ(z)
Image pixels just don't fit this premise of moving masses and equal mass total mass very easily, and the algorithm goes off the rails as a consequence.
With d=2 (the two dimensions of the image) pixels should be grayscale and the total gray value of all pixels in the initial and final images should be the same, which requires possibly drastic, and certainly nontrivial and arbitrary, preliminary image processing (something similar to Photoshop's curves used for thresholding, expansion, compression, etc.).
The "mass units" wouldn't be pixels retaining their original grayscale value, but every unit in the grayscale values processed independently (e.g. a destination value of 127, medium grey on a 0-255 linear scale, might be obtained from an original value of 38 not by exchanging the pixel with one that has a value of about 127, but by moving in 116 units from the pixel above, 62 units from the pixel to the left, 18 units from greater distances through the pixels above and to the left, and moving out 107 units right, down or further away).
Color images would be processed channel by channel, further disintegrating original and destination pixels.
Coherently transporting pixels would require d=5 (two spatial dimensions, three color channels): pixels move to a close location and shift to a close color, with a complicated distance function deciding the balance. Voronoi diagrams would be less trivial.