I am new to OpenCV, I tried this image processing code
But getting error as
<Error>: CGBitmapContextCreate: invalid data bytes/row: should be at least 2000 for 8 integer bits/component, 3 components, kCGImageAlphaNoneSkipLast.
<Error>: CGContextDrawImage: invalid context 0x0
Any idea?