Danger time - me and pixelmath again! This is purely a learning question!
Background: Okay, I've a really poor image taken during the very bright moon phase we are in at the moment, but I'm itching to get to know my new kit. So, I've run a very aggressive ABE which does the job of getting shot of the moonlight, but does show up the auto-focus banding from my Canon DSLR (which Canon insist isn't a bug and only shows up with heavy processing.....). After I've run the Canon banding reduction I'm left with a series of brightly coloured pixel rows. So, having gotten very bored with a single pixel row clone stamp I though pixelmath would be the key - and it is.
The Question: Bear in mind I'm a pixelmath dummy here, the following expression works for row 370 (I just set it to row 369):
iif(y()==370,pixel($T,x(),y()-1),$T)
Basic read is if the y coordinate is row 370 then replace the data with row 369.
I know the answer to this already I fear (use Javascript), is there a way to prompt for row number?
If I'm right, and do know the answer, I haven't been brave enough to try Javascript yet (I do the vast majority of my programming in Visual Basic) so if I set up an array with all offending rows and iterate the array doing the replacement, what would my execution function look like? Are there some example js files floating about?
Thanks,
David