But whenever I choose some combination of odd valued width and height of the ROI I get a weird display as shown below...
ORIGINAL IMAGE
IMAGE OF THE ROI SELECTED
Do I need to do some modifications? Is windows 7 having some problem in displaying? The same ROI when displayed with imshow() displays correctly...any one help me..thanx in advance...
This might be a padding issue. You haven't said what the type of your frame variable is, but IPLImage has a widthStep field. Use this constructor for QImage
QImage ( uchar * data, int width, int height, int bytesPerLine, Format format )