This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
close all, | |
clear all, | |
clc | |
%Leitura da imagem | |
imgg=imread('lenna.jpg'); | |
%Transformar a imagem dergb para escala de cinza | |
img=rgb2gray(imgg); | |
%Transformar a imagem em double |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
close all, | |
clear all, | |
clc | |
%Leitura da imagem | |
imgg=imread('lenna.jpg'); | |
%Transformar a imagem dergb para escala de cinza | |
img=rgb2gray(imgg); | |
%Transformar a imagem em double |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QCoreApplication> | |
#include <opencv2/opencv.hpp> | |
using namespace cv; | |
using namespace std; | |
Mat convoluirGenerica(Mat& img, float **masc, int M, int N){ | |
// output é a variavel responsavel por realizar o somatorio da convolução | |
float output=0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
close all, | |
clear all, | |
clc | |
%Leitura da Imagem | |
imgg = imread ('lenna.png'); | |
%Transformar a imagem de RGB para a escala de cinza | |
img = rgb2gray(imgg); | |
%Transforma a imagem em double |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
close all, | |
clear all, | |
clc | |
%Leitura da Imagem | |
imgg = imread ('lenna.png'); | |
%Transformar a imagem de RGB para a escala de cinza | |
img = rgb2gray(imgg); | |
%Transforma a imagem em double |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
close all, | |
clear all, | |
clc | |
%Leitura da Imagem | |
imgg = imread ('lenna.png'); | |
%Transformar a imagem de RGB para a escala de cinza | |
img = rgb2gray(imgg); | |
%Transforma a imagem em double |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Fila = require('./Fila') // Importação de um algoritmo Fila | |
// Representação do grafo em Lista de Adjacência | |
// Exemplo de representação do grafo para o bom funcionamento do algoritmo | |
/* | |
* Os pares de valores contidos em ListaAdjacencia[i][j] | |
* representam o vertice de adjacência e o custo da aresta, | |
* simultaneamente | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
close all, | |
close all, | |
clc | |
%Leitura da Imagem | |
imgg = imread ('lena_color.png'); | |
%Transformar a imagem de RGB para a escala de cinza | |
img = rgb2gray(imgg); | |
%Transforma a imagem em double |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
close all, | |
close all, | |
clc | |
%Leitura da Imagem | |
imgg = imread ('lena_color.png'); | |
%Transformar a imagem de RGB para a escala de cinza | |
img = rgb2gray(imgg); | |
%Transforma a imagem em double |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear all; | |
close all; | |
clc; | |
[Y,fs]=audioread('sine1.wav'); | |
figure(1), port(Y); | |
Yd = fft(Y); | |
X_mag = abs(Yd); | |
N = length(Y); |