Opacity levels might be corrupted as input (first time): compute robust opacity from two layers