One-row PNG files

5 ビュー (過去 30 日間)
Thomas
Thomas 2012 年 4 月 9 日
回答済み: DGM 2023 年 5 月 3 日
Hi,
i am confused about reading one-row PNG-files using imread. When i read e.g. a 1x256 image, it is converted to a 1x1x256 image due to the following lines in readpng.m:
% A one-row image needs to have this dimension re-imposed.
if h == 1
X = reshape(X,[1 size(X)]);
end
But why is this? Why does the dimension have to re-imposed? What's the purpose?
Cheers, Thomas

採用された回答

DGM
DGM 2023 年 5 月 3 日

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by