Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting Quantization Table By JpegSegmentReader #684

Open
enissimsir opened this issue Nov 4, 2024 · 0 comments
Open

Detecting Quantization Table By JpegSegmentReader #684

enissimsir opened this issue Nov 4, 2024 · 0 comments

Comments

@enissimsir
Copy link

enissimsir commented Nov 4, 2024

I want to detect Quantization Table of a compressed image.

{
byte[] jpegData = File.ReadAllBytes(path);
IEnumerable<JpegSegment> jpegSegments = JpegSegmentReader.ReadSegments(path);
foreach (var segment in jpegSegments)
{

    if (segment.Type.ToString() == "Dqt")
    {
        (DqtValuesForLuminance, DqtValuesForChrominance) = Print8x8Matrix(segment.Bytes);

    }
}
}

This is how the codes I am working on, calculate it. And you know, there are 2 QTables: Chrominance Table and Luminance Table.

But I can't find how to detect luminance or chrominance values. I want to learn it by searching the documentations but I can't find decumentation for JpegSegment or JpegSegmentReader classes. Can you help me a bit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant