how use formula for image vignetting
Show older comments
I want use this code for image vignnetting
i=imread('flower.jpg')
im=double(i)
[x,y,z]=size(im);
c=im(round(x/2),round(y/2));
%pix_1 = [p11,p12];
%pix_2 = [p21,p22];
%distance = sqrt( (p21-p11)^2 + (p22-p12)^2 );
distane=sqrt((x1-cx)^2 + (y1 - cy)^2)
x1,y1 ar cx, cy er distance - sqrt((x1-cx)^2 + (y1 - cy)^2);
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB 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!
