i want to generate four octaves of the original image. Each octave's image size is half the previous one. Within an octave, images are progressively blurred using the Gaussian Blur operator? kindly please help me.

2 vues (au cours des 30 derniers jours)
clc;clear all;close all;
I=imread('parrot.jpg');
% figure;
% Im=imshow(uint8(I));
J = imresize(I, 0.5);
k=0;
sig=2;
for c=1:4;
J = imresize(I, 0.5);
for r=1:5;
k=k+2;
G = fspecial('gaussian',[5 5],sig*k);
Ig = imfilter(I,G,'same');
figure;
imshow(Ig);
end
end

Réponses (0)

Catégories

En savoir plus sur Octave dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by