Follow by Email

Lets Learn together... Happy Reading

" Two roads diverged in a wood, and I,
I took the one less traveled by,
And that has made all the difference "-Robert Frost

Some Random effects

  • Negative Image
Subtract 255 from the RGB image, to obtain negative image.
MATLAB CODE:
%Here the  I am subtracting 255 from R,G and B.
A=imread('person.jpg');
imshow(255-A);

Original Image
Negative Image







  • Sine Wave

    First find the mid point of the RGB image.
    Convert the points from Cartesian to polar co_ordinates
    Find the sine value for the angle 'theta'
    Again convert the points to Cartesian co_ordinates

    SAMPLE CODE:
    x2=zeros([size(A,1) size(A,2)]);
    y2=zeros([size(A,1) size(A,2)]);
    for i=1:size(A,1)
        x=i-midx;
        for j=1:size(A,2)
    %Cartesian to Polar co-ordinates
               [theta1,rho1]=cart2pol(i,j-midy);
        
          
                  
            phi=sin(theta1);
          
    %Polar to Cartesian co-ordinates
            [l,m]=pol2cart(phi,rho1);
            x2(i,j)=ceil(l)+midx;
            y2(i,j)=ceil(m)+midy;
          
        end
    end

    Sine wave


Original Image

like button Like "IMAGE PROCESSING" page

1 comments:

jimdaniel said... Reply to comment

You can add effects to your photos at http://www.addeffects.net without installed software

Enjoyed Reading? Share Your Views

Previous Post Next Post Home

Link

Related Posts Plugin for WordPress, Blogger...
Google ping Hypersmash.com