POV-Ray : Newsgroups : povray.general : Topographic map to height field? : Re: Topographic map to height field? Server Time
19 Nov 2024 11:23:26 EST (-0500)
  Re: Topographic map to height field?  
From:
Date: 1 Mar 2002 09:08:33
Message: <o32v7u8vupklv52nfr4jr3b31ubk990pid@4ax.com>
On Fri, 01 Mar 2002 08:36:01 -0500, "Timothy R. Cook"
<tim### [at] scifi-fantasycom> wrote:
> if there's an
> even easier way, I'd like to know about it!

I don't know how accurate is input and how accurate should be output but try
this:

1. Open image with lines in image manipulation software.
2. Assign each height to separate intensity of gray with rule: lowest height
is black, largest height is white.
3. Take filler/bucklet tool and fill each region (and line) of height range
with apropriate gray intensity (I hope lines are closed)
4. Look for largest distance beetween height-lines and perform blur/smooth
operation with this size/2 as radius.
5. Save image and use it as heigh field.

in step 3 if lines are not closed then add extra pixels to close it.

in step 4 you can experiment with lower radius of blur, handy blur with pencil
and/or separate blur for pairs of heights

ABX


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.