Strange error here

Hi, while working on dla fractal. It seems that I have managed to create 500+ images that are not of use with this code. My intention is to have noise_poisson work as sometimes it can fail.

rep_dla code
#@cli rep_dla: _density
rep_dla:
world_width=${-max_w}
world_height=${-max_h}

$world_width,$world_height,1,1 

l. .

 radius=1

 do
  l
   error_condition=0
   noise_poissondisk.. $radius%,10
   onfail 
   error_condition=1
   radius+=1
  endl
 while $error_condition

 eval "
 const cx = round((w#-1-1)/2); 
 const cy = round((h#-1-1)/2);
 i(#-1,cx,cy)++;
 i(#-2,cx,cy)=0;
 "
endl 
C:\WINDOWS\system32>gmic 100,100,1,1 rep_dla
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Input black image at position 0 (1 image 100x100x1x1).
[gmic]-3./ Display images [0,1,2] = '[unnamed], [unnamed], [unnamed]_c1'.
.......
[gmic]-503./ End G'MIC interpreter.

Even weirder is this.

image

Also, dar_remove doesn’t seem to work with extract. I know I have to create empty images and then insert them one by one to get around that. Not my fave thing to do.

Have you noticed that you are working with a volumetric images (depth=2), so a 2x2x2 image ?
I suspect this is not intended.

No, it’s not intended, and I have no idea how I got it from that. I did found my solution that doesn’t cause the problem.