Info

この質問は閉じられています。 編集または回答するには再度開いてください。

I am using the imwrite function as imwrite(newh,'F:\preeti code\Barba​raTUF2.jpg​','Quality​',100,'Mod​e','lossle​ss'); after this image is generated by my code. It writes a blank white image.But I can see the original image .I have reinstalled MatlabToo

1 回表示 (過去 30 日間)
preeti preeti
preeti preeti 2018 年 8 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am using Matlab 2013. File size after imwrite is 2Kb whereas earlier I used to get 32Kb image size. Changed Image Viewer too. Also checked on Matlab 2017 also. Same issue. What could be the problem?
  5 件のコメント
Rik
Rik 2018 年 8 月 22 日
Often when images show up as white the cause is a conversion to double without rescaling the value. You can check this by running the following code and reporting what the output is.
fprintf('Size is '),fprintf('%d,',size(newh),fprintf('\n')
fprintf('Class is: %s\n',class(newh))
fprintf('Values range from %.1f to %.1f (mean %.1f)\n',min(newh(:)),max(newh(:),mean(newh(:))

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by