how to select a block outside the image block where there is a cloud(white patch) and replace it with another image part of same kind where there is no cloud with normalization?
2 views (last 30 days)
Show older comments
Algorithm 1) Identification of block with cloud for i=1:14 for j=1:14 a) ii1 used to store data of cloudy image by taking 32*32 b) ii2 used to store data of non-cloudy image by taking 32*32 c) Compute SD, mean for ii1 & ii2 Variables used (ii1m,ii1s,ii2m,ii2s) for both the images *these variables are arrays If-condition d) Basing upon ii1m, ii1s selection of block is done by taking sb(i,j)=1 if ii1m > …….. && ii1s > = …………….. sb (i,j) = 1 End of step 1 2) Replacing I2 data on I1 with normalization for i=1:32 for j=1:32 a) Compute sd, mean for both a) if sb(i,j)= =1 b) for ii=1:+3 for jj=1:+3 c) Opixel (i, j) =ii1m(i,j)+(ii-ii2m(i,j))(ii1s(i,j)/ii2s(i,j))
this is the algorithm i have designed to it but not getting the code to execute pls someone convert this into the code and help me out.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!