MATLAB: Remove header and metadata og image file format

headerimage

hi all i have images with common format such as jpeg,png,gif,gif,tiff.i want to remove every bit stream befor and after of main image data .in other words,i want to remove header ,footer,metadata,quantizarion and huffman table ,…..for this purpose,i need to have length of segments .I'v tried to solve this problem in matlab,but i don't able to this.please help me so thanks

Best Answer

You will need to write your own code for that, based upon the image standards.
I would suggest that you consider taking an existing C or C++ image library and modifying it to extract what you need, instead of building new MATLAB code from the ground up.
Please keep in mind that the headers tell you important matters such as the image size, image data representation, and which of the different encoding methods were used. Without the headers you do not know the image height or width.
Related Question