1 | initial version |
first note: Avoid this.
This code basically had pointer of type unsigned character which is assigned the address of the yth row of the image. the address is cast to Unsigned char type before assignment.
for IplImage structure
->imageData is the start of image data skipping the image header data
->widthStep is the size of a row of pixels in the image.