Misclassification pixels Correction based Greedy Algorithm
2 次查看(过去 30 天)
显示 更早的评论
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)
- l←1
- for all pixels x_i of the image do
- if("label"(x_i)≠"label"(x_j∈N_ns))then
- x_l←x_i
- for all clusters m in N_rl neighborhood of the pixel x_l do
- Calculate the local variance σ_m^((l) )
- Calculate the local mean μ_m^((l)
- end for
- l←l+1
- end if
- end for
- returnx_l,σ_m^((l) ) and μ_m^((l) )
Step 2: Reclassification of the extracted pixels
- for all pixels x_i of the image do
- for all clusters m in N_rl neighborhood of the pixel x_ldo
- Calculate the objective function J_i using eq. (26)
- Find j=argmin (J_i)
- Assign the pixel x_i to the cluster j
- end for
- end for
Thanks
0 个评论
回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!