フィルターのクリア

I can I get imfinfo while using imread

2 ビュー (過去 30 日間)
Mingming
Mingming 2014 年 6 月 20 日
コメント済み: Image Analyst 2014 年 6 月 21 日
I need read get image info and read image data. currently, I need do this
imfinfo(filename);
imread(filename);
Can I combine them together? just call imread() to get image data and image info at same time. I see help doc of imread(), there is one line:
[...] = imread(..., 'Param1', value1, 'Param2', value2, ...)
The pair could be 'info', but I do not know how to use this it.

回答 (1 件)

Image Analyst
Image Analyst 2014 年 6 月 20 日
The available parameters are 'ReductionLevel', 'PixelRegion', and 'V79Compatible'. If you want one of those you're in luck, otherwise you'll have to use additional lines of code.
  2 件のコメント
Mingming
Mingming 2014 年 6 月 20 日
I see there is a table of imread() help doc:
'Info' Structure array returned by imfinfo.
It seems that imread() could return imfinfo, but I do not know how to use. Can you help to explain?
Image Analyst
Image Analyst 2014 年 6 月 21 日
That's an input argument, not an output argument. You have call imfinfo and pass the result in. And it only works for TIFF images. The help on it says:
Note: When reading images from a multi-image TIFF file, passing the output of imfinfo as the value of the 'Info' argument helps imread locate the images in the file more quickly.
So that's not going to call imfinfo for you and return the result to you. You're going to have to do that yourself.

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

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by