# Extracting features for texture classification

I'm a beginner in the field of pattern recognition and computer vision. I'm working on a project right now to classify t-shirt patterns into three categories i.e. solids, stripes and checks. I have close up training images of the t-shirt images. A sample shirt image looks like this

I have looked at a bank of gabor filter features, but they are computationally expensive. It would of great help if someone could point me out in the general direction for working forward. Any help is appreciated.

EDIT - I found the solution in D.W.'s answer below, though my solution is not very good. I'm classifying solid patterns by counting the number of line segments in the image. If they fall below a certain number, I'm classifying them as solid. If not, I further classify them into stripes or checkered using HoG features and a linear SVM. The accuracy achieved was around 91%. It was a little low due to some misclassified samples in the training set.

• This is in the context of a course? Which classification algorithms were presented in class?
– Raphael
Jun 25, 2014 at 9:04
• @Raphael this isn't in the context of a course. I m just working on my own project. I have not taken a computer vision or image processing class per say, i have taken one on machine learning though. I was just researching on the topic, and found that local binary patterns and gabor filters might be helpful, but i might be wrong. I have read some papers on LBP and gabor filters though. Jun 25, 2014 at 9:08
• Try a line segment detection algorithm like ipol.im/pub/art/2012/gjmr-lsd (source code included). This is the sort of output I get using the image you linked: imgur.com/ktQoclc ; the output looks quite usable for extracting useful features. The code can be made to output line segment coordinates directly. Simpler features, based on horizontal and vertical derivatives (assuming the lines of the shirt are aligned to the image axes), might work too.
– Aky
Jun 25, 2014 at 12:20
• Have a try with a 2D FFT spectrum.
– user16034
Jun 25, 2014 at 14:15