Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

mathlab prog

Options
  • 21-11-2007 11:50am
    #1
    Closed Accounts Posts: 41


    I want to write a programme to read in ten images of 225x225 pixels and cut out a circular section of radius 100 pixels from the centre point.

    What i'v wrote so far is the following but doesnt seem to work, can anyone point out where i'v gone wrong?
    Thanks

    for n =1:10;


    name1=strcat(int2str(n),'.bmp');
    I=imread(name1);
    imshow(I);
    for j=1:225
    for k=1:225

    dist=sqrt((225/2 - j)^2 + (225/2 - k)^2);
    if dist >100;
    I(j,k)=0;
    end
    end
    end
    end;


Comments

  • Registered Users Posts: 1,712 ✭✭✭neil_hosey


    first of all is it returning an error or is it just returning the final image


Advertisement