Intertwined of JPEG image

3 views (last 30 days)
Bella Sam
Bella Sam on 8 Jan 2013
Hello, I have 2 JPEG images intertwined with each other. So, we have 4 fragments, fragment1_1, fragment1_2, fragment2_1 and fragment2_2. So, the order is fragment1_1 followed by fragment2_1, then fragment1_2 and last is fragment2_2. To distinguish fragment1_1 and fragment2_1, we can use SOI marker to identify the beginning of fragment2_1.
But, we have problem to distinguish fragment2_1 and fragment1_2 because there are no markers that can be used to recognize the consequent fragment. These is the data area (most probably compressed). I need to find a way to solve this. The idea at this moment is to decode JPEG, so we can use RGB value to calculate the distance of each line. Is it possible to decode fragmented JPEG files in matlab or can suggest other way to identify the fragmentation boundary.
Thank you

Accepted Answer

Bella Sam
Bella Sam on 8 Jan 2013
Thank you for your reply. Actually what I am trying to do is to carve JPEG images from a dataset (like CSI). This dataset is an imaged from a corrupted hard disk, which all files in the hard disk will be mirrored as one single file in hex values. These images, mixed with different files and their own,can be viewed using hex editor.
There are many types of file such as word, pdf, bmp, png and so on, all in hex values. My interest is only on JPEG files. Some JPEG can carve directly because it is complete and not fragmented, but some JPEG files are fragmented, either with other types or its own. To be noted, the dataset is missing of its FAT, so we cannot allocate the files using cluster address. So, I need to recognize where the fragmentation point as I explain before. Thank you
  3 Comments
Bella Sam
Bella Sam on 10 Jan 2013
Oh, sorry about the new comment I made. However, thanks a lot for your time and I appreciate your comment on this matter.
Thank you :)
Image Analyst
Image Analyst on 10 Jan 2013
So are you questions all answered? If so, please mark as "Accepted".

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 8 Jan 2013
I've never heard of such a thing. I've heard of "interlaced", for example when you save a PNG image, or in the old "FlashPix" format. Are you sure there is such an option in jpeg, and if there is, if imread() can understand such a format? (Ashish Uthama would know - he's on the Mathworks image format team, maybe he'll answer or check the newsgroup where he seems to hang out more).
Or are you talking about two images that have been spliced together and then just saved as a jpeg image, which is a totally different concept than what I said first, because in this latter concept, the image is an ordinary, run of the mill jpeg format, it's just that the image has a special appearance.

Community Treasure Hunt

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

Start Hunting!