Physics-informed motion planning using RGB-based spectral analysis