dds icon indicating copy to clipboard operation
dds copied to clipboard

About DDS stream B encode.

Open letian-zhang opened this issue 5 years ago • 1 comments

Hi, I have read your paper. Great work. In the paper, DDS sets pixels outside of the feedback regions in the high-quality image to black and encodes these images into a video file. However, I don't find where this process is in your code. Thus, where is the code that sets outside of the feedback regions in the high-quality image to black?

Thank you for your help.

letian-zhang avatar Feb 17 '21 16:02 letian-zhang

In dds_utils.py, the crop_images function contains these two lines:

        if region.fid not in cropped_images:
            cropped_images[region.fid] = np.zeros_like(cached_image[1])

So the background of the high-quality image will be (R,G,B) = (0, 0, 0), which is black.

KuntaiDu avatar Feb 19 '21 01:02 KuntaiDu