A rule based approach for visual pattern inspection | IEEE Journals & Magazine | IEEE Xplore