How to get continuous scene depth pass?

I got the scene depth pass with the sequencer:

But the depth is segmented, just like figure (a). Is there a way to get a continuous depth map, just like figure (b)?