For example, I have ten 16*16 planes, ten 8*8 planes, ten 4*4 planes and 1000-bit binary array. I need to map information with the bit-planes. So first I search in 16*16 planes, if anything matches, then I consider one more 16*16 data and search for matching plane. If not, I go to 8*8 and 4*4 planes, If anyone is matched then I start again from 16*16 data. Please provide the code or logic.
Thanks in advance.