If you have the wall as a black and white layer then cant you mega blur it (may need a resize to say to 25% just to keep the speed up ) and then clamp everything not quite white to black then blur heavily again and thats your mask for whats inside the wall.