GreycLab / gmic

GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Other
75 stars 14 forks source link

Feature Request - Add p: current processed position of the associated image #4

Closed Reptorian1125 closed 1 year ago

Reptorian1125 commented 1 year ago

I been working on combinatorics tools recently, and there are things like this:

  axis==2?(
   axis()=z;
  ):
  axis==1?(
   axis()=y;
  ):(
   axis()=x;
  );

In conjunction to this example:

num_of_combinations,axis={permut($2,$1,1)},{_'$3'-_'x'}

So, to simplify this problem, one should have the option to have p. If the end output is a vector, then p would be based on the x,y,z position, otherwise, x,y,z,c.

Reptorian1125 commented 1 year ago

In order for this to work, the JIT compiled needs to know if the result will be a vector or not. I don't think this is feasible. Closing this.