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 shortint** 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?