In Photoshop, press ctrl+j to duplicate the layer, then use the "Gausian blurr," filter on the top layer. after applying that filter just erace where you want to be clear and sharp. That way is much more effective and can be far more precise for small lines and details. Seeing as how not quite everything in the background/foreground is blurred. there's space arround the cake.