I like to follow the following procedure:
1) select picture
2) mark in the picture the colors that should appear in the output
3) detect the regions with different colors based on step 2 (this is what we are talking about)
4) create LDraw file
There are more steps behind, but this should be the steps the user should make.
Rolf has already made a good region detection on the picture if not choosing black but a grey. So he adjusted the treshhold value. But this can be done only manually by the user.
I fear that the attempt from Travis will also do not give better results if no further user action is taken. But I like to keep the user action to a minimum, so everybody should be able to make a LDraw file from a picture
If you have more questions please ask.
1) select picture
2) mark in the picture the colors that should appear in the output
3) detect the regions with different colors based on step 2 (this is what we are talking about)
4) create LDraw file
There are more steps behind, but this should be the steps the user should make.
Rolf has already made a good region detection on the picture if not choosing black but a grey. So he adjusted the treshhold value. But this can be done only manually by the user.
I fear that the attempt from Travis will also do not give better results if no further user action is taken. But I like to keep the user action to a minimum, so everybody should be able to make a LDraw file from a picture
If you have more questions please ask.