POV-Ray : Newsgroups : povray.advanced-users : re HF heights : Re: re HF heights Server Time
30 Jul 2024 06:18:13 EDT (-0400)
  Re: re HF heights  
From: Margus Ramst
Date: 2 Jul 2000 22:04:35
Message: <395FE6BC.A5196A39@peak.edu.ee>
Christoph Hormann wrote:
> 
> HF-Lab contains a function for something quite similar, namely filling up local
> minima, source code (in C) can be found at:
> 

I am aware of the function ("fillbasin" or something?), but IIRC it requires
several passes and takes a while to compute even in HF-Lab. Probably not
practical in POV script.
However, you could let HF-Lab itself to do the hard work for you: have the fill
function go over your HF a few times, then use the resultant HF (having fewer
local maxima) with the method I suggested.
In fact, even this might be unnecessary: I think HF-lab can find the first and
second derivatives of HF data, so it should be possible to create a filter
script to find and "mark" the local maxima. Perhaps I'll look into it in a day
or two - or perhaps it is best left to someone who actually knows something
about maths ;)

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg


Post a reply to this message

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