Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

IPP 7.0 JPEG2000 lack of DPI info

viviansuda
Beginner
396 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
396 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.
0 Kudos
viviansuda
Beginner
396 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.
0 Kudos
Sergey_K_Intel
Employee
396 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

0 Kudos
viviansuda
Beginner
396 Views
Any further progress?
0 Kudos
Thomas_Jensen1
Beginner
396 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.
0 Kudos
viviansuda
Beginner
396 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.
0 Kudos
Thomas_Jensen1
Beginner
396 Views
Good luck!

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