Out of curiosity, how would you paint (i.e., color) these stitches?
Alternatively, how would you create a stitch mask from the height map that would isolate just the stitches?
One thought would be to export the height map to Photoshop and adjust the levels such that anything that was 50% gray or darker would be black and anything lighter than 50% gray would be white. Is there an easier way?