1. A system for crack detection, the system comprising: a storage device; and a processing system connected to the storage device; and a program stored in the storage device, wherein execution of the program by the processing system causes the system to perform functions, including functions that: (i) establish an appropriate structuring element based on a working distance and focal length of a three-dimensional (3D) structure of a scene; from a plurality of images of the scene; (ii) segment potential crack patterns by applying a morphological operation; (iii) determine appropriate features for each segmented pattern; and (iv) classify a crack from a non-crack pattern using a trained classifier, thereby forming a multiscale crack map.