Opencv2/intensity_transform.hpp

No such file or directory

it is from a module in the contrib repo , which is not part of the opencv main repo, so you probably dont have it.

means, to use it, you have to rebuild the opencv libs with contrib modules