2D array or 2D vector


I am writing a program to process images. The aim is first to read the image pixel values and apply some different filters.

I have a image class which holds the pixel data. I thought of keeping the data into a 2d array with short int** pixelVal. The images are large and i am wondering if i should use 2d vectors for this. Is there a difference in terms of performance or memory size? or can you suggest a more efficient value to keep an image pixel values?

get the OpenCV libraries and use them. that's probably the easiest way, since there are already a lot of image processing functions implemented
Topic archived. No new replies allowed.