A Prototype Method for the Detection and Recognition of Pigments in the Environment Based on Optical Property Simulation