plotagem de imagens?
Show older comments
%comando para mostrar imagens
f= imread(image.tif);
imshow(f);
%comando para transformar matrizes em imagens
A= [1 2 3; 4 5 6;7 8 9];
image(A);
%comanda para transformar imagem em escala de cinza
gray=rgb2gray(f);
imshow(gray);
%converter imagem de escala de cinza para uma preta e branca
bw=im2bw(gray,0.4)
imshow(bw);
subplot(2,2,1); imshow(f);
subplot(2,2,2);imshow(gray);
subplot(2,2,3);imshow(w);
bw=im2bw(gray,0.8);
subplot(2,2,4);imshow(bw);
%corte de uma imagem
I=imread(imagem.tif);
I2=imcrop(I);
%aumento/diminuição de imagens (resize)
imresize('imagem.tif', 3, ''bicubic');
figure (3);
imshow('figure 3');
%rotação de imagens
imrotate('filename', 'angulo', 'metodo') --> metodo pode ser: nearest, bicubic, bilinear
%calculo de media e desvio padrao
mean2('filename');
std2('filename');
TRANSFORMAÇÕES UTILIZANDO REALCE - EXTENSÃO DE CONTRASTE
f=rgb2gray(imread('imagem'));
m=127;
E=20;
g= 1.(1+(m./double(f) + eps)). ^E);
subplot(1,2,1);imshow(f);subplot(1,2,2);imshow(g);
TRANSFORMAÇÕES DE IMAGENS EM ESCALA DE CINZA - NEGATIVO DA IMAGEM
f=rgb2gray(imread('imagem'));
g1=imadjust(f,[0.5 0.75], [0 1],1); gama> 1: comprime faixa mais escura e expande mais clara; gama<1: expande faixa mais escura e comprime a mais clara
imshow(g1);
TRANSFORMAÇÕES LOGARITIMICAS: comprime valores mais claros e expande valores mais escuros
figure(2);
s= im2uint8(mat2hray(log(1+double f)));
subplot(1,3,1);imshow(f);subplot(1,3,2)imshow(g);
subplot(1,3,3);imshow(s);
1 Comment
Image Analyst
on 5 Oct 2022
Exatamente qual é a sua pergunta?
Se você tiver mais perguntas, anexe seus dados e código para lê-los com o ícone de clipe de papel depois de ler isto:
Answers (3)
Sergio Federer
on 5 Oct 2022
0 votes
gaussiano bordas

Sergio Federer
on 5 Oct 2022
0 votes
edge contorno agucado

Sergio Federer
on 5 Oct 2022
0 votes

Categories
Find more on Numeric Types in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!