This video shows a performant way of getting the pixels from an image in java. Below I have links to some helpful resources if you are interested.
GoWall:
https://github.com/Achno/gowall
jawall (my repo, I do not recommend using)
https://github.com/iceiceninja/jawall
Stack overflow page that where I got my code from
https://stackoverflow.com/questions/6...
I am new to this but still wanted to share what I had learned. If you have a better way about doing this please leave a comment explaining or showing a reference!
Also remember, this is only if you want your code to run faster for larger images. If getting pixel values for your larger images is not a main priority then this code adds unneeded complexity to your codebase.