- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anyone knows if decoding of 16bit JPEG2000 in IPP 5.2 samples is broken? I have license for IPP 5.2 and I've been trying to use decoder from jpegview but I can't get it to load 16bit JPEG2000 files that were made using encoder from same samples...
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, I got 16bit loading to work with 5.2 samples after replacing:
Ipp16s* ptr = *image;
status = ippsConvert_32s16s(i.Data(), ptr, roi.width*roi.height);
with
Ipp16s* ptr = *image;
Ipp32s* src = (Ipp32s*)i.Data();
jerr = IppConvert32s16u(src, i.LineStep(), (Ipp16u*)ptr, image->Step(), roi);
which is taken from 6.0 samples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But now problem is that I see artefacts in loaded 16bit images. White areas in image get black pixels around their borders. If I open same image with IrfanView there are no black pixels and it looks like the original image.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, changing WT53 -> WT97 removed the artefacts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can't test with 6.0 right now. I tried jpegview from 5.3 and it showed those same artefacts that I see with 5.2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I meant that I took jpeg2000 encoder/decoder from 6.0 samples and not the whole jpegview.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I installed these:
w_ipp_em64t_p_6.0.0.062.exe
w_ipp-samples_p_6.0.0.117.zi
And built jpegview with Visual Studio 2005 (x64) and I can see same artefacts when I try to load the JP2 file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh, I earlier used Borland C++ Builder 2006 and built for Win32 target.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem solved. It turns out that the JPEG2000 encoder ignores mode field from PARAMS_JPEG2K and quality field is not actually quality between 1% and 100% but compression ratio and it has to be set to zero to get lossless compression.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page