Can I increase the size of a pixel when creating a png file?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 6 Mag 2020
Risposto: MathWorks Support Team
il 19 Mag 2020
I am creating a png file but the pixels are not visible. Is it possible to increase the pixel size?
Risposta accettata
MathWorks Support Team
il 6 Mag 2020
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!