Place some points on outlines with G'MIC

@lylejk your idea gave me ideas!

Perhaps a ‘sprite cloud’ or shape average could do this, G’MIC indeed has the means. But what if we use convolution instead?

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

Given this, we can continue as follows:

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]

And the output:

1 Like