How to decompress a Jpeg compressed data?

22 vues (au cours des 30 derniers jours)
JAI PRAKASH
JAI PRAKASH le 8 Déc 2018
Commenté : JAI PRAKASH le 9 Déc 2018
Hi
I have JPEG compressed data, as shown in below figure.
How original image can be recovered, if Height & Width of original image is known.
BTW, below is how the original image should look like.
My final intension to perform this on GPU, to speed it up for live streaming. (every millisec is important)
I am also attaching the compressed data in '.mat' format

Réponses (1)

Jan
Jan le 9 Déc 2018
Modifié(e) : Jan le 9 Déc 2018
I strongly recommend to ask an internet search engine for "Matlab jpeg decompress". You will find many solutions and such a short research is much faster than waiting for the forum to answer.
I speed matters, do not use Matlab for this task but one of the many libraries written in faster languages. Doing this on a GPU might have the drawback, that the data transfere might be the bottleneck.
  1 commentaire
JAI PRAKASH
JAI PRAKASH le 9 Déc 2018
Thanks for replying.
I didn't get any satisfying result from internet search. That's why i tried posting on portal.
Actually the above jpeg compressed data is inside a ros message.
which can be easily decompressed with following command
im = readImage(ROSmsg);
It takes 60-200ms to get the image depends on image resolution.
I am trying to use GPU computing to get it quick.
I went inside the 'readImage()' and found it is using java objects. e.g.
imjava = javax.imageio.ImageIO.read(inputStream); % inside robotics.ros.msg.sensor_msgs.internal.ImageReader
So I am not able to analyse and then reprogram it for GPU.
Is there any way to reprogram it using matlab commands and then use GPU coder to build a .mex ?
OR
perform directly readImage() on GPU?
Thanks for consideration again.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by