返回列表 回复 发帖
18# changxde
这要考虑M集和J集的关系。
33# changxde

谢了,有空研读。
51# changxde


常老师的着色太好了,是用色带吗?
uf着色之-三角不等式平均法
此法榕老师研究过,这两天一直在研究,效果不好。希望大家共同研究。
Triangle {
;
; Variation on the Triangle Inequality Average coloring method
; from Kerry Mitchell. The smoothing used here is based on the
; Smooth formula, which only works for z^n+c and derivates.
;
; Written by Damien M. Jones
;
init:
  float sum = 0.0
  float sum2 = 0.0
  float ac = cabs(#pixel)
  float il = 1/log(@power)
  float lp = log(log(@bailout)/2.0)
  float az2 = 0.0
  float lowbound = 0.0
  float f = 0.0
  BOOL first = true
loop:
  sum2 = sum
  IF (!first)
    az2 = cabs(#z - #pixel)
    lowbound = abs(az2 - ac)
    sum = sum + ((cabs(#z) - lowbound) / (az2+ac - lowbound))
  ELSE
    first = false
  ENDIF
final:
  sum = sum / (#numiter)
  sum2 = sum2 / (#numiter-1)
  f = il*lp - il*log(log(cabs(#z)))
  #index = sum2 + (sum-sum2) * (f+1)  
default:
  title = "Triangle Inequality Average"
  helpfile = "Uf*.chm"
  helptopic = "Html/coloring/standard/triangleinequalityaverage.html"
  param power
    caption = "Exponent"
    default = 2.0
    hint = "This should be set to match the exponent of the \
            formula you are using. For Mandelbrot, this is usually 2."
  endparam
  param bailout
    caption = "Bailout"
    default = 1e20
    min = 1
$IFDEF VER40
    exponential = true
$ENDIF
    hint = "This should be set to match the bail-out value in \
            the Formula tab. Use a very high value for good results."
  endparam
}
我用以下原理实验:
未命名.JPG
迭代后对sum用et求平均。用这个结果着色有那么点意思。
69# 榕坚


效果不好。#pixel是c即Z1。榕老师我的理解不知对否?
效果不好,也上传一下。或许给大家有帮助。常老师给平滑一下。
无标题.jpg

从头学分形-6简易矩形et-dem扫描平台.gsp (30.29 KB)

72# changxde


求sum的公式中分母可改为加上10^-30效果可能好一点,这主要是让分母不为0。uf中的光滑算法怎么用在这上呢,我试了不行?
返回列表