Re: [Tutor] Error in get pixel value in coordinate (x, y) using getPixel(x, y)

2014-08-07 Thread Joel Goldstick
On Thu, Aug 7, 2014 at 7:49 AM, Whees Northbee wrote: > Please help me... I'm using python 2.7.6, numpy 1.8.1, opencv 2.4.9.. > I want to get pixel value in one number like 255 not each value like these > R(190), G(23), B(45) from coordinate (x,y)... > I try these code > m_samples[k][i][j]=getPixe

Re: [Tutor] Error in get pixel value in coordinate (x, y) using getPixel(x, y)

2014-08-07 Thread Alan Gauld
On 07/08/14 12:49, Whees Northbee wrote: Please help me... I'm using python 2.7.6, numpy 1.8.1, opencv 2.4.9.. I want to get pixel value in one number like 255 not each value like these R(190), G(23), B(45) from coordinate (x,y)... What do you expect that number to look like? The pixels are rep

[Tutor] Error in get pixel value in coordinate (x, y) using getPixel(x, y)

2014-08-07 Thread Whees Northbee
Please help me... I'm using python 2.7.6, numpy 1.8.1, opencv 2.4.9.. I want to get pixel value in one number like 255 not each value like these R(190), G(23), B(45) from coordinate (x,y)... I try these code m_samples[k][i][j]=getPixel(img,row,col) But get error: NameError: name 'getPixel' is not