Chrissirhc
Programmer
Hello I making a memmory intensive program. I need to store the coordinates of pixels in an array. I was thinking of making a point object that takes in an x and y integer and that is it. Will this object take up more memmory than just the two integers. This is important as my there are about 2000000 pixels. Is this the best way to do it.
I couldn't represent the data just using arrays I think. What I need is to have an array which holds a x and y coord for a pixel and then what label it has i.e position x=5 y=7 could belong to the no. 8 family. How else could this be represented. Also the label must be equal to the index.
With my own point object I could have an int[label]=point;
Any suggestions?
Thanks in advance
Chris
I couldn't represent the data just using arrays I think. What I need is to have an array which holds a x and y coord for a pixel and then what label it has i.e position x=5 y=7 could belong to the no. 8 family. How else could this be represented. Also the label must be equal to the index.
With my own point object I could have an int[label]=point;
Any suggestions?
Thanks in advance
Chris