Quantification of the amount of melanin in a sample. The trait is Experimental Factor Ontology id EFO_0021835 (melanin measurement).