Detection of filamentary structure in molecular clouds