Jack68 wrote:
Here is the stacked image,
Hard to tell from this small image, but I'd guess that you didn't take enough shots and/or the interval is too great for the depth of field for the distance/focal length/aperture you've selected.
Here is how I would handle it. Assuming your lens is sharpest at F8, consult a DoF table or calculator to see what your actual DoF is. I use DoF Master but you can use any online calculator - they will generally give you the same results.
Let's say you place the camera so that it's sensor (not the front of the lens) is 24" from the leading edge of the bowl, you are using a 35mm lens at F8 on a cropped sensor camera, like a Nikon D7200 or something similar. With the settings above, your DoF for "acceptable" focus at 24" (leading edge of the board) is 3.62 in. But for sharper focus I would set the calculator to determine DoF for an aperture of F4. This will ensure that you have critical focus, not just "acceptable." Keep in mind that as you adjust your focus to the rear edge of the bowl your sensor plane to subject has increased and your DoF will increase. The key is to overlap your focus steps so that there are no gaps.
Focusing at 24" your field of focus is from 23.1" to 24.9"
At 25" it's 24.1" to 26"
At 26.5" it's 25.4" to 27.7"
At 28" it's 26.8" to 29.3"
At 30" it's 28.6" to 31.5"
And finally if you focus to 32.5", the field of focus will cover from 30.9" to 34.3"
In six focus "steps" you have created a stack that will be in critical focus from 23" to 34.3" which is more than enough to take in the entire scene. Using the values for F4 even though you are actually shooting at F8 will help ensure that there is sufficient overlap.
If you are shooting down on the subject, the distance from the front of the bowl to the rear will be shorter, but the top of the pile of fruit will be closer, so you'll need to take that into consideration. Using live view to focus can sometimes help.
Needless to say you should use manual focus and manual exposure, camera mounted on a sturdy tripod, and a fairly low ISO for maximum image quality. If you are in doubt about how many focus steps to take, then take more smaller steps. From an image quality point of view, there is no downside to taking too many steps, but gaps will be easy to spot.
Hope this helps.