how to Blend output image to input

function F=edgecolor(nm);
I=imread('Edge.jpg');
[x y z]=size(I);
if z==1
rslt=edge(I,'canny');
elseif z==3
im=rgb2ycbcr(I);
dx=edge(im(:,:,1),'canny');
dx=(dx*255);
img(:,:,1)=dx;
img(:,:,2)=im(:,:,2);
img(:,:,3)=im(:,:,3);
rslt=ycbcr2rgb(uint8(img));
end
a=rslt;
im=im2double(a)
% len=21;
% theta=11;
% psf=fspecial('motoin',len,theta);
% blurred=imfilter(a,psf,'conv','circular')
j=fspecial('disk',.25);
k=imfilter(i,j);
l=im2double(k)

3 commentaires

KSSV
KSSV le 25 Juil 2020
What do you mean by blend?
Badboy
Badboy le 25 Juil 2020
Modifié(e) : Badboy le 25 Juil 2020
I want blur original output.... then edge and blur output want to blend to see edge glow ...I already detected the edge but can't blur and blend it
Image Analyst
Image Analyst le 25 Juil 2020
Modifié(e) : Image Analyst le 25 Juil 2020

Connectez-vous pour commenter.

Réponses (0)

Question posée :

le 25 Juil 2020

Modifié(e) :

le 25 Juil 2020

Community Treasure Hunt

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

Start Hunting!

Translated by