Welcome! Log In Create A New Profile

Re: quad2dat program
August 27, 2013 03:02AM

Michael Heidemann
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
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.

quad2dat program Remco Canten602August 21, 2013 12:27PM
Re: quad2dat program Michael Heidemann232August 22, 2013 12:12PM
Re: quad2dat program Remco Canten254August 22, 2013 02:48PM
Re: quad2dat program Willy Tschager224August 23, 2013 12:35AM
Re: quad2dat program Michael Heidemann250August 23, 2013 12:55PM
Re: quad2dat program Magnus Forsberg247August 23, 2013 02:03PM
Re: quad2dat program Michael Heidemann229August 23, 2013 02:30PM
Re: quad2dat program Magnus Forsberg233August 23, 2013 03:10PM
Re: quad2dat program Attachments Michael Heidemann241August 24, 2013 01:45PM
Re: quad2dat program Travis Cobbs219August 25, 2013 12:08PM
Re: quad2dat program Michael Heidemann207August 25, 2013 12:19PM
Re: quad2dat program Michael Heidemann251August 26, 2013 02:08PM
Re: quad2dat program Tim Gould244August 26, 2013 03:10PM
Re: quad2dat program Travis Cobbs249August 26, 2013 03:50PM
Re: quad2dat program Rolf Osterthun292August 27, 2013 03:02AM
Re: quad2dat program Attachments Rolf Osterthun286August 29, 2013 01:17PM
Re: quad2dat program Tim Gould199August 29, 2013 02:41PM
Re: quad2dat program Philippe Hurbain192August 30, 2013 01:28AM
Re: quad2dat program Philippe Hurbain211September 13, 2013 02:42AM
Re: quad2dat program Rolf Osterthun236September 16, 2013 01:02PM
Re: quad2dat program Philippe Hurbain403September 17, 2013 12:16AM

Sorry, only registered users may post in this forum.

Click here to login