My practical application is: after processing the existing picture data, I get the picture spliced by solid color blocks, and after raster conversion, I get the vector surface data spliced by these color blocks.
Existing problems: in the actual conversion process, some color blocks of different colors can not identify the boundary; The final processing method is to regenerate the color blocks, distinguish the color values of adjacent color blocks with the difference of 1, and re-identify.