When I try to set frame ROI it fills up empty pixels, from given x to the end of input image. ROI is extracted well, can anyone tell me why isn't it 30 pixels wide as it should be? Image is resized from original size to 640x360.
resize(frame, frame, Size(), 0.5, 0.5, INTER_LINEAR);
Mat roi = img(Rect(460, 0, 30, 300));
Image is shown below.