This paper addresses the problem of classification of object and background in unevenly illuminated images using Decision-Theoretic Rough Set (DTRS) framework. The proposed scheme employs adaptive windowing technique to partition the image into different windows. Thereafter, the proposed DTRS based method is applied on each window to find out the optimal threshold that is used for classification of the window. Determination of optimal threshold of a given window is dependent on the optimal granule size used for the window. The problem of determination of optimal granule size and optimal threshold is cast in optimization framework. The optimal threshold obtained for each window is used to classify the window and the classification of the entire image is the union of classifications over all the windows. Manual tuning of parameters is not required to determine the optimal threshold. The proposed scheme is tested on different images considered from Berkeley image database. The performance of the proposed scheme is compared with other granular and non-granular computing based schemes. Evaluation of different quantitative measures demonstrates the improved performance of the proposed schemes over others.