nicolaspanel / numjs

Like NumPy, in JavaScript
MIT License
2.4k stars 184 forks source link

How to read individual image pixels? #127

Open fromb2b opened 2 years ago

fromb2b commented 2 years ago

Hi,

I would like to know wether it's possible to read image pixels individually instead of reading the entire image. The reason is that I need to store time series data for specific pixels and I don't have storage capacity for the entire image.

I am looking for a function that does individual reading in the form of:

nj.images.read("test.png")[x][y]

Do you have any suggestions?