Hi:
I know many of you have much more experience with the PixelMath so I thought I'd ask:
I want to make a function that does the following:
Takes an image as input (FYI I will be using odd integer upscaled images here... i.e. image with flat homogeneously coloured 3x3, or 5x5 or 7x7... squares in it.)
For each pixel in the image: leave it alone IF no other pixels within a square size are different from it (i.e. check x +1 -1 combinationions with +1 -1 or +1 -1 +2 -2 etc.)
Make it zero if ANY other pixel within the square size is different.
The idea is to make a grid of dots at the center of the squares having the value of the square, but the rest of the squares being black.
I'm sure I can use an iif function, but it looks kind of messy from there, must be a better way than what I would do!
Any help would greatly be appreciated!
cheers
Colin