Patent ID: 8497878

Claim:
A method of a digital signal processor for automatically deciding on the orientation of image, the method comprising: computing average and standard deviation of luminance of the top region of a portion of the image, of the bottom region of a portion of the image, of the left region of a portion of the image, and of the right region of a portion of the image; computing average luminance of the image; computing, in the digital signal processor, consolidated luminance difference and uniformity of top and bottom regions, and left and right regions, utilizing the computed average and standard deviation of at least one of the bottom region, the left region or the right region, wherein the consolidated luminance difference of top and bottom regions is dif TB =max(|ave T −aveImg|,|ave B −aveImg|); consolidated luminance uniformity of top and bottom regions is std TB= min(std T ,std B ), consolidated luminance difference and uniformity of left and right regions is dif LR =max(|ave L −aveImg|,|ave R −aveImg|), consolidated luminance difference and uniformity of left and right regions is std LR =min(std L ,std R ); and utilizing portrait orientation if difLR−difTB>t 1 && stdTB−stdLR>t 2 or if difLR−difTB>t 3 && stdTB−stdLR>t 4 , otherwise, utilizing landscape orientation.