Misclassification pixels Correction based Greedy Algorithm

2 views (last 30 days)
I have pseudo code to correction misclassification pixel based-Greedy algorithm from Benaichouche et al. research. I tried to apply it in matlab code but it is very difficult. Anyone can help?
Pseudo Code
Step 1: Extraction of potentially misclassified pixels 〖(x〗_l)
  1. l←1
  2. for all pixels x_i of the image do
  3. if("label"(x_i)≠"label"(x_j∈N_ns))then
  4. x_l←x_i
  5. for all clusters m in N_rl neighborhood of the pixel x_l do
  6. Calculate the local variance σ_m^((l) )
  7. Calculate the local mean μ_m^((l)
  8. end for
  9. l←l+1
  10. end if
  11. end for
  12. returnx_l,σ_m^((l) ) and μ_m^((l) )
Step 2: Reclassification of the extracted pixels
  1. for all pixels x_i of the image do
  2. for all clusters m in N_rl neighborhood of the pixel x_ldo
  3. Calculate the objective function J_i using eq. (26)
  4. Find j=argmin (J_i)
  5. Assign the pixel x_i to the cluster j
  6. end for
  7. end for
Thanks

Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!