Get a disparity image

Using just pyzed(not use opencv), I want to get a disparity image.
Could you know how to do that?

% I know I can get the array of disparity value using zed.retrieve_measure(disparity,sl.MEASURE.DISPARITY,sl.MEM.CPU)
dis_map = disparity.get_data(),Next step I don’t know what to do to get a disparity image.

Hi, and welcome to our forum,

The disparity map is a 1-dimension image. What other image do you want ?


Thanks your response. now I know how to get dtepth_map, but I still want to get a disparity image,if using pyzed and opencv whether have any example ?