imwiteで使って書き出した際に、小数点以下を切り上げない。
Afficher commentaires plus anciens
255でスケーリングしたデータをimwriteで書き出したのですが、
再度255でスケーリングされる際に小数点以下が自動的に全て四捨五入されてしまいます。
これを防ぎ、データを小数で書き出す方法はありますか?
よろしくお願い致します。
2 commentaires
michio
le 23 Jan 2020
現象を確認するコード、できればお願いいたします。
MATLAB に入っているサンプル画像としては以下のようなものがあります:
a = imread('peppers.png')
A = imread('ngc6543a.jpg');
[X,cmap] = imread('corn.tif');
yunosuke ide
le 23 Jan 2020
Modifié(e) : yunosuke ide
le 23 Jan 2020
Réponse acceptée
Plus de réponses (1)
yunosuke ide
le 23 Jan 2020
0 votes
Catégories
En savoir plus sur イメージ dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!