Hi!
This is my first post, so here is an short intro: my name is Bernhard, I live in Salzburg, Austria and I am doing astrophotography for over 20 years with some years break between. My second start in astrophotography I did with PixInsight, and I really enjoy working with this great software.
Now, finally, I think I need your help.
I´d like to apply this operation to an image:
translate(grey, round((25-10)*random()+10), 10)
This should shift the image "grey" a random number of pixels between 10 and 25 in x-axes and 10 pixels in y-axes.
But I always get the error message
"*** Error: translate() argument #1: Must be an image reference or a functional subexpression evaluating to an image"
Without using the random-function the translation works fine, e.g.
translate(grey, 7, 10)
Can please someone tell me what I am doing wrong?
Kind regards,
Bernhard
This is my first post, so here is an short intro: my name is Bernhard, I live in Salzburg, Austria and I am doing astrophotography for over 20 years with some years break between. My second start in astrophotography I did with PixInsight, and I really enjoy working with this great software.
Now, finally, I think I need your help.
I´d like to apply this operation to an image:
translate(grey, round((25-10)*random()+10), 10)
This should shift the image "grey" a random number of pixels between 10 and 25 in x-axes and 10 pixels in y-axes.
But I always get the error message
"*** Error: translate() argument #1: Must be an image reference or a functional subexpression evaluating to an image"
Without using the random-function the translation works fine, e.g.
translate(grey, 7, 10)
Can please someone tell me what I am doing wrong?
Kind regards,
Bernhard