Structures recognition in atomic force microscopy: pre-and post-processing techniques