Re: contour shading
- From: humbert.klyka@xxxxxxxxx
- Date: 7 Feb 2006 06:09:50 -0800
Hi
Maybe it would help if you could provide some images, of the original
contours, and where your algorithms fail?
My initial idea is to loop through from the lowest contour
Fill the areas inside each contour
and sum all filled contour images.
That would give you a platform image, from which you could once again
loop through each level, and for each pixel in that level, chose the
color as an weighted average of the current color and the higher one,
dependent on the distance to nearest border.
Maybe you've tried that approach?
Another reason for blockiness, might be that the contours doesnt
contain all information, so that you would have to add some additional
smoothing in areas with discontiunities, for example gaussian smoothing
with strength proportional to the gradient or something similar.
/Humbert
.
- Prev by Date: any shear can be achieved by combining rotation and scale
- Next by Date: Re: any shear can be achieved by combining rotation and scale
- Previous by thread: Re: contour shading
- Next by thread: Re: contour shading
- Index(es):
Relevant Pages
|