I want to use OpenCV2.0 and Python2.6 to show resized images. I used and adopted the example at
but unfortunately, this code is for OpenCV2.1 and seems not to be working on 2.0. Here my code:
import os, glob
ulpath = "exampleshq/"
for infile in glob.glob( os.path.join(ulpath, "*.jpg") ):
im = cv.LoadImage(infile)
thumbnail = cv.CreateMat(im.rows/10, im.cols/10, cv.CV_8UC3)
Since I cannot use
instead, which was no problem in other applications. Nevertheless, cv.iplimage has no attribute rows, cols or size. Can anyone give me a hint, how to solve this problem? Thanks.