MATLAB Answers

How do I generate missing entries using random binary masks on an Image?

조회 수: 1(최근 30일)
fadams18
fadams18 13 Feb 2019
댓글: fadams18 13 Feb 2019
Hello,
How to I produce incomplete matrix with missing values in the right image.
Screenshot from 2019-02-13 11-09-01.jpg
(A) original image (B) incomplete image

  댓글 수: 0

로그인 to comment.

채택된 답변

KSSV
KSSV 13 Feb 2019

  댓글 수: 1

fadams18
fadams18 13 Feb 2019
After going through the code. It seems to be imprinting random artifacts on to the image
untitled.jpg
A = imread('dataset/1.jpg');%original image
G = double(A);
G(rand(size(G))<0.50) = NaN;
Gnan = G;
figure
image(uint8(Gnan))
title 'Corrupted - 50%'
I achieved this by just extracting this code from their program. However is there a way to add text instead of NaN?

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by