I have color jepg image.
I got the following output for imfinfo
>> I=imfinfo('D:\images\im.jpg');>> II = Filename: 'D:\images\im.jpg' FileModDate: '03-Jul-2008 01:10:24' FileSize: 184721 Format: 'jpg' FormatVersion: '' Width: 500 Height: 500 BitDepth: 24 ColorType: 'truecolor' FormatSignature: '' NumberOfSamples: 3 CodingMethod: 'Huffman' CodingProcess: 'Sequential' Comment: {}
But when I try to get no of columns and rows from the matrix of the same image I got
I=imread('D:\images\im.jpg');[r1 c1]=size(I);>> r1r1 = 500>> c1c1 = 1500
I am getting 500 which is correct rows but 1500 value for column. Why? Is this for 500 * 3 for 3 different channels?
Best Answer