Can I increase the size of a pixel when creating a png file?
2 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2020 年 5 月 6 日
回答済み: MathWorks Support Team
2020 年 5 月 19 日
I am creating a png file but the pixels are not visible. Is it possible to increase the pixel size?
採用された回答
MathWorks Support Team
2020 年 5 月 6 日
There is no direct way, but you can use 'IMDILATE' to dilate the pixels. For instance, you can use the following commands:
%Using imdilate
>> se = strel('line',11,90);
>> img = imdilate(rgb1,se); %rgb1 is the matrix
>> imshow(img) %save the figure as png file
>> saveas(gcf,'myfile.png')
Also, note that the above functions require Image Processing Toolbox.For more information, refer to the following documentation link:
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!