필터 지우기
필터 지우기

One-row PNG files

조회 수: 1 (최근 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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by