Place some points on outlines with G'MIC

@garagecoder

Bonjour,

There is a small typo error in the ‘example_shapecloud’ tests.
I enclose the code and an example of this very nice filter in G’MIC GIMP.

:o)

example_staroutline 0.05,10

example_shapecloud : -check ${"is_image_arg $1"}" && isval(${2=9})"
  -repeat $! -pass$1 0 -l[$>,-1]
    kw={$2+1-$2%2} r. $kw,$kw,1,1,5 n. 0,1
    +gt[0,1] 0 convolve[-2] [-1] -rm.
    convolve[0] [1] rm[1] +eq. 0 +[-2,-1] /
  -endl -done

example_staroutline : skip ${1=0.2},${2=11}
  normalize[-1] 0,255
  blur[-1] 2
  isophotes[-1] 6
  100%,100%,1,1
  noise[-1] 0.5,1
  lt[-1] {$1-0.5}
  mul[-1,-2]
  shape_star ,
  example_shapecloud[-2] [-1],$2
  rm[-1]

1 Like