Unsupervised clustering method for pattern recognition in IIF images