- ahmad alhayek

 


Task 2: Create another m-file that b. Create an m-file that do the following: 1. Download watermark image from the elearning
Show transcribed image text

Expert Answer

  • Anonymous's Avatar

    Note: Please note that you have posted 2 questions, in a single post. The first question with all its requirements is answered below. Please ask the second question in a separate post)

    (*If any doubt, please let me know in the comments)

    Matlab Code:

    clc;
    clear all;
    close all;

    i1 = imread('coins.png');
    imshow(i1); %showing the read image
    Mask=zeros(size(i1)); %creating mask the same size of image
    Mask(:)=255;
    [x,y] = ginput(2); %this will store the coordinates of points clicked by user
    Mask(min(y):max(y),min(x):max(x)) = 0;
    i2 = bitor(i1,Mask);
    imshow(i2); %show the resulting image

    Input image used for testing:

    x CUBA 2 ELIZABETTO QUEEN OM REX 2002 2007 S ENTS DA co SOLO NO 5711 JOLE POST

    Output Screenshot (After clicking on 2 points on the image):

    Comment 

ليست هناك تعليقات:

إرسال تعليق

ahmad alhayek تصميم ahmad alhayek جميع الحقوق محفوظة 2016

صور المظاهر بواسطة sndr. يتم التشغيل بواسطة Blogger.