Some database for machine learning, like VOC dataset, use .PNG file to store information. They store information in 0~255, and display it by using ColorMap.
I import it by using this code:
data=Import[path, "RawData"]
cmap=Import[path, "ColorMap"]
But I cannot find a way to export a PNG file in this format. A .PNG file in this format is included.
Attachments: