필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to remove crack of an image "png'?

조회 수: 2 (최근 30일)
Muhammad
Muhammad 2023년 2월 11일
마감: DGM 2023년 2월 12일
i want to restore the image but it is not showing any progress can you help me out
clc
clear all
img = imread('image.png');
figure(1)
imshow(img);
I=im2bw(img)
% I = rgb2gray(img);
figure(2)
imshow(I)
% Create a binary mask where the cracks are located
mask = I== 254;
% Inpaint the masked areas using the 'fast marching' method
inpaint = inpaintExemplar(I, mask);
figure(3)
% Display the inpainted image
imshow(inpaint);
  댓글 수: 7
Walter Roberson
Walter Roberson 2023년 2월 11일
Do not ask the same question just because a previous try did not get you a complete solution to your needs. Instead, post comments on the previous try so that people can see the difference between the advice already offered compared to what you need done. When you post the same question multiple times, the effort gets split, and people lose the ability to see what has already been asked and answered.
DGM
DGM 2023년 2월 12일
I was going to try to move my answer, but I have yet to find a scenario where the Move dialog doesn't reject the destination as an invalid URL.
Now that I think about it, I've been cutting out deadwood all evening. I don't know why I let that stop me. I'm going to attempt to merge these caveman-style. Forgive me if that's too much.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by