![]() ![]() Nodebox grabs the R, G, and B value of the pixel with 3 independent nodes filtering the data and creating a long list of each.the 24 bit RGB value is converted from “16777215” to “255,0,0” in a file with column labels “R,G,B”.pixel is saved as a 24 bit RGB value of “16777215” in a comma separated list, ordered by column top to bottom, left to right.Here is the journey of a single pixel from start to finish: Once the data had been formatted, it was fed into NodeBox. ![]() This was important because a measly 200px by 200px image will generate 40,000 pixel values! I used bitwise operators to reformat the values and it took a few tries to get the script to run fast. For NodeBox to properly utilize this, I needed to reformat from a single 24 bit value to 3 different RGB values for each pixel. The data was in the form of a 24 bit RGB color value of each pixel. NodeBox can read data sets and I had done some projects in the past with AutoHotKey creating and interpreting data with similar formatting, so made a script capable of saving an image as a individual color values. I needed something that used concepts I was familiar with and did not have such a steep learning curve. Researching this subject yielded mostly Python programs people were using to extract the data, but I did not know anything about Python. I didn’t yet know how to get the pixel data, I had never extracted data from an image like that. I wanted to somehow be able to retrieve the information for each pixel: location, hue, value, and use these parameters to influence the vector shapes. I knew I wanted to use NodeBox to create an individual vector shape mapped to each pixel of an image. I have used Nodebox in the past to generate images from a data set, so it got me thinking about how I could feed image data into NodeBox and control it with the program. The width of the rectangles were made narrower to create the appropriate color of the halftone image. I saw a nifty image using a custom made halftone pattern of overlapped rectangles that were cyan, magenta, and yellow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |