Cleaning up the feature adaptive patch colors : all example code now shares the same function to provide the patch colors

Note : this function will probably eventually move down to osdutil or some similar canonical place