Verified that mask array returns as expected. Issue now is that getValueAt isn't getting the right values into the block_cr array to check them.