This was a bug in R2010a - R2012a
One-row PNG files
5 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!