I'm new to matlab, anyone guide me to extract the nonlinear picture from a JPG file. I have a JPG file, which has 3 nonlinear picture, I want to extract these three piece of nonlinear picture in my JPG file.
Is there a real world need for you to do this, or is it just a homework exercise? How did you ever come to have pictures of some torn up photograph at oddball angles? If you work in forensics and need to reconstruct a photo that the suspect tore up, this can be done very easily with Photoshop and manual interaction. There is no need to write some complicated program when you don't have to.
The JPEG image format cannot store non-rectangular images. MATLAB cannot store non-rectangular arrays.
What you can do in some cases is to read in rectangular images, and found the visual boundary of them, and construct a "mask" to select only the visual object. See for examplehttp://www.mathworks.com/matlabcentral/answers/76961
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
3 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/107225-how-to-extract-non-linear-picture-from-jpg-file#comment_181474
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/107225-how-to-extract-non-linear-picture-from-jpg-file#comment_181474
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/107225-how-to-extract-non-linear-picture-from-jpg-file#comment_181478
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/107225-how-to-extract-non-linear-picture-from-jpg-file#comment_181478
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/107225-how-to-extract-non-linear-picture-from-jpg-file#comment_181491
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/107225-how-to-extract-non-linear-picture-from-jpg-file#comment_181491
Sign in to comment.