Choose a threshold of gradient magnitudes and densely draw short straight lines for each pixels. Since we do not care how many stitches, gradients decide the boundaries nicely. Then maybe we can think about the inner directions to have some contrast.Have to find a way to distinguish three contents: background, texture, and smooth parts.I am thinking to interactively define them if we cannot find an automatic way in a short time.