image processing (mainly opencv) indexing conventions -


i trying understand indexing conventions of image processing type functions, in opencv.

so indexing pixel [row, column] i.e. y,x, right? think pretty common in image processing.

but when picking points rectangle in opencv requires [col, row] i.e. x,y. , true function wants cvpoint

so if writing function say, takes sample coordinate in image, should [col, row] or [row, col]?

internally image almost stored in rows - index naturally [row,column]

but in maths x,y more common function asks individual pixel coordinate better f(x,y)

opencv confuses matters creating images call specifies image (rows,cols) ie. image(height,width) nam image cols-rows ie 640x480 or 1920x1080


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -