So i have a program written already that captures the image from a webcam, into a vector called pBuffer. I can easily acess the RGB pixel information of each pixel, simply by pBuffer[i]=R;pBuffer[i+1]=G;Buffer[i+2]=B. No problem in here.
The next step is now create an IplImage* img, and fill it in with the information of the pBuffer...some sort of SetPixel.
There is a SetPixel Function on the web, that is :
(((uchar*)(image>imageData + image>widthStep*(y))))[x * image>nChannels + channel] = (uchar)value; being the value the pBuffer information, x and y the pixel coordinates.However i simply cannot put this to work. Any ideas?? Is in C++.