plotagem de imagens?
이전 댓글 표시
%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
Image Analyst
2022년 10월 5일
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:
답변 (3개)
Sergio Federer
2022년 10월 5일
0 개 추천
gaussiano bordas

Sergio Federer
2022년 10월 5일
0 개 추천
edge contorno agucado

카테고리
도움말 센터 및 File Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
