- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I read the documentation, but I'm still having a hard time understanding how the jpeg2k functions work. Could someone help me? Maybe post a veeery simple example of compression/decompression?
By the way, what does the parameter magnBits mean, in the function ippiEncodeLoadCodeBlock_JPEG2K_32s_C1R?
I know theses are noob questions and for that I apologize...
Thanks,
Cesar
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The "magnBits" told to bit-planes coder how many bit-plans should be considered (and may be coded), starting from the most significant 31-st. The least "31 - magnBits" bits will not be passed and will not be coded. [It should not be confused with "number of zero-bit planes" or nubmer of actually significant bits. The nubmer of actually significant bits (sfBits parameter) is counted during encoding and returned by the function and it's independent of "magnBits".]
For example the "magnBits" may be calculated by the subband quantization step exponent (subbandQuantExp) and dynamic range (dynRange).
magnBits = 31-(dynRange - subbandQuantExp);
In this case the "number of zero bit planes" (to write in codestream) can be calculated like "dynRange + guardBits - sfBits - 1".
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to ask about other thing. IPP JPEG2000 seems to support 8-bit images only. Am I correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page