remove header and metadata og image file format

9 ビュー (過去 30 日間)
mahdi
mahdi 2015 年 12 月 7 日
回答済み: Walter Roberson 2015 年 12 月 7 日
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
  2 件のコメント
Walter Roberson
Walter Roberson 2015 年 12 月 7 日
What data do you want to keep? Just the compressed data (if the format uses compression), without the tables that allow the compressed data to be interpreted properly? Or are you wanting to read in the image data and save it in binary without headers?
mahdi
mahdi 2015 年 12 月 7 日
tnx mr roberson i want compressed data without the tables and other segments,i dont need to header and tables.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2015 年 12 月 7 日
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.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImport, Export, and Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by