Can you post the image, or one like it? If it's simple-looking enough to work with, it might not be too hard. If not, you actually might want to re-draw it yourself using rectangles, even if it is tedious.
You can use flood fill, but you need to have coordinates inside each block. It can be made quite simply by making a secondary sketch showing your image, and recording mouse click coordinates in a file, in a given order, or in combination with code given on keyboard.
@PhiLho - Thanks!! You mean I should record all the x,y co-ordinates by clicking on the sample image i posted above and then use those coordinates in functions like rect() ? Any examples of recording mouse click events for an image file and obtaining these coordinates ? ( I am still new to processing so any help would be appreciated)
My idea was to use flood fill, but it won't work because you have text in your rectangles. Drawing a rectangle with transparency over your map can work. Recording: manage mouseClick(), put mouseX, mouseY in a PVector, store it in an array list. On a keyPressed(), for example, you can put the coordinates in an array of strings and use saveString() to put them in a file. Sorry, no time right now for real code.
Leave a comment on PhiLho's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic