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!