Hi team.
I have images in a 2d-array. each image is representing a colored image and acts as a timestamp having the colors representing a value
The images contain 12 months and for each month 16 hrs ( 2D-array= [12][16]);
to display the pictures it goes well and fast once in draw mode ( loading takes 12 secs though).
for (int t=1; t<12; t++){
for (int m=6; m<22;m++){
editImage=loadImage(dataPath("\\pic_solar\\dirdiff\\dirdiff_"+ t+m + ".png"));
solarData[t-1][m-6]= editImage.get(77,30,1138,844); //Get a portion of the loaded image with
}
}
Though i am aiming to do simple subtraction or addition to for instance have an annual outcome.
Accessing the data is harder as initially thought.
Initially i thinked this would be faster as bringing .csv data in (becomes quite large) so started to import the data as color images. Having in mind I would add or subtract the r,g,b, integers per pixel afterwards in a separate array. it seems that might be wrong with this approach as it results in many nested loops (accessing a 2-d array for the image itself and then two to access each pixel ).
Does any of you can point me out it is indeed a wrong approach or that i miss an essential step. It could be that PImage file formats can be added (i saw a blendmode) , then having to only map the rgb data so it stays within 0-255. Hoping having the data ready in a 2d-Array as now can lead to a timefriendly operation.