how to mask an image?

Illustration
sheno39 - 2022-02-19T11:17:07+00:00
Question: how to mask an image?

I = imread('E:\M.E 3rd semester\project\coding\flower.jpg'); I = rgb2gray(I); J=ones(3,3)/9; K = conv2(I,J,'same'); Warning: CONV2 on values of class UINT8 is obsolete. Use CONV2(DOUBLE(A),DOUBLE(B)) or CONV2(SINGLE(A),SINGLE(B)) instead.   Can anyone help to correct the error?

Related Questions

  • how to mask an image?
  • Expert Answer

    Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

    I = im2double(imread('..'));
    I = rgb2gray(I);
    J = ones(3)/9;
    K = conv2(I,J,'same');

     


    Not satisfied with the answer ?? ASK NOW

    Get a Free Consultation or a Sample Assignment Review!