We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Im trying to combine an image segmentation code with another piece of code that takes the segments from the image segmentation and applies them to a different image. I need some help to figure out how to automate the process.
The image segmentation code is: https://pastebin.com/0sKxKJDF
The two codes im running in processing are:
which looks like: http://imgur.com/a/ggPNb
The image I am using currently is: http://imgur.com/a/87ybb
Since the image segmentation code is written in Python, I needed to download the Python libraries Scipy, Numpy, Matplotlib and Scikit from http://www.lfd.uci.edu/~gohlke/pythonlibs/
This is the code that I need to take the segments created and assign them to another image of my choice:
The idea I had was for all the segments that are created by sketch 1 to go into the data folder in sketch 2 and they would be assigned to my image. Right now sketch 2 looks like: http://imgur.com/a/UUSx3 with the data folder being empty.
The image I am currently using is: http://imgur.com/a/3XYzJ
I need to figure out some way to automate the image container process in sketch 2, so that it takes a certain amount of segments from sketch 1.
I would like to move sketch 2 into sketch 1, so they just become one sketch file.
Right now If I manually take just the first three of the segments from sketch 1 and put them in the sketch 2 data folder I come up with this final product: http://imgur.com/a/sIZuA
Which doesnt quite look right because I haven't figured out how to scale back and overlap the segments either, and it appears to assign the segments to the white area of the image as well.