How to decompress a Jpeg compressed data?

9 visualizzazioni (ultimi 30 giorni)
JAI PRAKASH
JAI PRAKASH il 8 Dic 2018
Commentato: JAI PRAKASH il 9 Dic 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

Risposte (1)

Jan
Jan il 9 Dic 2018
Modificato: Jan il 9 Dic 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 Commento
JAI PRAKASH
JAI PRAKASH il 9 Dic 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.

Accedi per commentare.

Categorie

Scopri di più su MATLAB Coder in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by