Skip to content

ROI-based encoding, the block artifacts and ROI region offset issue. #389

Open
@mlkk518

Description

Thank you very much for your open source work. I am using your code to test ROI-based encoding, and the block effect is especially obvious at low compression rates, and the region corresponding to the ROI mask is also offset from the actual region. The input image I am using is 640x640x3, and the ROI mask is also of equal size. In the ROI.txt file, I set the parameters as follows.

roi.txt:
640 640
20 20 ... 20 (repeat 640)
20 20 ... 20
....
(640x640 array)
where the value of the ROI region is 10, and the NROI is 20. Could you please tell me what is the reason, and how can I solve it? Thank you very much!

The following is the experimental results:

(1) Original image:
12419

(2) ROI mask:
ROI

(3) Decoded image: (bpp=0.0392)
0 0392_12419

Looking forward to your early reply!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions