Newbie Question
Posted: 2019-02-09T12:25:29-07:00
I am a complete newbe to image processing. I want to convert an array of pixels from a jpg image. I currently have an physical array made from ws2812 led strips. the current size is 10 by 30 pixels (very low resolution!) but eventually I will make it much larger.
I need to take an image and convert it to an array of rgb values. I will deal with scaling at some point but first I want to be able to create the array that I can then write to the LEDs from an Arduino program. What would be perfect would be something like pic(x,y) value = 64, 255,128. Of course there are many ways to express the value and as long as I can send it to the LEDs (using FastLED) I am very happy!
I expect to make the array off line from the Arduino on a windows pc. Then it will be written to a file on a SD card. The Arduino program will read the file and write it to the LEDs.
I see examples of creating an image from the array but not creating the array from an image.
Any help would be greatly appreciated.
Thank you.
Gary
I need to take an image and convert it to an array of rgb values. I will deal with scaling at some point but first I want to be able to create the array that I can then write to the LEDs from an Arduino program. What would be perfect would be something like pic(x,y) value = 64, 255,128. Of course there are many ways to express the value and as long as I can send it to the LEDs (using FastLED) I am very happy!
I expect to make the array off line from the Arduino on a windows pc. Then it will be written to a file on a SD card. The Arduino program will read the file and write it to the LEDs.
I see examples of creating an image from the array but not creating the array from an image.
Any help would be greatly appreciated.
Thank you.
Gary