Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

IPP 7.0 JPEG2000 lack of DPI info

viviansuda
Beginner
144 Views

Is the IPP 7.0 JPEG2000 file type able to store DPI info? I knew that in JPEG type there are functions to set and get DPI info. What about JPEG2000?

0 Kudos
7 Replies
Thomas_Jensen1
Beginner
144 Views
Jpeg2000 standard has provisions for DPI.
IPP sample codecs for Jpeg2000 does not have interfaces for DPI.
It is not difficult to add DPI to Ipp samples yourself.

The same goes for Jpeg.

I would like Intel to add DPI to CImage, and to add DPI to all codecs.
Using doubles or two integers (a/b = dpi) would be best.
Using seperate X/Y dpi would be best.
viviansuda
Beginner
144 Views
Jpeg2000 standard has provisions for DPI.
IPP sample codecs for Jpeg2000 does not have interfaces for DPI.
It is not difficult to add DPI to Ipp samples yourself.

The same goes for Jpeg.

I would like Intel to add DPI to CImage, and to add DPI to all codecs.
Using doubles or two integers (a/b = dpi) would be best.
Using seperate X/Y dpi would be best.

Thank you for you reply.
But I don't know where to add the info? In which marker should I write in? Sorry, I am not familar with the JPEG2000 standard. Could you also give me some information about it?
Thank you so much.
Sergey_K_Intel
Employee
144 Views
Quoting viviansuda
But I don't know where to add the info? In which marker should I write in?

I haven't found. Thomas, do you know?

Regards,
Sergey

viviansuda
Beginner
144 Views
Any further progress?
Thomas_Jensen1
Beginner
144 Views
Here's a ZIP with my modified J2K sample files.
For Save, I implemented PelsPerMeter integer.
For Read, I implemented PixelSize in um.

Don't ask why I made this differently.

Look for the letters TJE to locate my modifications.

For Read, I seperated reading properties from reading pixels.
viviansuda
Beginner
144 Views
Here's a ZIP with my modified J2K sample files.
For Save, I implemented PelsPerMeter integer.
For Read, I implemented PixelSize in um.

Don't ask why I made this differently.

Look for the letters TJE to locate my modifications.

For Read, I seperated reading properties from reading pixels.

Thomas,
Thank you so much. I will try your code and report when I finished.
Thomas_Jensen1
Beginner
144 Views
Good luck!

And I hope Intel will decide to add DPI to all its codecs.
Reply