quad2dat program


Re: quad2dat program
#15
Hey,

Michael Heidemann Wrote:The colour mapping to existing LDraw colours did not what I expected (there are still too many colours envolved and the formerly nearly one colour surface is brocken because some colours are matched to dark color value and other to light colour value, so visible it distorted the picture).

So I think the best way for a sticker is to leave the colours like they are scanned.

I do not agree. The results would be much better, if you only quantize with the colors you are expecting in the results. In your example this would only be white and blue (and green?). Some time ago I experimented with a similar task. I wrote a tool where you can choose the colors for the color quantization on the original image by mouse click.

Michael Heidemann Wrote:To minimize the filesize in my opinion it is the best to scan each line, and if the neighbour quad has the same colour combine them. (I did not code this yet). This should (I guess) cut the number of lines by 50%.

This would still guide to many quads and, I think, many t-junctions.

For this issue, I choose another way. I use the color reduced image as input for an algorithm that I derived from potrace: Walk around the same colored areas (pixel by pixel) and memorize the paths. In a few following steps I try to simplify and smooth these paths (more or less). The result is used as input for the tool triangle (this is also used in txt2dat).

I will try to give you in example shortly.

Rolf
Reply
« Next Oldest | Next Newest »



Messages In This Thread
quad2dat program - by Remco Canten - 2013-08-21, 19:27
Re: quad2dat program - by Michael Heidemann - 2013-08-22, 19:12
Re: quad2dat program - by Remco Canten - 2013-08-22, 21:48
Re: quad2dat program - by Willy Tschager - 2013-08-23, 7:35
Re: quad2dat program - by Michael Heidemann - 2013-08-23, 19:55
Re: quad2dat program - by Magnus Forsberg - 2013-08-23, 21:03
Re: quad2dat program - by Michael Heidemann - 2013-08-23, 21:30
Re: quad2dat program - by Magnus Forsberg - 2013-08-23, 22:10
Re: quad2dat program - by Michael Heidemann - 2013-08-24, 20:45
Re: quad2dat program - by Travis Cobbs - 2013-08-25, 19:08
Re: quad2dat program - by Michael Heidemann - 2013-08-25, 19:19
Re: quad2dat program - by Michael Heidemann - 2013-08-26, 21:08
Re: quad2dat program - by Tim Gould - 2013-08-26, 22:10
Re: quad2dat program - by Travis Cobbs - 2013-08-26, 22:50
Re: quad2dat program - by Rolf Osterthun - 2013-08-27, 10:02
Re: quad2dat program - by Rolf Osterthun - 2013-08-29, 20:17
Re: quad2dat program - by Tim Gould - 2013-08-29, 21:41
Re: quad2dat program - by Philippe Hurbain - 2013-08-30, 8:28
Re: quad2dat program - by Philippe Hurbain - 2013-09-13, 9:42
Re: quad2dat program - by Rolf Osterthun - 2013-09-16, 20:02
Re: quad2dat program - by Philippe Hurbain - 2013-09-17, 7:16

Forum Jump:


Users browsing this thread: 3 Guest(s)