PGFPlotsX a matrix of RGB

A post was split to a new topic: How to make a heatmap with pgfplotsx?