Intertwined of JPEG image
Show older comments
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
More Answers (1)
Image Analyst
on 8 Jan 2013
0 votes
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.
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!