Given the input and the output:
Input Output
10011100 10010100
10000100 00000000
11111100 10000100
10000011 00000011
10100010 10100010
Are there any operations that can be performed on the rows / cols to get the result? For example, my best try was
((Y AND NOT Y-1) XOR (Y AND NOT Y+1)) OR ((X AND NOT X-1) XOR (X AND NOT X+1))
When no row/col exist, it is assumed to be false. A demonstration of my try:
For Y:
(Y AND NOT Y-1) XOR (Y AND NOT Y+1) =
10011100 00011000 10000100
00000000 00000000 00000000
01111000 01111100 00000100
00000011 00000001 00000010
00100000 10100010 10000010
For X:
(X AND NOT X-1) XOR (X AND NOT X+1) =
10010000 10000100 00010100
10000100 10000100 00000000
10000000 00000100 10000100
10000010 10000001 00000011
10100010 10100010 00000000
OR'ing those 2 results:
((Y AND NOT Y-1) XOR (Y AND NOT Y+1)) OR ((X AND NOT X-1) XOR (X AND NOT X+1))
10010100
00000000
10000100
00000011
10000010
As you can see, it is almost identical as the output, but the COL 3, ROW 5 is 0 instead of 1. Is there any way I can do other operation to take that bit into account?
Thanks in advance.