Hi, for a program, I need to map the location of all the back pixels in an image into some kind of structure. The program later uses the structure to select a random pixel location. It then removes the location, to prevent it being used again. The problem is, there is a huge number of black pixels (close to 40,000) so an ordinary array takes forever to search for and eliminate the "used" pixels. Is there some other "Faster" data structure?
Xcelled194
28
Junior Poster in Training
Recommended Answers
Jump to Post>Is there some other "Faster" data structure?
Yeah! but tell me about your plan and currently used "data structure".
All 3 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
katmai539
62
Junior Poster in Training
Xcelled194
28
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.